6/2/2015 The Impact of Structure Toby Walsh Cork Constraint Computation Centre

Slides:



Advertisements
Similar presentations
Peer-to-Peer and Social Networks Power law graphs Small world graphs.
Advertisements

Complex Networks Advanced Computer Networks: Part1.
Propositional Satisfiability (SAT) Toby Walsh Cork Constraint Computation Centre University College Cork Ireland 4c.ucc.ie/~tw/sat/
10/7/2014 Constrainedness of Search Toby Walsh NICTA and UNSW
‘Small World’ Networks (An Introduction) Presenter : Vishal Asthana
Small-world networks.
Algorithmic and Economic Aspects of Networks Nicole Immorlica.
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Analysis and Modeling of Social Networks Foudalis Ilias.
It’s a Small World by Jamie Luo. Introduction Small World Networks and their place in Network Theory An application of a 1D small world network to model.
VL Netzwerke, WS 2007/08 Edda Klipp 1 Max Planck Institute Molecular Genetics Humboldt University Berlin Theoretical Biophysics Networks in Metabolism.
Models of Network Formation Networked Life NETS 112 Fall 2013 Prof. Michael Kearns.
Information Networks Small World Networks Lecture 5.
Lecture 7 CS 728 Searchable Networks. Errata: Differences between Copying and Preferential Attachment In generative model: let p k be fraction of nodes.
Algorithms and Problems for Quantified SAT Toby Walsh Department of Computer Science University of York England Ian P. Gent School of Computer Science.
4. PREFERENTIAL ATTACHMENT The rich gets richer. Empirical evidences Many large networks are scale free The degree distribution has a power-law behavior.
CSE 522 – Algorithmic and Economic Aspects of the Internet Instructors: Nicole Immorlica Mohammad Mahdian.
1 Evolution of Networks Notes from Lectures of J.Mendes CNR, Pisa, Italy, December 2007 Eva Jaho Advanced Networking Research Group National and Kapodistrian.
Complex Networks Third Lecture TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA TexPoint fonts used in EMF. Read the.
Network Models Social Media Mining. 2 Measures and Metrics 2 Social Media Mining Network Models Why should I use network models? In may 2011, Facebook.
Small Worlds Presented by Geetha Akula For the Faculty of Department of Computer Science, CALSTATE LA. On 8 th June 07.
1 Beyond NP Other complexity classes Phase transitions in P, PSPACE, … Structure Backbones, 2+p-SAT, small world topology, … Heuristics Constrainedness.
Approximation Algoirthms: Semidefinite Programming Lecture 19: Mar 22.
Semidefinite Programming
08/1 Foundations of AI 8. Satisfiability and Model Construction Davis-Putnam, Phase Transitions, GSAT Wolfram Burgard and Bernhard Nebel.
Peer-to-Peer and Grid Computing Exercise Session 3 (TUD Student Use Only) ‏
Search for satisfaction Toby Walsh Cork Constraint Computation Center
CS Lecture 6 Generative Graph Models Part II.
Search in a Small World JIN Xiaolong Based on [1].
AAAI00 Austin, Texas Generating Satisfiable Problem Instances Dimitris Achlioptas Microsoft Carla P. Gomes Cornell University Henry Kautz University of.
Advanced Topics in Data Mining Special focus: Social Networks.
Carla P. Gomes CS4700 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Instance Hardness and Phase Transitions.
The structure of the Internet. The Internet as a graph Remember: the Internet is a collection of networks called autonomous systems (ASs) The Internet.
Summary from Previous Lecture Real networks: –AS-level N= 12709, M=27384 (Jan 02 data) route-views.oregon-ix.net, hhtp://abroude.ripe.net/ris/rawdata –
Computer Science 1 Web as a graph Anna Karpovsky.
Hardness-Aware Restart Policies Yongshao Ruan, Eric Horvitz, & Henry Kautz IJCAI 2003 Workshop on Stochastic Search.
Information Networks Power Laws and Network Models Lecture 3.
(Social) Networks Analysis III Prof. Dr. Daning Hu Department of Informatics University of Zurich Oct 16th, 2012.
Topic 13 Network Models Credits: C. Faloutsos and J. Leskovec Tutorial
Author: M.E.J. Newman Presenter: Guoliang Liu Date:5/4/2012.
Stochastic Algorithms Some of the fastest known algorithms for certain tasks rely on chance Stochastic/Randomized Algorithms Two common variations – Monte.
Small-world networks. What is it? Everyone talks about the small world phenomenon, but truly what is it? There are three landmark papers: Stanley Milgram.
Constrainedness Including slides from Toby Walsh.
“Adversarial Deletion in Scale Free Random Graph Process” by A.D. Flaxman et al. Hammad Iqbal CS April 2006.
COLOR TEST COLOR TEST. Social Networks: Structure and Impact N ICOLE I MMORLICA, N ORTHWESTERN U.
An Efficient Algorithm for Enumerating Pseudo Cliques Dec/18/2007 ISAAC, Sendai Takeaki Uno National Institute of Informatics & The Graduate University.
Gennaro Cordasco - How Much Independent Should Individual Contacts be to Form a Small-World? - 19/12/2006 How Much Independent Should Individual Contacts.
Social Network Analysis Prof. Dr. Daning Hu Department of Informatics University of Zurich Mar 5th, 2013.
3. SMALL WORLDS The Watts-Strogatz model. Watts-Strogatz, Nature 1998 Small world: the average shortest path length in a real network is small Six degrees.
Constraints and Search Toby Walsh Cork Constraint Computation Centre (4C) Logic & AR Summer School, 2002.
Lecture 10: Network models CS 765: Complex Networks Slides are modified from Networks: Theory and Application by Lada Adamic.
Most of contents are provided by the website Network Models TJTSD66: Advanced Topics in Social Media (Social.
Balance and Filtering in Structured Satisfiability Problems Henry Kautz University of Washington joint work with Yongshao Ruan (UW), Dimitris Achlioptas.
March 3, 2009 Network Analysis Valerie Cardenas Nicolson Assistant Adjunct Professor Department of Radiology and Biomedical Imaging.
Performance Evaluation Lecture 1: Complex Networks Giovanni Neglia INRIA – EPI Maestro 10 December 2012.
Eliminating non- binary constraints Toby Walsh Cork Constraint Computation Center.
Where are the hard problems?. Remember Graph Colouring? Remember 3Col?
Hierarchical Organization in Complex Networks by Ravasz and Barabasi İlhan Kaya Boğaziçi University.
Netlogo demo. Complexity and Networks Melanie Mitchell Portland State University and Santa Fe Institute.
Topics In Social Computing (67810) Module 1 Introduction & The Structure of Social Networks.
Where are the hard problems?
Structures of Networks
Topics In Social Computing (67810)
Peer-to-Peer and Social Networks
The Watts-Strogatz model
Small World Networks Scotty Smith February 7, 2007.
Lecture 9: Network models CS 765: Complex Networks
Network Science: A Short Introduction i3 Workshop
Network Models Michael Goodrich Some slides adapted from:
Advanced Topics in Data Mining Special focus: Social Networks
Presentation transcript:

6/2/2015 The Impact of Structure Toby Walsh Cork Constraint Computation Centre

6/2/2015 The real world isn’t random? Very true! Can we identify structural features common in real world problems? Consider graphs met in real world situations  social networks  electricity grids  neural networks ...

6/2/2015 Real versus Random Real graphs tend to be sparse  dense random graphs contains lots of (rare?) structure Real graphs tend to have short path lengths  as do random graphs Real graphs tend to be clustered  unlike sparse random graphs L, average path length C, clustering coefficient (fraction of neighbours connected to each other, cliqueness measure) mu, proximity ratio is C/L normalized by that of random graph of same size and density

6/2/2015 Small world graphs Sparse, clustered, short path lengths Six degrees of separation  Stanley Milgram’s famous 1967 postal experiment  recently revived by Watts & Strogatz  shown applies to: actors database US electricity grid neural net of a worm...

6/2/2015 An example 1994 exam timetable at Edinburgh University  59 nodes, 594 edges so relatively sparse  but contains 10-clique less than 10^-10 chance in a random graph  assuming same size and density clique totally dominated cost to solve problem

6/2/2015 Small world graphs To construct an ensemble of small world graphs  morph between regular graph (like ring lattice) and random graph  prob p include edge from ring lattice, 1-p from random graph real problems often contain similar structure and stochastic components?

6/2/2015 Small world graphs ring lattice is clustered but has long paths random edges provide shortcuts without destroying clustering

6/2/2015 Small world graphs

6/2/2015 Small world graphs

6/2/2015 Colouring small world graphs

6/2/2015 Small world graphs Other bad news  disease spreads more rapidly in a small world Good news  cooperation breaks out quicker in iterated Prisoner’s dilemma

6/2/2015 Other structural features It’s not just small world graphs that have been studied High degree graphs  Barbasi et al’s power-law model Ultrametric graphs  Hogg’s tree based model Numbers following Benford’s Law  1 is much more common than 9 as a leading digit! prob(leading digit=i) = log(1+1/i)  such clustering, makes number partitioning much easier

6/2/2015 High degree graphs Degree = number of edges connected to node Directed graph  Edges have a direction  E.g. web pages = nodes, links = directed edges In-degree, out-degree  In-degree = links pointing to page  Out-degree = links pointing out of page

6/2/2015 In-degree of World Wide Web Power law distribution  Pr(in-degree = k) = ak^-2.1 Some nodes of very high in-degree  E.g. google.com, …

6/2/2015 Out-degree of World Wide Web Power law distribution  Pr(in-degree = k) = ak^-2.7 Some nodes of very high out-degree  E.g. people in SAT

6/2/2015 High degree graphs World Wide Web Electricity grid Citation graph  633,391 out of 783,339 papers have < 10 citations  64 have > 1000 citations  1 has 8907 citations Actors graph  Robert Wagner, Donald Sutherland, …

6/2/2015 High degree graphs Power law in degree distribution  Pr(degee = k) = ak^-b where b typically around 3 Compare this to random graphs  Gnm model n nodes, m edges chosen uniformly at random  Gnp model n nodes, each edge included with probability p  In both, Pr(degree = k) is a Poisson distribution tightly clustered around mean

6/2/2015 Random v high degree graphs

6/2/2015 Generating high-degree graphs Grow graph Preferentially attach new nodes to old nodes according to their degree  Prob(attach to node j) proportional to degree of node j  Gives Prob(degree = k) = ak^-3

6/2/2015 High-degree = small world? Preferential attachment model  n=16, mu=1  n=64, mu=1.35  n=256, mu=2.12  … Small world topology thus for large n!

6/2/2015 Search on high degree graphs Random  Uniformly hard Small world  A few long runs High degree  More uniform  Easier than random

6/2/2015 What about numbers? So far, we’ve looked at structural features of graphs Many problems contain numbers  Do we see phase transitions here too?

6/2/2015 Number partitioning What’s the problem?  dividing a bag of numbers into two so their sums are as balanced as possible What problem instances?  n numbers, each uniformly chosen from (0,l ]  other distributions work (Poisson, …)

6/2/2015 Number partitioning Identify a measure of constrainedness  more numbers => less constrained  larger numbers => more constrained  could try some measures out at random (l/n, log(l)/n, log(l)/sqrt(n), …) Better still, use kappa!  (approximate) theory about constrainedness  based upon some simplifying assumptions e.g. ignores structural features that cluster solutions together

6/2/2015 Theory of constrainedness Consider state space searched  see 10-d hypercube opposite of 2^10 possible partitions of 10 numbers into 2 bags Compute expected number of solutions,  independence assumptions often useful and harmless!

6/2/2015 Theory of constrainedness Constrainedness given by: kappa= 1 - log2( )/n where n is dimension of state space kappa lies in range [0,infty)  kappa=0, =2^n, under-constrained  kappa=infty, =0, over-constrained  kappa=1, =1, critically constrained phase boundary

6/2/2015 Phase boundary Markov inequality  prob(Sol) Now, kappa > 1 implies < 1 Hence, kappa > 1 implies prob(Sol) < 1 Phase boundary typically at values of kappa slightly smaller than kappa=1  skew in distribution of solutions (e.g. 3-SAT)  non-independence

6/2/2015 Examples of kappa 3-SAT  kappa = l/5.2n  phase boundary at kappa= COL  kappa = e/2.7n  phase boundary at kappa=0.84 number partitioning  kappa = log2(l)/n  phase boundary at kappa=0.96

6/2/2015 Number partition phase transition Prob(perfect partition) against kappa

6/2/2015 Finite-size scaling Simple “trick” from statistical physics  around critical point, problems indistinguishable except for change of scale given by simple power-law Define rescaled parameter  gamma = kappa-kappa c. n^1/v kappa c  estimate kappa c and v empirically e.g. for number partitioning, kappa c =0.96, v=1

6/2/2015 Rescaled phase transition Prob(perfect partition) against gamma

6/2/2015 Rescaled search cost Optimization cost against gamma

6/2/2015 Easy-Hard-Easy? Search cost only easy-hard here?  Optimization not decision search cost!  Easy if (large number of) perfect partitions  Otherwise little pruning (search scales as 2^0.85n) Phase transition behaviour less well understood for optimization than for decision  sometimes optimization = sequence of decision problems (e.g branch & bound)  BUT lots of subtle issues lurking?

6/2/2015 The future? What open questions remain? Where to next?

6/2/2015 Open questions Prove random 3-SAT occurs at l/n = 4.3  random 2-SAT proved to be at l/n = 1  random 3-SAT transition proved to be in range 3.42 < l/n < p-COL  Prove problem changes around p=0.8  What happens to colouring backbone?

6/2/2015 Open questions Does phase transition behaviour give insights to help answer P=NP?  it certainly identifies hard problems!  problems like 2+p-SAT and ideas like backbone also show promise But problems away from phase boundary can be hard to solve over-constrained 3-SAT region has exponential resolution proofs under-constrained 3-SAT region can throw up occasional hard problems (early mistakes?)

6/2/2015 Summary That’s nearly all from me!

6/2/2015 Conclusions Phase transition behaviour ubiquitous  decision/optimization/...  NP/PSpace/P/…  random/real Phase transition behaviour gives insight into problem hardness  suggests new branching heuristics  ideas like the backbone help understand branching mistakes

6/2/2015 Conclusions AI becoming more of an experimental science?  theory and experiment complement each other well  increasing use of approximate/heuristic theories to keep theory in touch with rapid experimentation Phase transition behaviour is FUN  lots of nice graphs as promised  and it is teaching us lots about complexity and algorithms!

6/2/2015 Very partial bibliography Cheeseman, Kanefsky, Taylor, Where the really hard problem are, Proc. of IJCAI-91 Gent et al, The Constrainedness of Search, Proc. of AAAI-96 Gent & Walsh, The TSP Phase Transition, Artificial Intelligence, 88: , 1996 Gent & Walsh, Analysis of Heuristics for Number Partitioning, Computational Intelligence, 14 (3), 1998 Gent & Walsh, Beyond NP: The QSAT Phase Transition, Proc. of AAAI-99 Gent et al, Morphing: combining structure and randomness, Proc. of AAAI-99 Hogg & Williams (eds), special issue of Artificial Intelligence, 88 (1-2), 1996 Mitchell, Selman, Levesque, Hard and Easy Distributions of SAT problems, Proc. of AAAI-92 Monasson et al, Determining computational complexity from characteristic ‘phase transitions’, Nature, 400, 1998 Walsh, Search in a Small World, Proc. of IJCAI-99 Walsh, Search on High Degree Graphs, Proc. of IJCAI Walsh, From P to NP: COL, XOR, NAE, 1-in-k, and Horn SAT, Proc. of AAAI Watts & Strogatz, Collective dynamics of small world networks, Nature, 393, 1998