Phase Transitions of PP-Complete Satisfiability Problems D. Bailey, V. Dalmau, Ph.G. Kolaitis Computer Science Department UC Santa Cruz.

Slides:



Advertisements
Similar presentations
COMPLEXITY THEORY CSci 5403 LECTURE XVI: COUNTING PROBLEMS AND RANDOMIZED REDUCTIONS.
Advertisements

Comparative Succinctness of KR Formalisms Paolo Liberatore.
Lecture 22: April 18 Probabilistic Method. Why Randomness? Probabilistic method: Proving the existence of an object satisfying certain properties without.
NP-Completeness: Reductions
Time-Space Tradeoffs in Resolution: Superpolynomial Lower Bounds for Superlinear Space Chris Beck Princeton University Joint work with Paul Beame & Russell.
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 
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
Having Proofs for Incorrectness
© The McGraw-Hill Companies, Inc., Chapter 8 The Theory of NP-Completeness.
Algorithms and Problems for Quantified SAT Toby Walsh Department of Computer Science University of York England Ian P. Gent School of Computer Science.
1 L is in NP means: There is a language L’ in P and a polynomial p so that L 1 · L 2 means: For some polynomial time computable map r : 8 x: x 2 L 1 iff.
Computability and Complexity 14-1 Computability and Complexity Andrei Bulatov Cook’s Theorem.
NP-completeness Sipser 7.4 (pages 271 – 283). CS 311 Fall The classes P and NP NP = ∪ k NTIME(n k ) P = ∪ k TIME(n k )
Beating Brute Force Search for Formula SAT and QBF SAT Rahul Santhanam University of Edinburgh.
CS21 Decidability and Tractability
Computability and Complexity 15-1 Computability and Complexity Andrei Bulatov NP-Completeness.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY Read sections 7.1 – 7.3 of the book for next time.
08/1 Foundations of AI 8. Satisfiability and Model Construction Davis-Putnam, Phase Transitions, GSAT Wolfram Burgard and Bernhard Nebel.
In Search of a Phase Transition in the AC-Matching Problem Phokion G. Kolaitis Thomas Raffill Computer Science Department UC Santa Cruz.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
Phase Transitions of PP-Complete Satisfiability Problems D. Bailey, V. Dalmau, Ph.G. Kolaitis Computer Science Department UC Santa Cruz.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2006 Lecture 7 Monday, 4/3/06 Approximation Algorithms.
NP-Complete Problems Problems in Computer Science are classified into
Complexity 19-1 Complexity Andrei Bulatov More Probabilistic Algorithms.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture NP-Completeness Jan Maluszynski, IDA, 2007
1 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Satisfiability (Reading R&N: Chapter 7)
Randomzied Unique k-SAT R. Paturi, P. Pudlak, M.E. Saks and F. Zane An Improved Exponential-time Algorithm for k-SAT Journal of the ACM, Vol 52, No. 3,
1 Paul Beame University of Washington Phase Transitions in Proof Complexity and Satisfiability Search Dimitris Achlioptas Michael Molloy Microsoft Research.
1 The Theory of NP-Completeness 2 NP P NPC NP: Non-deterministic Polynomial P: Polynomial NPC: Non-deterministic Polynomial Complete P=NP? X = P.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
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.
Theory of Computation, Feodor F. Dragan, Kent State University 1 NP-Completeness P: is the set of decision problems (or languages) that are solvable in.
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
Computational Complexity Theory Lecture 2: Reductions, NP-completeness, Cook-Levin theorem Indian Institute of Science.
NP Complexity By Mussie Araya. What is NP Complexity? Formal Definition: NP is the set of decision problems solvable in polynomial time by a non- deterministic.
CS151 Complexity Theory Lecture 13 May 11, Outline proof systems interactive proofs and their power Arthur-Merlin games.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
Surya Bhupatiraju MIT PRIMES May 20 th, 2012 On the Complexity of the Marginal Consistency Problem.
1 P P := the class of decision problems (languages) decided by a Turing machine so that for some polynomial p and all x, the machine terminates after at.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
Non-Approximability Results. Summary -Gap technique -Examples: MINIMUM GRAPH COLORING, MINIMUM TSP, MINIMUM BIN PACKING -The PCP theorem -Application:
NPC.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
Complexity 24-1 Complexity Andrei Bulatov Interactive Proofs.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Theory of Computational Complexity Yuji Ishikawa Avis lab. M1.
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.
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.
1 SAT SAT: Given a Boolean function in CNF representation, is there a way to assign truth values to the variables so that the function evaluates to true?
 2005 SDU Lecture15 P,NP,NP-complete.  2005 SDU 2 The PATH problem PATH = { | G is a directed graph that has a directed path from s to t} s t
CHAPTER SIX T HE P ROBABILISTIC M ETHOD M1 Zhang Cong 2011/Nov/28.
Theory of Computational Complexity Probability and Computing Chapter Hikaru Inada Iwama and Ito lab M1.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Probabilistic Algorithms
NP-Completeness Yin Tat Lee
ICS 353: Design and Analysis of Algorithms
CSE 6408 Advanced Algorithms.
Theorem 8.19 If algorithm A has absolute approximation ratio RA , then the shifting algorithm has absolute approximation (KRA+1)/(K+1) Proof. If N is.
Umans Complexity Theory Lectures
Instructor: Aaron Roth
Presentation transcript:

Phase Transitions of PP-Complete Satisfiability Problems D. Bailey, V. Dalmau, Ph.G. Kolaitis Computer Science Department UC Santa Cruz

Phase Transition Phenomena First observed in NP-complete problems: SAT, CSP, Number Partitioning, … First observed in NP-complete problems: SAT, CSP, Number Partitioning, … Recently also observed in problems that are complete for higher complexity classes Recently also observed in problems that are complete for higher complexity classes Observed in PSPACE-complete problems: Observed in PSPACE-complete problems:  QBF: Cadoli et al. ; Gent & Walsh  SSAT: Littman; Littman-Majercik-Pitassi

PP: Probabilistic NP PP: there is a polynomial time NTM such that an input is accepted iff at least half of the computations are accepting. Simon, 1975; Gill, 1977 PP: there is a polynomial time NTM such that an input is accepted iff at least half of the computations are accepting. Simon, 1975; Gill, 1977 Prototypical PP-complete problem: MAJSAT: given a CNF-formula, is it satisfied by at least half of the possible truth assignments? Prototypical PP-complete problem: MAJSAT: given a CNF-formula , is it satisfied by at least half of the possible truth assignments? PP-complete problem in AI: Orponen, 1990; Roth, 1996 PP-complete problem in AI: Orponen, 1990; Roth, 1996

PP vs. Other Complexity Classes PP contains both NP and coNP. PP contains both NP and coNP. PP is contained in PSPACE. PP is contained in PSPACE. P PP = P # P (Angluin, 1980). Hence, P PP = P # P (Angluin, 1980). Hence,  PP captures the complexity of counting.  PP is highly intractable, since P # P contains the polynomial hierarchy PH (Toda, 1990).

Phase Transitions in PP Problems Study PP-complete satisfiability problems under the fixed clauses-to-variables model. Study PP-complete satisfiability problems under the fixed clauses-to-variables model. First natural choice to study: MAJ 3SAT First natural choice to study: MAJ 3SAT

Phase Transitions in PP Problems Study PP-complete satisfiability problems under the fixed clauses-to-variables model. Study PP-complete satisfiability problems under the fixed clauses-to-variables model. First natural choice to study: MAJ 3SAT. However, First natural choice to study: MAJ 3SAT. However, MAJ 3SAT is not known to be PP-complete. MAJ 3SAT is not known to be PP-complete. MAJ 3SAT has no phase transition: for every r, almost all random 3CNF formulas are satisfied by less than half of all possible truth assignments. MAJ 3SAT has no phase transition: for every r, almost all random 3CNF formulas are satisfied by less than half of all possible truth assignments.

Square Root 3SAT Square Root 3SAT - #3SAT(  2 n/2 ): given a 3CNF-formula, is it satisfied by at least 2 n/2 truth assignments? Square Root 3SAT - #3SAT(  2 n/2 ): given a 3CNF-formula , is it satisfied by at least 2 n/2 truth assignments? Intuitively, #3SAT(  2 n/2 ) asks whether at least one of the first n/2 bits of the number of satisfying truth assignments is equal to 1. Intuitively, #3SAT(  2 n/2 ) asks whether at least one of the first n/2 bits of the number of satisfying truth assignments is equal to 1.

Square Root 3SAT Square Root 3SAT - #3SAT(  2 n/2 ): given a 3CNF formula, is it satisfied by at least 2 n/2 truth assignments? Square Root 3SAT - #3SAT(  2 n/2 ): given a 3CNF formula , is it satisfied by at least 2 n/2 truth assignments? Intuitively, #3SAT(  2 n/2 ) asks whether at least one of the first n/2 bits of the number of satisfying truth assignments is equal to 1. Intuitively, #3SAT(  2 n/2 ) asks whether at least one of the first n/2 bits of the number of satisfying truth assignments is equal to 1. Theorem: #3SAT(  2 n/2 ) is PP-complete. Theorem: #3SAT(  2 n/2 ) is PP-complete.

Phase Transition Definition F(n,r): space of all 3CNF-formulas  with n variables and rn clauses. F(n,r): space of all 3CNF-formulas  with n variables and rn clauses. X: random variable on F(n,r), such that X  = number of satisfying assignments of . X: random variable on F(n,r), such that X  = number of satisfying assignments of . S: an assertion about X. S: an assertion about X. X has phase transition at r* iff for all r X has phase transition at r* iff for all r  If r < r*, then Pr[ S is true ]  1;  If r > r*, then Pr[ S is true ]  0.

Phase Transition Conjecture F(n,r): space of all 3CNF-formulas  with n variables and rn clauses. F(n,r): space of all 3CNF-formulas  with n variables and rn clauses. X: random variable on F(n,r) such that X  = number of satisfying assignments of . X: random variable on F(n,r) such that X  = number of satisfying assignments of . Conjecture: There is a ratio r* such that Conjecture: There is a ratio r* such that  If r < r*, then Pr[ X  2 n/2 ]  1;  If r > r*, then Pr[ X  2 n/2 ]  0.

Evidence for the Phase Transition Analytical results that yield upper and lower bounds for r*. Analytical results that yield upper and lower bounds for r*. Experimental results suggesting that r*  2.5 Experimental results suggesting that r*  2.5

Upper and Lower Bounds for r* Theorem:  r*  Theorem:  r*  Hint of Proof: Hint of Proof:  Upper Bound: Markov’s inequality.  Lower Bound: Covering partial assignments.

Upper Bound for r* From Markov’s inequality, Pr[ X  2 n/2 ]  E(X)/ 2 n/2 From Markov’s inequality, Pr[ X  2 n/2 ]  E(X)/ 2 n/2 E(X) = 2 n (7/8) rn E(X) = 2 n (7/8) rn Pr[ X  2 n/2 ]  2 n/2 (7/8) rn Pr[ X  2 n/2 ]  2 n/2 (7/8) rn If, 2 1/2 (7/8) r  1, then Pr [ X  2 n/2 ]  0 as n  If, 2 1/2 (7/8) r  1, then Pr [ X  2 n/2 ]  0 as n  So if, r  2.595, then Pr [ X  2 n/2 ]  0 as n  So if, r  2.595, then Pr [ X  2 n/2 ]  0 as n 

Lower Bound General Approach Show that a randomly selected formula  (x 1,…,x n ) has at least 2 n/2 satisfying assignments by finding a partial assignment with 2 n/2 variables that covers . Show that a randomly selected formula  (x 1,…,x n ) has at least 2 n/2 satisfying assignments by finding a partial assignment with  2 n/2 variables that covers . Covers means: the partial assignment makes the formula true, regardless of the truth value of the un-assigned variables. Covers means: the partial assignment makes the formula true, regardless of the truth value of the un-assigned variables.

Finding Covering Partial Assignments To show r* , derive from the existence of at least one satisfying assignment from To show r* , derive from the existence of at least one satisfying assignment from  a 2CNF theorem or from  a 3SAT lower bound theorem. To show r*  use Achlioptas’ technique to analyze a simple randomized algorithm, called the Extended Unit Clause. To show r*  use Achlioptas’ technique to analyze a simple randomized algorithm, called the Extended Unit Clause.

1/2 Lower Bound for r* Random n variable 3CNF  with m clauses, such that m/n  1/2. Random n variable 3CNF  with m clauses, such that m/n  1/2.  has at least one satisfying assignment,  by lower bound theorem for 3SAT.  has at least one satisfying assignment,  by lower bound theorem for 3SAT. Build partial assignment  with  n/2 variables that covers  for each of the  n/2 clauses in , choose some literal in the clause that is true under  and set  to also make that literal true. Build partial assignment  with  n/2 variables that covers  for each of the  n/2 clauses in , choose some literal in the clause that is true under  and set  to also make that literal true.

Experimental Results Implemented a threshold version of Birnbaum & Lozinskii’s CDP algorithm. Implemented a threshold version of Birnbaum & Lozinskii’s CDP algorithm. Experiments on random 3CNF-formulas with n = 10, 20, 30, 40, and 50 variables. Experiments on random 3CNF-formulas with n = 10, 20, 30, 40, and 50 variables. Probability curves cross at r  2.5 Probability curves cross at r  2.5 The average number of recursive calls peaks near 2.5 The average number of recursive calls peaks near 2.5

Birnbaum & Lozinskii’s CDP recursive function CDP(  n) recursive function CDP(  n) if  is empty, return 2 n if  is empty, return 2 n if  contains an empty clause, return 0 if  contains an empty clause, return 0 if  contains unit clause {t}, return CDP(  ,n-1), where if  contains unit clause {t}, return CDP(  ,n-1), where    contains all clauses in  that do not contain t ;  the literal  t is removed if present.

CDP (cont.) otherwise choose any variable x in  return CDP(  ,n-1) + CDP(  ,n-1), where otherwise choose any variable x in  return CDP(  ,n-1) + CDP(  ,n-1), where    contains all clauses in  that do not contain x, with the literal  x removed if present.    contains all clauses in  that do not contain  x, with the literal x removed if present.

Threshold CDP Accumulate partial counts in recursive calls of CDP. Accumulate partial counts in recursive calls of CDP. Return yes when accumulated count equals or exceeds threshold. Return yes when accumulated count equals or exceeds threshold. Return no otherwise. Return no otherwise. Can also use upper bound tracking to terminate and return no earlier. Can also use upper bound tracking to terminate and return no earlier.

Concluding Remarks Evidence for a phase transition in a natural PP-complete satisfiability problem. Evidence for a phase transition in a natural PP-complete satisfiability problem. Analytical upper bound obtained via Markov’s inequality is quite close to the value of the critical ratio suggested by the experiments. Analytical upper bound obtained via Markov’s inequality is quite close to the value of the critical ratio suggested by the experiments. Next steps: Next steps:  Obtain tighter upper and lower bounds.  Characterize the rate of growth of the average number of recursive calls as r and n vary.