Methods for SAT- a Survey Robert Glaubius CSCE 976 May 6, 2002.

Slides:



Advertisements
Similar presentations
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Advertisements

Proofs from SAT Solvers Yeting Ge ACSys NYU Nov
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Effective Propositional Reasoning CSE 473 – Autumn 2003.
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
1/30 SAT Solver Changki PSWLAB SAT Solver Daniel Kroening, Ofer Strichman.
IBM Labs in Haifa © 2005 IBM Corporation Adaptive Application of SAT Solving Techniques Ohad Shacham and Karen Yorav Presented by Sharon Barner.
Generating Hard Satisfiability Problems1 Bart Selman, David Mitchell, Hector J. Levesque Presented by Xiaoxin Yin.
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
© 2002 Fadi A. Aloul, University of Michigan PBS: A Pseudo-Boolean Solver and Optimizer Fadi A. Aloul, Arathi Ramani, Igor L. Markov, Karem A. Sakallah.
CP Formal Models of Heavy-Tailed Behavior in Combinatorial Search Hubie Chen, Carla P. Gomes, and Bart Selman
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
08/1 Foundations of AI 8. Satisfiability and Model Construction Davis-Putnam, Phase Transitions, GSAT Wolfram Burgard and Bernhard Nebel.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
GRASP-an efficient SAT solver Pankaj Chauhan. 6/19/ : GRASP and Chaff2 What is SAT? Given a propositional formula in CNF, find an assignment.
Methods of Proof Chapter 7, second half.
State-of-the-art in SAT solvers
AAAI00 Austin, Texas Generating Satisfiable Problem Instances Dimitris Achlioptas Microsoft Carla P. Gomes Cornell University Henry Kautz University of.
Structure and Phase Transition Phenomena in the VTC Problem C. P. Gomes, H. Kautz, B. Selman R. Bejar, and I. Vetsikas IISI Cornell University University.
Carla P. Gomes CS4700 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Instance Hardness and Phase Transitions.
CP-AI-OR-02 Gomes & Shmoys 1 The Promise of LP to Boost CSP Techniques for Combinatorial Problems Carla P. Gomes David Shmoys
1 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Satisfiability (Reading R&N: Chapter 7)
Knowledge Representation II (Inference in Propositional Logic) CSE 473.
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
1 Message Passing and Local Heuristics as Decimation Strategies for Satisfiability Lukas Kroc, Ashish Sabharwal, Bart Selman (presented by Sebastian Brand)
Logic - Part 2 CSE 573. © Daniel S. Weld 2 Reading Already assigned R&N ch 5, 7, 8, 11 thru 11.2 For next time R&N 9.1, 9.2, 11.4 [optional 11.5]
SAT-solving An old AI technique becomes very popular in modern A.I.
Structure and Phase Transition Phenomena in the VTC Problem C. P. Gomes, H. Kautz, B. Selman R. Bejar, and I. Vetsikas IISI Cornell University University.
Quasigroups Defaults Foundations of AI. Given an N X N matrix, and given N colors, color the matrix in such a way that: -all cells are colored; - each.
Boolean Satisfiability and SAT Solvers
1 Chapter 7 Propositional Satisfiability Techniques.
CHAPTERS 7, 8 Oliver Schulte Logical Inference: Through Proof to Truth.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE COS302 MICHAEL L. LITTMAN FALL 2001 Satisfiability.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 3 Logic Representations (Part 2)
1 Agenda Modeling problems in Propositional Logic SAT basics Decision heuristics Non-chronological Backtracking Learning with Conflict Clauses SAT and.
Heavy-Tailed Phenomena in Satisfiability and Constraint Satisfaction Problems by Carla P. Gomes, Bart Selman, Nuno Crato and henry Kautz Presented by Yunho.
HW #1. Due Mar 22 Midnight Verify the following program using SAT solver 1. Translate the program into a SSA form 2. Create a Boolean formula from.
Combination of Exact and Approximate Methods for SAT and MAX-SAT Problems Frédéric Lardeux, Frédéric Saubion and Jin-Kao Hao Metaheuristics and Combinatorial.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module Logic Representations.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
CSE 473 Propositional Logic SAT Algorithms Dan Weld (With some slides from Mausam, Stuart Russell, Dieter Fox, Henry Kautz, Min-Yen Kan…) Irrationally.
First-Order Logic and Inductive Logic Programming.
CS 5411 Compilation Approaches to AI Planning 1 José Luis Ambite* Some slides are taken from presentations by Kautz and Selman. Please visit their.
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
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.
Review of Propositional Logic Syntax
Finding Models for Blocked 3-SAT Problems in Linear Time by Systematical Refinement of a Sub- Model Gábor Kusper Eszterházy Károly.
Planning as Satisfiability (SAT-Plan). SAT-Plan Translate the planning problem into a satisfiability problem for length n of Plan garb 0 (proposition)present.
Balance and Filtering in Structured Satisfiability Problems Henry Kautz University of Washington joint work with Yongshao Ruan (UW), Dimitris Achlioptas.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Satisfiability and SAT Solvers CS 270 Math Foundations of CS Jeremy Johnson.
SAT Solving As implemented in - DPLL solvers: GRASP, Chaff and
Local Search Methods for SAT Geoffrey Levine March 11, 2004.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
1 Boolean Satisfiability (SAT) Class Presentation By Girish Paladugu.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
Inference in Propositional Logic (and Intro to SAT)
Planning as Search State Space Plan Space Algorihtm Progression
First-Order Logic and Inductive Logic Programming
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21
Local Search Strategies: From N-Queens to Walksat
Heuristics for Efficient SAT Solving
Planning as Satisfiability with Blackbox
Methods of Proof Chapter 7, second half.
Presentation transcript:

Methods for SAT- a Survey Robert Glaubius CSCE 976 May 6, 2002

SAT: Outline Definitions Solving SAT Testing SAT Attempted Contribution Conclusions

SAT: The Propositional Satisfiability Problem Given: , a predicate in CNF, e.g.,  = ( a 1  a 2 )  ( a 2  ¬ a 3 )  ( a 1  ¬ a 2  a 3 ) Question: does a model of  exist ?

SAT: Definitions Variable: a i Literal: = a i or ¬ a i Clause: ( i  j ...  n )  = ( a 1  a 2 )  ( a 2  ¬ a 3 )  ( a 1  ¬ a 2  a 3 )

SAT: Outline Definitions Solving SAT Testing SAT Attempted Contribution Conclusions

SAT: Solution methods Systematic search: –SATO [Zhang, 1993] –Satz [Li and Ambulagan, 1997] –Chaff [Moskewicz, et al., 2001] Stochastic search: –GSAT [Selman et al., 1992] –walkSAT[Selman et al., 1996]

SAT: Systematic Search I Davis-Putnam procedure  Satz, Sato, Chaff Splitting and unit propagation  = a i   and  = ¬ a i  

SAT: Systematic Search II Splitting and unit propagation:  = a 2  ( a 1  a 2 )  ( a 2  ¬ a 3 )  ( a 1  ¬ a 2  a 3 )  unit_propagate(  )  ( a 1  a 3 ) ( a 1  a 2 ), ( a 2  ¬ a 3 ) subsumed by a 2 ( a 1  ¬ a 2  a 3 )  ( a 1  a 3 )

SAT: Systematic Search III SATO:Splitting heuristics Heuristics and Hacks Satz:More Splitting heuristics Chaff:Squeaky clean implementation

SAT: Stochastic Search Selection Heuristics: mechanisms for variable selection Random restart: –Restart –Move –Walk

SAT: Stochastic Search - GSAT procedure GSAT begin for i = 1 to MAX-TRIES T = a randomly generated truth assignment for j = 1 to MAX-FLIPS if T satisfies  then return T p = variable s.t. flip(p) maximizes satisfied clauses T = T after flip(p) end for return “fail” end

SAT: Stochastic Search - WalkSAT procedure WalkSAT begin T = a randomly generated truth assignment for i = 1 to MAX-TRIES if T satisfies  then return T k = random unsatisfied clause p = variable in k s.t. flip(p) maximizes satisfied clauses if flip(p) does not unsatisfy any clause then T = T after flip(p) else j = a random number in [0,1] if j > 0.5 then flip(p) else T = T after flip(q), where q is a random variable in k end for end

SAT: Outline Definitions Solving SAT Testing SAT Attempted Contribution Conclusions

SAT: Algorithm Verification Benchmark problems – planning, verification –International Competition and Symposium on Satisfiability Testing –SAT2002 Competetion Random problems –naïve random generation –‘structured’ random problems, QCP [Selman and Gomes, 1997] –QWH, [Achlioptas et al., 2000]

SAT: Random Generation - Naïve Generate n clauses with 1.. l variables per clause drawn from a pool of k variables. Does not guarantee satisfiability Requires filtering of instances by slower, systematic means

Digression I: Latin Square Latin Square: a configuration of n symbols in n columns and n rows s.t. each symbol occurs exactly once in each row and each column. Rhetorical Question: “If we had a table that was only partially filled, can we make it a Latin Square?” This turns out to be an NP-complete problem

SAT: Random Generation – QCP Quasigroup completion problem –Fill some percentage of squares in an n  n matrix and try to complete the quasigroup (latin square). –Does offer a structured random problem –Doesn’t guarantee a solution

SAT: Random Generation – QWH I Quasigroup with Holes –Start with a randomly generated completed latin square, then poke random holes in it. –Does offer a structured problem –Does have at least one solution

SAT: Random Generation – QWH II Improvement: balanced QWH –Instead of random holes, specify a set number for each row and column  But how do we make a random latin square?

Digression II: Random Latin Squares Jacobsen and Matthews (1996) identify a set of moves that translate an order n Latin Square into a new Latin square, and prove that these moves connect the space of all order n Latin Squares.  Iterated random application of these moves allows us to randomly select new squares.

Digression III: Encoding the Square I Exactly one symbol per cell ( a ij  b ij ...  n ij )  ( ¬a ij  ¬b ij )  ( ¬a ij  ¬c ij ) ...  ( ¬m ij  ¬n ij ) Exactly one occurrence of s in row r ( s r1  s r2 ...  s rn )  ( ¬s r1  ¬s r2 )  ( ¬s r1  ¬s r3 ) ...  ( ¬s rn-1  ¬s rn ) Exactly one occurrence of s in column c ( s 1c  s 2c ...  s nc )  ( ¬s 1c  ¬s 2c )  ( ¬s 1c  ¬s 3c ) ...  ( ¬s n-1c  ¬s nc )

Digression III: Encoding the Square II Conjoin the appropriate positive literal for each preassigned cell How much space does this cost us? n 3 variables 1.5n n 3 + 3n 2 clauses

SAT: Outline Definitions Solving SAT Testing SAT Attempted Contribution Conclusions

SAT: Return to Stochastic Search Premise: WalkSAT uses a random start –What if we can derive us a heuristic that can give us a better start frequently? –Systematic MoM’s heuristic: Most occurrences in clauses of minimum length. –Another rhetorical question: “Can we adapt this to stochastic search?”

SAT: ANP heuristic I Given:  = ( a 1  a 2 )  ( a 2  ¬a 3 )  ( a 1  ¬a 2  a 3 ) What is the P( a i =  |  )? -The only way to evaluate this is by finding all models. -Is P( a i =  |  ) approximable?

SAT: ANP heuristic II Given k = ( a 2  ¬a 3 ), we define P( a i =  | k j ). –P( a 2 = True | k ) = 0.67, since a 2 is true in 2 models of k –P( a 2 = True | k ) = 0.33, since a 2 is true in 1 models of k Approximate P( a i =  |  )   j P( a i =  | k j ) Normalize P( a i =  |  ) + P( a i = ¬  |  ) = 1

SAT: ANP heuristic III  = ( a 1  a 2 )  ( a 2  ¬a 3 )  ( a 1  ¬a 2  a 3 ) P( a 1 = True |  )  0.73, P( a 1 = False |  )  0.27 P( a 2 = True |  )  0.75, P( a 2 = False |  )  0.25 P( a 3 = True |  )  0.40, P( a 3 = False |  )  0.60

SAT: ANP heuristic IV ANP heuristic: choose the initial assignment with maximum approximate normalized probability   a 1 = True, a 2 = True, and a 3 = False This assignment is in fact a model of 

SAT: Experiment design Four benchmark problems from the 1996 International Competition and Symposium on Satisfiability Testing - hardware verification Three order 15 balanced QWH problems –3, 4, 5 holes per row, column WalkSat solver

SAT: Results 100 trial runs per problem 3 Initial Assignment types - ANP - Random - Default (all False ) We didn’t do so well

SAT: Conclusions Based on our initial experiments, stochastic solvers are harmed by heuristics. Quasigroup-based problems are likely to be the exception; most variables are false in a model. More tests are needed; possible domain dependence

SAT: Outline Definitions Solving SAT Testing SAT Attempted Contribution Conclusions

Questions, Comments, Insults? animal_pages/duck.htm