Finding Models for Blocked 3-SAT Problems in Linear Time by Systematical Refinement of a Sub- Model Gábor Kusper Eszterházy Károly.

Slides:



Advertisements
Similar presentations
Automated Theorem Proving
Advertisements

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
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.
Data Structures for SAT Solvers The 2-Literal Representation Gábor Kusper Eszterházy Károly College Eger, Hungary.
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Multi-Domain Logic and its Applications to SAT Implementation Issues Tudor Jebelean, Johannes Kepler Unversity Linz Gábor Kusper, Eszterházy Károly College.
Proof methods Proof methods divide into (roughly) two kinds: –Application of inference rules Legitimate (sound) generation of new sentences from old Proof.
Willis Lemasters Grant Conklin. Searching a tree recursively one branch at a time, abandoning any branch which does not satisfy the search constraints.
Methods for SAT- a Survey Robert Glaubius CSCE 976 May 6, 2002.
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
Existential Graphs and Davis-Putnam April 3, 2002 Bram van Heuveln Department of Cognitive Science.
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
GRASP: A Search Algorithm for Propositional Satisfiability EE878C Homework #2 2002/11/1 KAIST, EECS ICS Lab Lee, Dongsoo.
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 Solver Math Foundations of Computer Science. 2 Boolean Expressions  A Boolean expression is a Boolean function  Any Boolean function can be written.
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.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
Logics for Data and Knowledge Representation Propositional Logic: Reasoning Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Boolean Satisfiability and SAT Solvers
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
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)
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
S P Vimal, Department of CSIS, BITS, Pilani
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
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.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
On the Relation between SAT and BDDs for Equivalence Checking Sherief Reda Rolf Drechsler Alex Orailoglu Computer Science & Engineering Dept. University.
Boolean Satisfiability Present and Future
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
SAT 2009 Ashish Sabharwal Backdoors in the Context of Learning (short paper) Bistra Dilkina, Carla P. Gomes, Ashish Sabharwal Cornell University SAT-09.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Planning as Satisfiability (SAT-Plan). SAT-Plan Translate the planning problem into a satisfiability problem for length n of Plan garb 0 (proposition)present.
1 CSE 326: Data Structures: Graphs Lecture 24: Friday, March 7 th, 2003.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Solving the Logic Satisfiability problem Solving the Logic Satisfiability problem Jesus De Loera.
Satisfiability and SAT Solvers CS 270 Math Foundations of CS Jeremy Johnson.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
SAT Solving As implemented in - DPLL solvers: GRASP, Chaff and
Inference in Propositional Logic (and Intro to SAT) CSE 473.
1 Boolean Satisfiability (SAT) Class Presentation By Girish Paladugu.
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
CSCI 2670 Introduction to Theory of Computing December 7, 2005.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Sudoku Solutions Using Logic Equations Christian Posthoff The University of The West Indies, Trinidad & Tobago Bernd Steinbach Freiberg University of Mining.
Inference in Propositional Logic (and Intro to SAT)
Inference and search for the propositional satisfiability problem
Gábor Kusper University of Linz RISC Austria
EA C461 – Artificial Intelligence Logical Agent
Computability and Complexity
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
Recovering and Exploiting Structural Knowledge from CNF Formulas
Logical Inference: Through Proof to Truth
NP-Completeness Yin Tat Lee
Complexity 6-1 The Class P Complexity Andrei Bulatov.
ECE 667 Synthesis and Verification of Digital Circuits
Logics for Data and Knowledge Representation
DLL Algorithm.
Artificial Intelligence: Agents and Propositional Logic.
NP-Completeness Yin Tat Lee
Gábor Kusper  Research Institute for Symbolic Computation (RISC-Linz)
Methods of Proof Chapter 7, second half.
Presentation transcript:

Finding Models for Blocked 3-SAT Problems in Linear Time by Systematical Refinement of a Sub- Model Gábor Kusper Eszterházy Károly College Hungary, Eger

2 Outline Motivation Introduction Connection to other Research My Contribution Conclusion

3 Motivation Member of the Theorema Research Group. Theorema ( is a mathematical assistant (including theorem proving), which is developed under the direction of Prof. Bruno Buchberger at Johannes Kepler University Linz. SAT is propositional proving by refutation: Given a set of known sentences K (Knowledge base), then a sentence G (Goal) can be proven if and only if K  {  G} is unsatisfiable.

4 Introduction The Propositional Satisfiability problem is the problem of determining, for a formula of the propositional calculus, if there is an assignment of truth values to its variables for which that formula evaluates to True. SAT is the problem of propositional satisfiability for formulae in conjunctive normal form (CNF).

5 Conjunctive Normal Form (CNF) ( a  c )  ( b  c )  (¬a  ¬b  ¬c ) { { a,  c }, { b,  c }, {¬a  ¬b, ¬c } } + x + x

6 SAT is NP-complete [Cook 1971] thus, there is no known polynomial time algorithm for solving it. Because of the importance of SAT in logic, artificial intelligence, and operational research, considerable effort has been spent to determine how to cope with this problem. Two approaches are: –develop SAT solver algorithms which usually present a result in polynomial time; –identify special classes of SAT that can be solved or simplified in polynomial time. My talk is concerned with the second approach.

7 Connection to other Research blocked clause [Kullmann 1999a, 1999b] Loveland's Davis and Putnam Procedure (DPLL) [Davis, Logemann, Loveland 1962]

8 The Notion of Blocked Clause A clause of the form (c  C’) is blocked in a formula iff: for any other clause in the formula of the form (  c  B’), the resolvent (C’  B’) is a tautology. A blocked clause can be added or deleted from a clause set without changing its satisfiability. Example: + + x x x x x + + Literal c is blocked in clause C and clause set S: Blck(c,C,S)

9 My Contribution Notion of Sub-Model Notion of Blocked SAT Problem Blocked SAT Solver algorithm Number of Literal Combinations (NLC) data structure

10 Sub-Model resolution-mate: rm(C, c) := C \ { c }  {  c }. sub-model: sm(C, c) :=  rm(C, c). sub-model: “negate all but the generator literal”. A sub-model is a partial assignment. A sub-model is a candidate to be a part of a model x x + + x x x C sm(C,c) rm(C,c) c resolvent

11 The Blocked SAT Problem A clause set is blocked iff each of its clauses are blocked. Blck(S) :    Blck(c,C,S). C  Sc  C - + x x x + + x x - - x x x xx x x + x x x - + The Problem: A blocked clause set does not remain necessarily blocked after sub-model propagation. Solution: Systematic refinement of an increasing sub-model.

12 Examples - + x x x + + x x - - x x x x x x x

13 Significance of Blocked SAT An input clause set is very-very rarely blocked. But during the work of a general SAT solver algorithm we may encounter a blocked clause set. Any general SAT solver uses some simplification steps: –resolution, unit-propagation, removing subsumed clauses, etc. The fewer clauses are in a clause set the more likely that it is blocked.

14 Significance of Blocked SAT SATLIB – Benchmark Problems darmstadt.de/SATLIB/benchm.html All instances provided here are cnf formulae encoded in DIMACS cnf format. Test result on uf20-91 (all satisfiable, 20 variables, 91 clauses instances) using DPLL and Moms heuristics: In average after the 90% of the unit-propagations we have a blocked clause set.

15 The Blocked SAT Solver Algorithm If the literal c is blocked in C, S then the sub-model sm(C, c) satisfies each clause from S which contains either c or  c. No-occurrence clauses are those not satisfied by sm(C, c). Systematic refinement of an increasing sub-model: - + x x x + + x x - - x x x x x no-occurrence clause x increasing sub-model: a blocked clause set: generator clause: - + x x x C1C1 C2C2

16 BlockedSATSolver(S, Z) input: clause set S that is non-empty and blocked output: assignment Z, a model for S. A := { }; B := { }; // A: gen. clause, B: gen. literals for each clause C in S do if (A   C = { }) then // C is a no-occurrence clause A:=A  C; // we refine A if (B  C = { }) then Let c in C be a blocked literal in C, S; B := B  { c }; // we refine B fi od Z := sm(A, B);

17 NLC data structure The Number of Literal Combinations (NLC) data structure is needed to speed up the search for blocked literals. We create NLC by reading each clause only once. For every subset of every clause we increase the corresponding counter in NLC by one. For example in case of {a, b, c} we increase: NLC[a], NLC[b], NLC[c], NLC[a, b], NLC[a, c], NLC[b, c], NLC[a, b, c].

18 NLC data structure Afterwards we read again the clause set and for every literal in every clause we calculate the number of possible resolution partners minus the number of blocking clauses. In case of literal a in clause {a, b, c} this number is: NLC[  a] – NLC[  a,  b] – NLC[  a,  c] + NLC[  a,  b,  c] If this number is zero then this literal is blocked. NLC[  a] is the number of possible resolution partners. NLC[  a,  b] + NLC[  a,  c] is the number of blocking clauses, but in this case we count two times clauses which contain {  a,  b,  c} as subset, therefore, we subtract NLC[  a,  b,  c].

19 Examples a b c a  a b  b c  c a  a b  b c  c a  a b  b c  c NLC 1D: 2D: 3D: a … … … …  a … … … … bcbc

20 NLC data structure In case of 3-SAT (the SAT instance where each clause has 3 literal at most) we need O(7m) time to create, and O(4nm) time in the worst case to check whether the clause set is blocked is blocked. But we need O(8n 3 ) memory space to store NLC. Fortunately it contains lots of zeros, therefore, using a suitable hash O(4nm) memory space is enough to store NLC.

21 Conclusion Blocked SAT Solver is linear if we have blocked literal information. Polynomial time is needed to collect that information. In case of 3-SAT we can collect that information in linear time by using the NLC data structure. Hence, the Blocked 3-SAT Problem is linear!

22 Future Work Blocked SAT Solver can solve not only blocked clause set, but also those where at least one clause is blocked from the no-occurrence clauses. How could we check this property fast? NLC can support other techniques? How to combine NLC by lazy unit propagation?

Thank you for your attention! Download: