algorithms for random k sat and k colourings of a random
play

Algorithms for random k -SAT and k -colourings of a random graph - PowerPoint PPT Presentation

Algorithms for random k -SAT and k -colourings of a random graph Michael Molloy Dept of Computer Science University of Toronto Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph Hard and Easy Distributions of SAT


  1. Algorithms for random k -SAT and k -colourings of a random graph Michael Molloy Dept of Computer Science University of Toronto Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  2. Hard and Easy Distributions of SAT Problems. Mitchell, Selman, Levesque 1992 Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  3. 3-SAT: ( x 1 ∨ x 2 ∨ x 4 ) ∧ ( x 2 ∨ x 5 ∨ x 7 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ ( x 4 ∨ x 6 ∨ x 7 ) Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  4. Motivation: Are only a few worse-case k -SAT problems difficult? What about average problems? Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  5. Question: What makes them difficult? Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  6. Question: What makes them difficult? Chv´ atal, Szemeredi 1988 W.h.p. the resolution complexity is exponentially high. Implies that any Davis-Putnam type algorithm will require exponential time to recognize an unsatisfiable formula. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  7. Question: What makes them difficult? Achlioptas, Beame, M 2001 Explains why it takes a long time to recognize a satisfiable formula. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  8. Survey Propogation Finds satisfying solutions with n = 1 , 000 , 000 and M = 4 . 25 n . (Satisfiabilty threshold is ≈ 4 . 267) Mezard, Zecchina 2002 Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  9. Survey Propogation Finds satisfying solutions with n = 1 , 000 , 000 and M = 4 . 25 n . (Satisfiabilty threshold is ≈ 4 . 267) Mezard, Zecchina 2002 Gave us structural properties about the solutions that explain the algorithmic difficulties. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  10. Random Models Random k -SAT: n variables and M = rn clauses. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  11. Random Models Random k -SAT: n variables and M = rn clauses. G n , M : Random graph with n vertices and M = rn edges. Erd˝ os, R´ enyi 1959 Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  12. A Simple Greedy Algorithm UNIT CLAUSE Iterate: If there is a clause of size one, set that variable. Else pick a random variable and set it randomly. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  13. A Simple Greedy Algorithm UNIT CLAUSE Iterate: If there is a clause of size one, set that variable. Else pick a random variable and set it randomly. ( x 1 ∨ x 2 ∨ x 4 ) ∧ ( x 2 ∨ x 5 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ ( x 2 ) ∧ . . . Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  14. A Simple Greedy Algorithm UNIT CLAUSE Iterate: If there is a clause of size one, set that variable. Else pick a random variable and set it randomly. ( x 1 ∨ x 2 ∨ x 4 ) ∧ ( x 2 ∨ x 5 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ ( x 2 ) ∧ . . . x 2 = F Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  15. A Simple Greedy Algorithm UNIT CLAUSE Iterate: If there is a clause of size one, set that variable. Else pick a random variable and set it randomly. ( x 1 ∨ x 2 ∨ x 4 ) ∧ ( x 2 ∨ x 5 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ ( x 2 ) ∧ . . . x 2 = F ( x 5 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ . . . Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  16. A Simple Greedy Algorithm UNIT CLAUSE Iterate: If there is a clause of size one, set that variable. Else pick a random variable and set it randomly. ( x 1 ∨ x 2 ∨ x 4 ) ∧ ( x 2 ∨ x 5 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ ( x 2 ) ∧ . . . x 2 = F ( x 5 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ . . . 3-SAT: Works up to density r < 2 . 666; threshold ≈ 4 . 267 k -SAT: Works up to density r < 2 k k ; threshold ≈ 2 k ln 2 (Franco, Paull 1983; Achlioptas, Peres 2004; Coja-Oghlan 2013 ) Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  17. A Simple Greedy Algorithm UNIT CLAUSE Iterate: If there is a clause of size one, set that variable. Else pick a random variable and set it randomly. ( x 1 ∨ x 2 ∨ x 4 ) ∧ ( x 2 ∨ x 5 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ ( x 2 ) ∧ . . . x 2 = F ( x 5 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ . . . 3-SAT: Works up to density r < 2 . 666; threshold ≈ 4 . 267 k ; threshold ≈ 2 k ln 2 k -SAT: Works up to density r < 2 k � � 2 k Variants of this algorithm all fail to work above r = O . k Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  18. Clustering Roughly speaking, clusters are: Well-connected. One can move throughout the cluster changing o ( n ) vertices at a time. Well-separated Moving from one cluster to another requires changing Θ( n ) vertices in one step. Parisi, Mezard, Zecchina Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  19. 2-colourings of a Random Bipartite Graph Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  20. 2-colourings of a Random Bipartite Graph Two clusters - one for each colouring of the giant component. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  21. 2-colourings of a Random Bipartite Graph Two clusters - one for each colouring of the giant component. We can move within a cluster by switching one small component at a time. But leaving a cluster requires switching the Θ( n ) vertices in the giant component. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  22. Clustering k -SAT clusters: ≈ 2 k ln k unsatisfiable: ≈ 2 k ln 2 k k -COL clusters: ≈ 1 2 k ln k unsatisfiable: ≈ k ln k Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  23. WALK-SAT Start with any assignment. While there are unsatisfied clauses: Pick a random unsatisfied clause. Randomly choose one of its variables and flip it. ( x 1 ∨ x 4 ∨ x 5 ) ∧ ( x 2 ∨ x 3 ∨ x 4 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ ( x 3 ∨ x 4 ∨ x 5 ) ∧ ... x 1 = T , x 2 = T , x 3 = T , x 4 = T , x 5 = T Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  24. WALK-SAT Start with any assignment. While there are unsatisfied clauses: Pick a random unsatisfied clause. Randomly choose one of its variables and flip it. ( x 1 ∨ x 4 ∨ x 5 ) ∧ ( x 2 ∨ x 3 ∨ x 4 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ ( x 3 ∨ x 4 ∨ x 5 ) ∧ ... x 1 = T , x 2 = T , x 3 = T , x 4 = T , x 5 = T Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  25. WALK-SAT Start with any assignment. While there are unsatisfied clauses: Pick a random unsatisfied clause. Randomly choose one of its variables and flip it. ( x 1 ∨ x 4 ∨ x 5 ) ∧ ( x 2 ∨ x 3 ∨ x 4 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ ( x 3 ∨ x 4 ∨ x 5 ) ∧ ... x 1 = T , x 2 = T , x 3 = T , x 4 = T , x 5 = T Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  26. WALK-SAT Start with any assignment. While there are unsatisfied clauses: Pick a random unsatisfied clause. Randomly choose one of its variables and flip it. ( x 1 ∨ x 4 ∨ x 5 ) ∧ ( x 2 ∨ x 3 ∨ x 4 ) ∧ ( x 1 ∨ x 3 ∨ x 5 ) ∧ ( x 3 ∨ x 4 ∨ x 5 ) ∧ ... x 1 = T , x 2 = T , x 3 = F , x 4 = T , x 5 = T Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  27. WALK-SAT Start with any assignment. While there are unsatisfied clauses: Pick a random unsatisfied clause. Randomly choose one of its variables and flip it. Seems to work up to freezing threshold ≈ 2 k ln k k Proven to work up to 2 k ln k ( Coja-Oghlan, Frieze 2012) 25 k Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  28. 2-colourings of a Random Bipartite Graph Two clusters - one for each colouring of the giant component. Every vertex of the giant component is frozen. Its colour is fixed within each cluster. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  29. The Freezing Threshold Freezing Threshold ≈ Clustering Threshold Frozen Variable: Has the same value on every solution in the cluster. r < r f : Almost all clusters have no frozen variables. r > r f : Almost all clusters have Θ( n ) frozen variables. Krzakala, Zdeborova; Montanari, Ricci-Tersenghi, Semerjian Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  30. The Freezing Threshold Freezing Threshold ≈ Clustering Threshold Unfrozen Variable: Can be changed by making a local modficiation - changing o ( n ) nearby variables. Frozen Variable: To change it requires a global modification - changing Θ( n ) variables. r < r f : Almost all solutions have no frozen variables. r > r f : Almost all solutions have Θ( n ) frozen variables. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  31. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

  32. A Complicated Greedy Algorithm DECIMATION Find a variable that is set T (F) in most solutions. Set it T (F). Iterate. Michael Molloy Algorithms for random k -SAT and k -colourings of a random graph

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend