It’s all about the support: a new perspective on the satisfiability problem Danny Vilenchik.

Slides:



Advertisements
Similar presentations
Analysis of Algorithms
Advertisements

Complexity ©D.Moshkovits 1 Where Can We Draw The Line? On the Hardness of Satisfiability Problems.
“Using Weighted MAX-SAT Engines to Solve MPE” -- by James D. Park Shuo (Olivia) Yang.
Max Cut Problem Daniel Natapov.
Gibbs sampler - simple properties It’s not hard to show that this MC chain is aperiodic. Often is reversible distribution. If in addition the chain is.
MaxClique Inapproximability Seminar on HARDNESS OF APPROXIMATION PROBLEMS by Dr. Irit Dinur Presented by Rica Gonen.
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 
Introduction to PCP and Hardness of Approximation Dana Moshkovitz Princeton University and The Institute for Advanced Study 1.
Complexity ©D.Moshkovits 1 Hardness of Approximation.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Why almost all k-colorable graphs are easy A. Coja-Oghlan, M. Krivelevich, D. Vilenchik.
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.
Semidefinite Programming
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
1 Towards Efficient Sampling: Exploiting Random Walk Strategy Wei Wei, Jordan Erenrich, and Bart Selman.
Complexity 19-1 Complexity Andrei Bulatov More Probabilistic Algorithms.
Testing Metric Properties Michal Parnas and Dana Ron.
Analysis of Algorithms CS 477/677
1 Discrete Structures CS 280 Example application of probability: MAX 3-SAT.
Why almost all k-colorable graphs are easy ? A. Coja-Oghlan, M. Krivelevich, D. Vilenchik.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Stochastic greedy local search Chapter 7 ICS-275 Spring 2007.
Finding a maximum independent set in a sparse random graph Uriel Feige and Eran Ofek.
1 Slides by Asaf Shapira & Michael Lewin & Boaz Klartag & Oded Schwartz. Adapted from things beyond us.
1 Paul Beame University of Washington Phase Transitions in Proof Complexity and Satisfiability Search Dimitris Achlioptas Michael Molloy Microsoft Research.
Sampling Combinatorial Space Using Biased Random Walks Jordan Erenrich, Wei Wei and Bart Selman Dept. of Computer Science Cornell University.
Primal-Dual Meets Local Search: Approximating MST’s with Non-uniform Degree Bounds Author: Jochen Könemann R. Ravi From CMU CS 3150 Presentation by Dan.
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.
CHAPTERS 7, 8 Oliver Schulte Logical Inference: Through Proof to Truth.
1 Rigorous analysis of heuristics for NP-hard problems Uriel Feige Weizmann Institute Microsoft Research.
MCS 312: NP Completeness and Approximation algorthms Instructor Neelima Gupta
Private Approximation of Search Problems Amos Beimel Paz Carmi Kobbi Nissim Enav Weinreb (Technion)
An Efficient Algorithm for Enumerating Pseudo Cliques Dec/18/2007 ISAAC, Sendai Takeaki Uno National Institute of Informatics & The Graduate University.
Satisfiable k -CNF formulas above the threshold Danny Vilenchik.
Linear Program Set Cover. Given a universe U of n elements, a collection of subsets of U, S = {S 1,…, S k }, and a cost function c: S → Q +. Find a minimum.
Stochastic greedy local search Chapter 7 ICS-275 Spring 2009.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
SAT 2009 Ashish Sabharwal Backdoors in the Context of Learning (short paper) Bistra Dilkina, Carla P. Gomes, Ashish Sabharwal Cornell University SAT-09.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
Accelerating Random Walks Wei Wei and Bart Selman.
Unique Games Approximation Amit Weinstein Complexity Seminar, Fall 2006 Based on: “Near Optimal Algorithms for Unique Games" by M. Charikar, K. Makarychev,
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
NPC.
Why almost all satisfiable k - CNF formulas are easy? Danny Vilenchik Joint work with A. Coja-Oghlan and M. Krivelevich.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
Complexity ©D.Moshkovits 1 2-Satisfiability NOTE: These slides were created by Muli Safra, from OPICS/sat/)
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
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.
KITPC Osamu Watanabe Tokyo Inst. of Tech. Finding Most-Likely Solution of the Perturbed k -Linear-Equation Problem k -Linear-Equation = k LIN 渡辺.
Theory of Computational Complexity Probability and Computing Chapter Hikaru Inada Iwama and Ito lab M1.
The NP class. NP-completeness
(xy)(yz)(xz)(zy)
Circuit Lower Bounds A combinatorial approach to P vs NP
Local Search Strategies: From N-Queens to Walksat
Possibilities and Limitations in Computation
NP-Completeness Yin Tat Lee
Where Can We Draw The Line?
Intro to NP Completeness
Haim Kaplan and Uri Zwick
The Curve Merger (Dvir & Widgerson, 2008)
On the effect of randomness on planted 3-coloring models
M. Krivelevich, D. Vilenchik SODA 2006
Chapter 11 Limitations of Algorithm Power
Graphs and Algorithms (2MMD30)
Provably hard problems below the satisfiability threshold
NP-Completeness Yin Tat Lee
CSE 6408 Advanced Algorithms.
Instructor: Aaron Roth
Presentation transcript:

It’s all about the support: a new perspective on the satisfiability problem Danny Vilenchik

SAT – Basic Notions 3CNF form: F = ( x 1 Ç x 2 Ç ¬x 5 ) Æ ( x 3 Ç ¬x 4 Ç ¬x 1 ) Æ ( x 1 Ç x 2 Ç x 6 ) Æ … Ã F = ( F Ç F Ç T ) Æ ( T Ç T Ç T ) Æ ( T Ç F Ç T ) Æ … x6x6 x5x5 x4x4 x3x3 x2x2 x1x1 TFFTFF x 5 supports this clause w.r.t. Ã The supporter (if exists) is always unique Goal: algorithm that produces optimal result, efficient, and works for all inputs

SAT – Some Background  Finding a satisfying assignment is NP Hard [Cook’71]  No approximation for MAX-SAT with factor better than 7/8 [Hastad’01]  How to proceed?  Hardness results only show that there exist hard instances  The heuristical approach - relaxes the universality requirement  Typical instance?  One possibility: random models Heuristic is a polynomial time algorithm that produces optimal results on typical instances Heuristic is a polynomial time algorithm that produces optimal results on typical instances

Random 3SAT  Random 3SAT:  Fix m, n  Pick m clauses uniformly at random (over the n variables)  Threshold: there exists a constant d such that [Fri99]  m/n ¸ d : most 3CNF s are not satisfiable (4.506)  m/n < d : most 3CNF s are satisfiable (3.42)  Near-threshold 3CNF s are apparently “hard” for many SAT heuristics  Possible reason: complicated structure of solution space (clustering)

Motivation – part 1  Experimental results show: takes super-polynomial time for m/n ¸ 2.65 RWalkSAT( F ) [Papa91] 1.Set à à random assignment 2.While( à doesn't satisfy F ) a.Pick a random unsatisfied clause C b.Flip a random variable in C RWalkSAT( F ) [Papa91] 1.Set à à random assignment 2.While( à doesn't satisfy F ) a.Pick a random unsatisfied clause C b.Flip a random variable in C Simulated annealing WalkSAT( F ) 1.Set à à random assignment 2.While( à doesn't satisfy F ) a.Pick a random unsatisfied clause C b.If C contains x s.t. support à ( x ) =0, flip x c.Else, -w.p. p flip variable with least support -w.p. (1-p) flip a random variable WalkSAT( F ) 1.Set à à random assignment 2.While( à doesn't satisfy F ) a.Pick a random unsatisfied clause C b.If C contains x s.t. support à ( x ) =0, flip x c.Else, -w.p. p flip variable with least support -w.p. (1-p) flip a random variable

Motivation cont.  WalkSAT was suggested by Seizt, Alava, Orponen,  For p=0.57, experimental results show polynomial time for m/n ¸ 4.2  Already above the clustering threshold (~ 3.92 )  What makes this possible?  We suggest: taking the support into account  WalkSAT is part of the Support Paradigm Support Paradigm: a simulated-annealing heuristic H is part of the Support Paradigm if it bases its greedy decisions (which variable to flip) on the notion of support. Support Paradigm: a simulated-annealing heuristic H is part of the Support Paradigm if it bases its greedy decisions (which variable to flip) on the notion of support.

Our Result – Part 1  We present a simulated-annealing algorithm – SupportSAT  In some sense a variation on RWalkSAT that considers the support  The algorithm is part of the Support Paradigm  Proving rigorously that WalkSAT “works” is a very ambitious task  Improving lower bound on the sat threshold from 3.42 to 4.21 Theorem: the algorithm SupportSAT finds whp a satisfying assignment for 3CNF formulas in the planted 3SAT distribution with m/n ¸ c 0, c 0 some sufficiently large constant. Theorem: the algorithm SupportSAT finds whp a satisfying assignment for 3CNF formulas in the planted 3SAT distribution with m/n ¸ c 0, c 0 some sufficiently large constant.

Our Result cont.  RWalkSAT disregards the support – fails on such instances [AB04]  Staying at distance ¸ n/3 form any satisfying assignment  This rigorously mirrors the near-threshold picture for Random 3SAT  Experimental results show (random 3SAT):  RWalkSAT takes super-polynomial time for m/n ¸ 2.65  WalkSAT (Support Paradigm) stays efficient until m/n ¸ 4.21  Rigorous results show (Planted 3SAT) :  RWalkSAT takes super-polynomial time for m/n ¸ c 0  SupportSAT finds whp a satisfying assignment in polynomial time

The Algorithms RWalkSAT( F ) 1.Set à à random assignment 2.While( à doesn't satisfy F ) a.Pick a random unsatisfied clause C b.Flip a random variable in C RWalkSAT( F ) 1.Set à à random assignment 2.While( à doesn't satisfy F ) a.Pick a random unsatisfied clause C b.Flip a random variable in C WalkSAT( F ) 1.Set à à random assignment 2.While( à doesn't satisfy F ) a.Pick a random unsatisfied clause C b.If C contains x s.t. support à ( x ) =0, flip x c.Else, -w.p. p flip variable with least support -w.p. (1-p) flip a random variable WalkSAT( F ) 1.Set à à random assignment 2.While( à doesn't satisfy F ) a.Pick a random unsatisfied clause C b.If C contains x s.t. support à ( x ) =0, flip x c.Else, -w.p. p flip variable with least support -w.p. (1-p) flip a random variable SupportSAT( F ) 1.Start with a random assignment 2.Iteratively flip variables with low support ( O ( log n ) steps) 3.Exhaustively search the subformula induced by “suspicious” variables SupportSAT( F ) 1.Start with a random assignment 2.Iteratively flip variables with low support ( O ( log n ) steps) 3.Exhaustively search the subformula induced by “suspicious” variables

The Planted Distribution  Planted 3SAT distribution with parameters m, n :  Fix an assignment   Pick u.a.r. m clauses out of all clauses that are satisfied by   We consider the case m/n=O(1)  Planted models also “fashionable” for graph coloring, max clique, max independent set, min bisection, SAT …  Planted 3SAT was analyzed in several papers  [Fla03] shows a spectral algorithm for solving sparse instances  We use the planted 3SAT as a case study for rigorous analysis to show:  “Simple” algorithms can be rigorously analyzed  Analysis of an algorithm in the Support Paradigm

Analysis Sampler  Every variable x is expected to appear in 3m/n clauses  x supports (w.r.t. planted) a clause in which it appears w.p. 1/7  E[Support  (x)]=3m/(7n) (O(1) in our setting)  Take à s.t. Ã(x)  (x), but equal otherwise  Support à (x)=0 then x will be flipped  After flip, Support à (x) is typically large: x will not be flipped again  If Support  (x) is small, then also after flip in à – remains small  In “reality”: à is random and therefore Ã(x)  (x) for half of the x ’s x is suspicious

Analysis Sampler cont.  Step 1 sets correctly the typical variables (large support w.r.t.  )  Step 2 completes the assignment of suspicious variables  There are whp e -£(m/n) n suspicious variables  They tpyically induce a “simple” formula (efficiently searchable)  One may not expect any “sophisticated” procedure to set them SupportSAT( F ) 1.Iteratively flip variables with low support ( O ( log n ) steps) 2.Exhaustively search the subformula induced by “suspicious” variables SupportSAT( F ) 1.Iteratively flip variables with low support ( O ( log n ) steps) 2.Exhaustively search the subformula induced by “suspicious” variables

Motivation – part 2 Conjectured solution space of Random 3SAT just below the threshold: (rigorously proved for k ¸ 8, [AR06,MMZ05])  All assignments within a cluster are “close”  A linear number of variables are “frozen”  Every two clusters are “far” from each other  Exponentially many clusters

Motivation – cont. [A. Coja-Oghlan, M. Krivelevich, V. 2007] Solution space of Planted 3SAT, m/n some constant above the threshold: (and also uniformly random satisfiable 3CNF s with same ratio)  Single cluster of satisfying assignments  Size of the cluster is exponential in n  (1-e -(m/n) )n variables are frozen

Our Result – part 2  Observation: if 9 à Support à (x)=0, x can not be frozen in that cluster  Going over the proof in [CKV07]:  Combinatorial characterization of the single frozen cluster is completely based on the support  The analysis of SupportSAT reveals:  The “WalkSAT” part of SupportSAT sets the frozen variables in the cluster correctly - (1-e -(m/n) )n variables  The non-frozen variables induce a simple formula:  can be identified and searched efficiently

Further Research  Rigorous analysis of “simple” and “practical” heuristics  WalkSAT on near-threshold random 3SAT  For starters, analyze it on the planted distribution  See if the components used in SupportSAT can be useful in practice  For example, for near-threhold random 3SAT  Any other interesting phenomena can be explained by the support ?

Motivation – Part 3 (philosophical)  3CNF formulas can be seen as physical objects (spin glass system)  Every assignment corresponds to a an energy level of the system  E F (Ã)= the number of unsatisfied clauses by à (free energy)  Goal: reach 0 temperature (freeze)  Connection to support?  Flipping variable with 0 support: making a move that can only decrease energy  Flipping variable with lowest support: a move which incurs the least increment of free energy  Flipping a variable in an unsatisfied clause: if it reduces the energy of the system then it increases the support of this variable