Where are the hard problems?. Remember Graph Colouring? Remember 3Col?

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Constraint Programming Peter van Beek University of Waterloo.
An empirical study of the stable marriage problem with ties and incomplete lists (SMTI) Ian Gent & Patrick Prosser.
Constraint Satisfaction Patrick Prosser. An Example, Exam Timetabling Someone timetables the exams We have a number of courses to examine how many? Dept.
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
Time-Space Tradeoffs in Resolution: Superpolynomial Lower Bounds for Superlinear Space Chris Beck Princeton University Joint work with Paul Beame & Russell.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
Generating Hard Satisfiability Problems1 Bart Selman, David Mitchell, Hector J. Levesque Presented by Xiaoxin Yin.
The Theory of NP-Completeness
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Algorithms and Problems for Quantified SAT Toby Walsh Department of Computer Science University of York England Ian P. Gent School of Computer Science.
6/2/2015 The Impact of Structure Toby Walsh Cork Constraint Computation Centre
02/01/11CMPUT 671 Lecture 11 CMPUT 671 Hard Problems Winter 2002 Joseph Culberson Home Page.
Approximation Algoirthms: Semidefinite Programming Lecture 19: Mar 22.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Statistical Regimes Across Constrainedness Regions Carla P. Gomes, Cesar Fernandez Bart Selman, and Christian Bessiere Cornell University Universitat de.
Semidefinite Programming
08/1 Foundations of AI 8. Satisfiability and Model Construction Davis-Putnam, Phase Transitions, GSAT Wolfram Burgard and Bernhard Nebel.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time in a reasonable sequential model of computation if and only if it.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Search for satisfaction Toby Walsh Cork Constraint Computation Center
Constraint Satisfaction Problems
GRASP-an efficient SAT solver Pankaj Chauhan. 6/19/ : GRASP and Chaff2 What is SAT? Given a propositional formula in CNF, find an assignment.
Carla P. Gomes CS4700 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Instance Hardness and Phase Transitions.
Knowledge Representation II (Inference in Propositional Logic) CSE 473.
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
1 Message Passing and Local Heuristics as Decimation Strategies for Satisfiability Lukas Kroc, Ashish Sabharwal, Bart Selman (presented by Sebastian Brand)
Logic - Part 2 CSE 573. © Daniel S. Weld 2 Reading Already assigned R&N ch 5, 7, 8, 11 thru 11.2 For next time R&N 9.1, 9.2, 11.4 [optional 11.5]
T Ball (1 Relation) What Your Robots Do Karl Lieberherr CSU 670 Spring 2009.
Constraint Satisfaction Problems
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Boolean Satisfiability and SAT Solvers
Graph Colouring Various Models. an obvious model SAT sets demo random graphs chromatic number maxCol phase transition.
Constrainedness Including slides from Toby Walsh.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
1 Chapter 34: NP-Completeness. 2 About this Tutorial What is NP ? How to check if a problem is in NP ? Cook-Levin Theorem Showing one of the most difficult.
Constraints and Search Toby Walsh Cork Constraint Computation Centre (4C) Logic & AR Summer School, 2002.
Principles of Intelligent Systems Constraint Satisfaction + Local Search Written by Dr John Thornton School of IT, Griffith University Gold Coast.
/425 Declarative Methods - J. Eisner 1 Random 3-SAT  sample uniformly from space of all possible 3- clauses  n variables, l clauses Which are.
© Daniel S. Weld 1 Logistics Problem Set 2 Due Wed A few KR problems Robocode 1.Form teams of 2 people 2.Write design document.
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
“One ring to rule them all” Analogy (sort of) Lord of The Rings Computational Complexity “One problem to solve them all” “my preciousss…”
Balance and Filtering in Structured Satisfiability Problems Henry Kautz University of Washington joint work with Yongshao Ruan (UW), Dimitris Achlioptas.
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
Solving the Logic Satisfiability problem Solving the Logic Satisfiability problem Jesus De Loera.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
Computability Examples. Reducibility. NP completeness. Homework: Find other examples of NP complete problems.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
When intuition is wrong Heuristics for clique and maximum clique Patrick Prosser esq.
1 P NP P^#P PSPACE NP-complete: SAT, propositional reasoning, scheduling, graph coloring, puzzles, … PSPACE-complete: QBF, planning, chess (bounded), …
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
Where are the hard problems?
Chapter 10 NP-Complete Problems.
Inference in Propositional Logic (and Intro to SAT)
Hard Problems Some problems are hard to solve.
Richard Anderson Lecture 26 NP-Completeness
Hard Problems Introduction to NP
Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.
NP-Completeness Proofs
Incorporating Constraint Checking Costs in Constraint Satisfaction Problem Suryakant Sansare.
GRASP-an efficient SAT solver
Presentation transcript:

Where are the hard problems?

Remember Graph Colouring? Remember 3Col?

3 Colour me?

Easy?

3 Colour me?

Easy?

3 Colour me?

Easy?

3 Colour me? Easy?Does Size Matter?

3 Colour me? Does size matter?

So, Where are the hard problems?

Wots NP? Nondeterministic Polynomial Problems that cannot be solved in polynomial (P) time … as far as we know NP-Complete (NPC) If a polytime alg can be found for any NPC problem Then it can be adapted for all NPC problems

Wot’s SAT? Toby?

Propositional Satisfiability SAT –does a truth assignment exist that satisfies a propositional formula? –special type of constraint satisfaction problem Variables are Boolean Constraints are formulae –NP-complete 3-SAT –formulae in clausal form with 3 literals per clause –remains NP-complete (x1 v x2) & (-x2 v x3 v -x4) x1/ True, x2/ False,...

Wots complexity of 3SAT?

Random 3-SAT –sample uniformly from space of all possible 3- clauses –n variables, l clauses Which are the hard instances? –around l/n = 4.3 What happens with larger problems? Why are some dots red and others blue?

Random 3-SAT Varying problem size, n Complexity peak appears to be largely invariant of algorithm –backtracking algorithms like Davis-Putnam –local search procedures like GSAT What’s so special about 4.3?

CKT were first to report the phenomenon Were they the first to see it?

Feldman and Golumbic 1990 Student Scheduling Problems Wait a minute! 1990? Real problems?

Gaschnig PhD thesis nd last page My favourite! Gaschnig’s random 10 queens

Rotate to view! Gaschnig 1979 Log of search effort against constraint tightness Algorithm independent phenomena

Gaschnig’s Thesis, page Cost as a Function of L: A sharp Peak at L = ~0.6

Random CSP’s n the number of variables m domain size p1 the probability of a constraint between variables Vi and Vj p2 probability Vi=x and Vj=y are in conflict easy soluble clique easy insoluble clique hard, phase transition, clique Drosophilia

ECAI94, random csp’s 1994, PT for CSP, show it exists, try and locate it (bms also at ECAI94) And lunch with Barbara, Toby, and Ian

Frost and Dechter AAAI again, Frost and Dechter tabulate, use this for comparison of algs (CKT’s first goal!)

Bessiere AIJ again! A problem in P

Constrainedness is expected number of solutions N is log_2 of the size of the state space k = 0, all states are solutions, easy, underconstrained k = k = 1, critically constrained, 50% solubility, hard, is zero, easy, overconstrained Applied to: CSP, TSP, 3-SAT, 3-COL, Partition, HC, …?

1994 – critical ratio of clauses to variables in 3SAT 1995 –applied techniques from statistical mechanics to analysis 1996 – Kappa, a theory of constrainedness applies in CSP, 3-SAT NumPart, TSP!,... – kappa based heuristics – P/NP phase transition (2+p)-SAT At p ~0.4

1997 –Kappa holds in P, achieving arc-consistency –Empirically derive complexity of AC3 –Derive existing heuristics for revision ordering in AC –Expectation of better understanding of behaviour of algorithms and heuristic –What happens inside search?

1999 –Kappa for QSAT 2000 – the backbone 2001 –backbone heuristics 2000 and beyond –Physics takes over?

Conclusion? More to it than just P and NP we are now learning about the structure of problems the behaviour of algorithms using this to solve the problems!

Where are the hard problems? Patrick Prosser with help from Peter Cheeseman Bob Kanefsky Will Taylor APES and many more