1 / 17

CS 4700: Foundations of Artificial Intelligence

CS 4700: Foundations of Artificial Intelligence. Carla P. Gomes gomes@cs.cornell.edu Module: Instance Hardness and Phase Transitions (Reading R&N: page 224-225). Instance Hardness. Beyond NP-Completeness. NP-Completeness is a worst-case notion! Not all problems instances are the same!

chiku
Download Presentation

CS 4700: Foundations of Artificial Intelligence

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 4700:Foundations of Artificial Intelligence Carla P. Gomes gomes@cs.cornell.edu Module: Instance Hardness and Phase Transitions (Reading R&N: page 224-225)

  2. Instance Hardness

  3. Beyond NP-Completeness • NP-Completeness is a worst-case notion! • Not all problems instances are the same! • We now have means for discriminating easy from hard instances •  structural differences between instances of the same problem class.

  4. Number Backtracks: 1820 165 150 Are all the Latin Square Instances (of same size) Equally Difficult? What is the fundamental difference between instances?

  5. Number Backtracks: 150 Fraction of preassignment: 35% Are all Latin Square Instances Equally Difficult? 1820 165 50% 40%

  6. Critically constrained area Underconstrained area Overconstrained area 20% 42% 50% Complexity of Latin Square Completion Median Runtime (log scale) Fraction of pre-assignment

  7. Complexity Graph Phase transition from almost all solvable to almost all unsolvable Almost all solvable area Almost all unsolvable area Phase Transition Fraction of unsolvable cases Fraction of pre-assignment

  8. 32% holes Latin Squares with Holes • Given a full Latin Square, “punch” holes into it Difficulty:how to generate the full quasigroup, uniformly. Question:does this give challenging instances?

  9. Markov Chain Monte Carlo (MCMM) • We use a Markov chain Monte Carlo method (MCMM) whose stationary (ergodic) distribution is uniform over the space of NxN Latin Squares(Jacobson and Matthews 96). • Startwith arbitrary Latin Square • Random walk on a sequence of Squares obtained via local modifications

  10. Generation of Latin Squares with Holes (LSWH) • Use MCMM to generate solved Latin Square • Punch holes - i.e.,uncolor a fraction of the entries • The resulting instances are guaranteed satisfiable • LSWH is NP-Hard Is there % holes where instances are truly hard on average?

  11. Order 30, 33, 36 Easy-Hard-Easy Pattern in Backtracking Search Peak near 32% (LSCP peaks near 42%) Computational Cost Research Question: why the peak? % holes

  12. Local (Walksat) Search Order 30, 33, 36 Easy-Hard-Easy Pattern in Local Search Research Question: why the peak? Computational Cost % holes First solid statistics for overconstrainted area!

  13. These results for Latin Squares - a structured problem -nicely complement previous results on phase transition and computational complexity for random instances such as SAT, Graph Coloring, etc.

  14. Propositional Satisfiability problem(SAT) • Satifiability (SAT): Given a formula in propositional logic, is there a model • (i.e., a satisfying interpretation, an assignment to its variables) making it true? • We consider clausal form, e.g.: • ( ab c ) AND ( b c) AND ( ac) possible assignments SAT: prototypical hard combinatorial search and reasoning problem. Problem is NP-Complete. (Cook 1971) Surprising “power” of SAT for encoding computational problems.

  15. 3 SAT (all clauses have 3 literals) Early Results Complexity peak Runtime of interest for alg. design More about Propositional Logic and SAT in the Logic module SAT phase The phase transition Prob. satisfiable UNSAT phase Thanks Bart Selman! Ratioof Clauses to Varables

  16. Phase transition Random Walk DP DP’ GSAT Walksat SP Random 3-SAT as of 2005 Linear time algs. Mitchell, Selman, and Levesque ’92

  17. 5.19 5.081 4.762 4.596 4.506 4.601 4.643 Random Walk DP DP’ GSAT Walksat SP Random 3-SAT as of 2005 Linear time algs. Upper bounds by combinatorial arguments (’92 – ’05)

More Related