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

Slides:



Advertisements
Similar presentations
Propositional Satisfiability (SAT) Toby Walsh Cork Constraint Computation Centre University College Cork Ireland 4c.ucc.ie/~tw/sat/
Advertisements

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 
Umans Complexity Theory Lectures Lecture 2a: Reductions & Completeness.
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
© 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.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Phase Transitions of PP-Complete Satisfiability Problems D. Bailey, V. Dalmau, Ph.G. Kolaitis Computer Science Department UC Santa Cruz.
Beating Brute Force Search for Formula SAT and QBF SAT Rahul Santhanam University of Edinburgh.
Computability and Complexity 15-1 Computability and Complexity Andrei Bulatov NP-Completeness.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time by using a reasonable sequential model of computation if and only.
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.
Restricted Satisfiability (SAT) Problem
NP-Complete Problems Problems in Computer Science are classified into
Complexity 19-1 Complexity Andrei Bulatov More Probabilistic Algorithms.
AAAI00 Austin, Texas Generating Satisfiable Problem Instances Dimitris Achlioptas Microsoft Carla P. Gomes Cornell University Henry Kautz University of.
1 Discrete Structures CS 280 Example application of probability: MAX 3-SAT.
Carla P. Gomes CS4700 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Instance Hardness and Phase Transitions.
1 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Satisfiability (Reading R&N: Chapter 7)
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.
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 : x: x L 1 iff r(x)
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.
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.
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.
An Exact Algorithm for the Boolean Connectivity Problem for k-CNF Kazuhisa Makino (U. of Tokyo) Suguru Tamaki (Kyoto U.) Masaki Yamamoto (Tokai U.)
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 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.
Review of Propositional Logic Syntax
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 29.
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
Solving the Logic Satisfiability problem Solving the Logic Satisfiability problem Jesus De Loera.
CSE 6311 – Spring 2009 ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS Lecture Notes – Feb. 3, 2009 Instructor: Dr. Gautam Das notes by Walter Wilson.
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.
CSC 413/513: Intro to Algorithms
Why almost all satisfiable k - CNF formulas are easy? Danny Vilenchik Joint work with A. Coja-Oghlan and M. Krivelevich.
SAT Solving As implemented in - DPLL solvers: GRASP, Chaff and
Complexity 24-1 Complexity Andrei Bulatov Interactive Proofs.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
CSCI 2670 Introduction to Theory of Computing December 7, 2005.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
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 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
1 P NP P^#P PSPACE NP-complete: SAT, propositional reasoning, scheduling, graph coloring, puzzles, … PSPACE-complete: QBF, planning, chess (bounded), …
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.
L is in NP means: There is a language L’ in P and a polynomial p so that L1 ≤ L2 means: For some polynomial time computable map r :  x: x  L1 iff.
NP-Completeness Yin Tat Lee
ICS 353: Design and Analysis of Algorithms
Provably hard problems below the satisfiability threshold
NP-Completeness Yin Tat Lee
CSE 6408 Advanced Algorithms.
CSE 589 Applied Algorithms Spring 1999
Instructor: Aaron Roth
Switching Lemmas and Proof Complexity
Presentation transcript:

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

Phase Transitions A phase transitionis an abrupt change in the behavior of a property of a “system”. A phase transition is an abrupt change in the behavior of a property of a “system”. Extensive study of phase transitions in physics (statistical mechanics). Extensive study of phase transitions in physics (statistical mechanics). Extensive study of phase transitions in the behavior of asymptotic probabilities of NP- complete problems during the past decade. Extensive study of phase transitions in the behavior of asymptotic probabilities of NP- complete problems during the past decade.

Motivation and Goals Understand the “structure” of NP-complete complete problems. Understand the “structure” of NP-complete complete problems. Relate phase transitions to the average-case performance of particular algorithms for NP-complete problems. Relate phase transitions to the average-case performance of particular algorithms for NP-complete problems. Ultimately, understand the average-case complexity of NP-complete problems. Ultimately, understand the average-case complexity of NP-complete problems.

Boolean Formulas Literal: x,  x, with x a Boolean variable Literal: x,  x, with x a Boolean variable Clause: disjunction of literals Clause: disjunction of literals k-Clause: disjunction of k literals k-Clause: disjunction of k literals k-CNF formula: conjunction of k-clauses k-CNF formula: conjunction of k-clauses Example: 3-CNF formula Example: 3-CNF formula (x   y  z )  (  z  w   u)  (x  y  z)  (  x   y   u)  (  x   y   u)

NP-Completeness of kSAT kSAT is the following decision problem: given a k-CNF formula , is it satisfiable? (i.e., is there an assignment of values 0/1 to the variables, so that  evaluates to 1). kSAT is the following decision problem: given a k-CNF formula , is it satisfiable? (i.e., is there an assignment of values 0/1 to the variables, so that  evaluates to 1). Theorem: (S. Cook – 1971) Theorem: (S. Cook – 1971) kSAT is NP-complete, for every k  3. kSAT is NP-complete, for every k  3. In particular, 3SAT is NP-complete. In particular, 3SAT is NP-complete.

Random Boolean Formulas F k (n,r): space of all k-CNF formulas with n variables and r  n clauses. F k (n,r): space of all k-CNF formulas with n variables and r  n clauses. Random k-CNF formula: r  n clauses of length k are picked independently & with replacement. Random k-CNF formula: r  n clauses of length k are picked independently & with replacement. pr(k,n,r): probability that a random k-CNF formula is satisfiable. pr(k,n,r): probability that a random k-CNF formula is satisfiable. Fixed clauses-to-variables ratio model introduced and studied first by Franco et al. in the 1980s. Fixed clauses-to-variables ratio model introduced and studied first by Franco et al. in the 1980s.

Phase Transitions for k-SAT Ratio r of clauses-to-variables measures the “constrainedness” of a k-CNF formula. Ratio r of clauses-to-variables measures the “constrainedness” of a k-CNF formula. (Chvatal and Reed – 1992): For every k > 1, there is a ratio r*(k) s.t. Conjecture (Chvatal and Reed – 1992): For every k > 1, there is a ratio r*(k) s.t. –If r < r*(k), then pr(k,n,r)  1; –If r > r*(k), then pr(k,n,r)  0.

Phase Transitions of kSAT Theorem: 2SAT has a phase transition at r*(2)=1. Theorem: 2SAT has a phase transition at r*(2)=1. Chvatal and Reed (1992), Goerdt (1996) Chvatal and Reed (1992), Goerdt (1996) Open Problem: Phase transition of kSAT, k > 2. Open Problem: Phase transition of kSAT, k > 2. Current state of affairs: Current state of affairs: –Analytical upper and lower bounds for the value of r*(k), if it exists. the value of r*(k), if it exists. –Experimental results providing evidence that r*(k) exists and estimates for its value. that r*(k) exists and estimates for its value.

Phase Transition of 3SAT Lower and Upper Bounds for r*(3) Lower and Upper Bounds for r*(3) 3.26 < r*(3) < < r*(3) < Lower: Achlioptas & Sorkin (2000); Lower: Achlioptas & Sorkin (2000); Upper: Kaporis, Kirousis, Stamatiou, Vamvakari, Upper: Kaporis, Kirousis, Stamatiou, Vamvakari, Zito (2001). Zito (2001). Experimental estimation of r*(3) Experimental estimation of r*(3) r*(3)  4.3 r*(3)  4.3 Mitchell, Selman and Levesque (1992). Mitchell, Selman and Levesque (1992).

Phase Transition and Hardness Davis-Putnam (DP) Procedure for SAT Davis-Putnam (DP) Procedure for SAT Unit Propagation + Splitting Rule Unit Propagation + Splitting Rule Mitchell, Levesque and Selman (1992): Mitchell, Levesque and Selman (1992): The average number of recursive calls The average number of recursive calls in the DP-Procedure for 3SAT peaks in the DP-Procedure for 3SAT peaks near the critical ratio 4.3 near the critical ratio 4.3

Phase Transition Phenomena Observed in other NP-complete problems Observed in other NP-complete problems Experimental Results for Experimental Results for -- Graph Coloring Problems -- Graph Coloring Problems -- Constraint Satisfaction Problems -- Constraint Satisfaction Problems -- Number Partitioning -- Number Partitioning Provable Phase Transition at 2/k(k-1) for Provable Phase Transition at 2/k(k-1) for -- 1-in-kSAT Achlioptas et al. (2001) -- 1-in-kSAT Achlioptas et al. (2001)

Phase Transition Phenomena Observed experimentally in problems that are complete for higher complexity classes. Observed experimentally in problems that are complete for higher complexity classes. In particular, PSPACE-complete problems: In particular, PSPACE-complete problems: -- QBF: Cadoli et al. (1997), Gent and Walsh (1999) Gent and Walsh (1999) -- SSAT: Littman (1999), Littman, Majercik, Pitassi (2000) Littman, Majercik, Pitassi (2000)

Hardness of Random #3SAT Birnbaum and Lozinskii (1999) Birnbaum and Lozinskii (1999) Counting Davis-Putnam Procedure (CDP) Counting Davis-Putnam Procedure (CDP) The average number of recursive calls The average number of recursive calls for #3SAT peaks near the ratio 1.2 for #3SAT peaks near the ratio 1.2 Bayardo and Pehoushek (2000) Bayardo and Pehoushek (2000) CDP with connected components CDP with connected components The average number of recursive calls The average number of recursive calls for #3SAT peaks near the ratio 1.5 for #3SAT peaks near the ratio 1.5

Counting vs. Decision Problems #3SAT is a function problem, not a decision problem. #3SAT is a function problem, not a decision problem. Thus, is not meaningful to relate the peak in average running time of algorithms for #3SAT Thus, is not meaningful to relate the peak in average running time of algorithms for #3SAT to a structural phase transition of the asymptotic probability of #3SAT. to a structural phase transition of the asymptotic probability of #3SAT. However, there is a class of decision problems that “captures” the complexity of #P. However, there is a class of decision problems that “captures” the complexity of #P.

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 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 ) P PP = P # P (Angluin ) PP “captures” the complexity of counting PP “captures” the complexity of counting PH  P #P (Toda ) PH  P #P (Toda ) PP is considered to be highly intractable. PP is considered to be highly intractable.

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 However, 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: MAJ 3SAT has no phase transition: for every r, almost all random 3CNF formulas are satisfied by less than half for every r, almost all random 3CNF formulas are satisfied by less than half of all possible truth assignments. of all possible truth assignments.

Square Root 3SAT Square Root 3SAT - #3SAT(  2 n/2 ): given a 3-CNF formula, is it satisfied by at least 2 n/2 truth assignments? Square Root 3SAT - #3SAT(  2 n/2 ): given a 3-CNF 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 3-CNF formula , is it satisfied by at least 2 n/2 truth assignments? Square Root 3SAT - #3SAT(  2 n/2 ): given a 3-CNF 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 Conjecture F 3 (n,r): space of all 3-CNF formulas  with n variables and r  n clauses. F 3 (n,r): space of all 3-CNF formulas  with n variables and r  n clauses. X: random variable on F 3 (n,r) such that X  = number of satisfying assignments of . X: random variable on F 3 (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. -- Covering partial assignments. -- Achlioptas’ differential equations -- Achlioptas’ differential equations technique. technique.

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

An Approach to Lower Bounds Show that, if r is small enough, then a random formula  (x 1,…,x n ) has  2 n/2 satisfying assignments by finding a partial assignment with n/2 variables Show that, if r is small enough, then a random formula  (x 1,…,x n ) has  2 n/2 satisfying assignments by finding a partial assignment with  n/2 variables covering . covering . Covering means: the partial assignment makes the formula true, regardless of the truth value of the un-assigned variables. Covering 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* , use a known lower bound for r*(3) to derive the existence of a To show r* , use a known lower bound for r*(3) to derive the existence of a covering assignment for a random . covering assignment for a random . 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 3-CNF  with m clauses, n variables, and such that m/n  1/2. Random 3-CNF  with m clauses, n variables, and such that m/n  1/2.  has at least one satisfying assignment  by lower bound for r*(3).  has at least one satisfying assignment  by lower bound for r*(3). Build partial assignment  with  n/2 variables that covers   for each of 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. 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 (continued) 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.

Summary 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 2.5 of the critical ratio suggested by the experiments. Analytical upper bound obtained via Markov’s inequality is quite close to the value 2.5 of the critical ratio suggested by the experiments. Open Problem: Obtain tighter upper and Open Problem: Obtain tighter upper and lower bounds. lower bounds.

Work in Progress Investigation of phase transitions of Investigation of phase transitions of #3SAT(  2  n ), 0 <  < 1. #3SAT(  2  n ), 0 <  < 1. Experimental Findings: Experimental Findings: -- Each such problem has a phase transition. -- Each such problem has a phase transition. However, However, -- The peak in the average number of recursive calls does not always occur at the critical ratio. -- The peak in the average number of recursive calls does not always occur at the critical ratio.

The Bigger Challenge Develop a theory of phase transitions Develop a theory of phase transitions of algorithmic problems. of algorithmic problems. Are there structural properties that imply Are there structural properties that imply the existence of phase transitions? the existence of phase transitions? Is there a descriptive complexity theory Is there a descriptive complexity theory of phase transitions? of phase transitions?