of m clauses, each containing the disjunction of boolean variables from a nite set V = fv 1 ; : : : ; vng of size n [8]. Each variable occurrence with

Size: px
Start display at page:

Download "of m clauses, each containing the disjunction of boolean variables from a nite set V = fv 1 ; : : : ; vng of size n [8]. Each variable occurrence with"

Transcription

1 A Hybridised 3-SAT Algorithm Andrew Slater Automated Reasoning Project, Computer Sciences Laboratory, RSISE, Australian National University, 0200, Canberra April 9, Introduction In recent years much research has been done on the propositional satisability problem. Although great success has been found by using incomplete methods there are still classes of problems that remain resilient to such approaches. At the same time many algorithms and heuristics that retain completeness have been proposed and implemented. The success of these faster algorithms accompanied with better heuristics has allowed some of the more elusive problem classes to be exposed, and in general the size of the satisability problems that can be solved has grown. In addition these more advanced systems have allowed a wider empirical study of the nature of satisability problems. Much of the empirical AI that has been done has focused on the special case where each clause in the formula contains three variables, known as 3-SAT. In this report we discuss some of the development and design of software to experiment with hybridised 3-SAT algorithms. The aim of this project is to provide a simple system where dierent techniques can be isolated and combined to determine the most suitable algorithms for both particular classes of instances of the satisability problem and the general case. In particular we are interested in determining whether combining known linear time algorithms for special instances of the satisability problem with the traditional Davis Putnam style approaches which are designed for the general case will be successful in general or constrained scenarios. We present a possible approach that combines the linear time 2-SAT algorithm with a Davis-Putnam style algorithm aided by common heuristics. 2 Preliminaries The propositional satisability problem, SAT, is dened as the decision problem of determining whether a given formula in conjunctive normal form (CNF) is satisable. Formally we dene the `instance' of the problem as a conjunction 1

2 of m clauses, each containing the disjunction of boolean variables from a nite set V = fv 1 ; : : : ; vng of size n [8]. Each variable occurrence within a clause can appear positively or negatively (the negation) and these occurrences are called literals. Thus if v is a variable then v and v are literals over V. An instance of the satisability problem can now be dened as the formula F = C 1 ^ C 2 ^ : : : ^ Cn where each Ci is a disjunction of literals Ci = l 1 _ l 2 _ : : : _ lk. The problem is a prototypical NP-Complete problem. The 3-SAT problem restricts the number of literals in each clause to three. Note that an instance of the 3-SAT problem is an instance of SAT, and there exists a polynomial time transformation from any instance of SAT to 3-SAT. The 2-SAT problem restricts the number of literals in each clause to two, and was shown to be solvable in linear time by Aspvall, Plass and Tarjan [3] using a directed graph representation of the formula. The simplest, and most successful, algorithm for determining general satis- ability is the Davis Putnam Logemann Loveland algorithm [6, 5]. Essentially it chooses a literal from some clause and assigns its value to be true, then propagates this assumption through the remaining formula. Either it will terminate by nding an assignment to the variables which satises all clauses, or it will exhaust all possible decisions for that formula and nd it unsatisable. Although this is a simplied interpretation of its behaviour, the description captures the method of `proof' that it implements. More recently several modications have been suggested and implemented to improve the algorithms performance. These include heuristically driven programs from which empirical analysis has shown greater eciency, and more formal case-based algorithm's designed to show worst case upper bound complexities. For more detailed information the reader is directed to recent survey articles concerned with satisability [2, 1, 9]. 3 A Brief Overview of Previous Related Work There has been much research into SAT algorithms within the last decade. We focus here on those heuristics and algorithms that are directly related to the proposed hybrid. Ecient implementations of the Davis Putnam algorithm will use heuristics to guide or order the search. Occurrence weighting and similar statistical methods are common successful guiding techniques. One of the simplest and most eective is the MoMS heuristic [7]. This prefers the choice of assigning a propositional variable having Maximum Occurrences in clauses of Minimum Size. Several other techniques to `prune' the search space and identify redundancy have been successfully implemented, and although they are competitive, they can require a signicant overhead. Hybridisation of general satisability algorithms with linear time algorithms has been performed in the past. It is reported that some algorithms have used the linear time 2-SAT algorithm to generate an assignment that satises the existing clauses of size two, and that these algorithms slightly under perform some of the more advanced search methods [1]. Larrabee's algorithm was suc- 2

3 cessfully used to solve instances with a large initial number of binary clauses by cycling through the possible assignments for the 2-SAT component of the problem, propagating each assignment through the remaining formula [10, 11]. The algorithm was shown to remain competitive when given instances of 3-SAT. 4 A Proposed Hybrid 3-SAT Algorithm The proposed algorithm is based on the 2-SAT approach. Each binary clause represents two edges in a directed graph with vertices for each literal. For a binary clause (a _ b) we generate edges a! b and b! a. We say a reaches b if there is a directed path from a to b. Hence for two edges a! b and b! c we say a reaches c and this implicitly captures an `inference' of the binary clause a _ c this knowledge can possibly subsume a ternary clause. With a depth rst traversal of the graph we can determine the strongly connected components subgraphs where each vertex can reach every other vertex in that subgraph. If a strongly connected component contains a literal l and the negation l then the system cannot be satised. If l reaches l and l does not reach l, then l must have the truth value true is `inferred'. Additionally, the set of literals in any non-contradictory strongly connected component have equivalent truth values is also an `inference'. We use the 2-SAT method and representation as a basis for a linear time binary clause reasoning system. The controlling algorithm is a backtracking Davis Putnam style process. The central dierence is that it collects binary clauses, reasons with them, and propagates the `inferences' as well as propagating the `inferences' of unit clauses. The Davis Putnam step chooses a literal. This generates some binary clauses and eliminates some ternary clauses. The propagation step reduces the remaining 3- SAT clauses using the binary clause inferences. The propagation may subsume clauses completely, or generate more binary clauses by a partial subsumption. For example when a reaches b then the clause (a _ b _ x) is eliminated and the clause (a _ b _ x) is reduced to (b _ x). The propagation of the inferences from the basic 2-SAT algorithm rule are fairly obvious. Generating a solution for a non-contradictory 2-SAT graph is fairly straightforward. Our algorithm does not generate an intermediate solution, it only uses the rules above (and others) to generate inferences and propagate them through the rest of the ternary clauses. Propagation is continued from the binary system to the ternary system and back again until no more inferences can be made. Obviously it is more likely that an initially larger 2-SAT system will infer more information about the system as a whole. Since we begin with a 3-SAT instance which we attack with a Davis Putnam style procedure, we prefer to choose literals that will result in the most binary clauses being generated. This is similar to the MoMS approach mentioned above, but we only evaluate the number of occurrences of a literal in ternary clauses. By doing this we rapidly attain large 2-SAT systems. The backtracking component of the Davis Putnam algorithm is performed when a contradiction is identied during propagation. A formula is found satisable when no more literals can be chosen (since the 2-SAT system 3

4 remains satisable from the propagation phase). The overhead of propagation processing can be signicantly reduced by using an adjacency matrix to represent the graph. Lookup tables and statistics for variable occurrences can also be kept. Additionally we have designed a fast `clean up' system to `undo' assumptions that lead to contradictions eciently. By linking changes made to a particular depth or level in the search we can backtrack to a previous state by following a stack based list of undo operations, typically pointer swaps. 5 Discussion and Further Work We have discussed a Davis Putnam variant that reasons with and propagates unit and binary clauses as opposed to the standard process of propagating unit clauses only. The automated reasoning process for binary clauses is bases upon the fundamentals of the linear time 2-SAT algorithm. We intend to construct a full system for experimentation. It is expected that the algorithm will perform competitively with other methods but will not outperform them in general, however we hypothesise that it will perform better on problems that are unsatisable. It is likely that the algorithm is better at identifying a refutation more eciently than algorithms designed to nd a satisfying assignment. Indeed Larrabee notes that while the hard problem distribution phase transition value agrees with previous experiments, their algorithm performed better on the right hand side of the phase transition where problems are more likely to be unsatisable. We believe this is the case for some 2-SAT algorithms since they are more ecient at encapsulating contradiction in the search tree. We conjecture that our approach will not suer as badly from the nature of the heavy tailed distribution of SAT and related backtracking search methods. We intend to further investigate hybrid algorithm performance, phase transition phenomena, and proof methods for propositional and modal logics via polynomial translations of given formula to CNF. We are also interested in investigating proof search algorithm behaviour for classes of generated theorems parameterised by length and syntactic complexity. References [1] American Mathematical Society. Algorithms for the Satisability (SAT) Problem: A Survey, volume 35 of Satisability Problem: Theory and Applications, DIMACS Series in Discrete Mathematics and Theoretical Computer Science, [2] American Mathematical Society. Finding Hard Instances of the Satisability Problem: A Survey, volume 35 of Satisability Problem: Theory and Applications, DIMACS Series in Discrete Mathematics and Theoretical Computer Science,

5 [3] Bengt Aspvall, Michael F. Plass, and Robert Endre Tarjan. A linear-time algorithm for testing the truth of certain quantied Boolean formulas. Information Processing Letters, 8(3):121{123, March See also erratum [4]. [4] Bengt Aspvall, Michael F. Plass, and Robert Endre Tarjan. Erratum: \A linear-time algorithm for testing the truth of certain quantied Boolean formulas" [Inform. Process. Lett. 8 (1979), no. 3, 121{123; MR 80b:68050]. Information Processing Letters, 14(4):195{195, June See [3]. [5] Martin Davis, George Logemann, and Donald Loveland. A machine program for theorem-proving. Communications of the ACM, 5(7):394{397, July [6] Martin Davis and Hilary Putnam. A computing procedure for quantication theory. Journal of the ACM, 7(3):201{215, July [7] J.W. Freeman. Improvements to Propositional Satisability Search Algorithms. PhD thesis, University of Pennsylvania, [8] Michael R. Garey and David S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, New York, [9] Ian P. Gent and Toby Walsh. The search for satisfaction. URL [10] Tracy Larrabee. Test pattern generation using boolean satisability. IEEE Transactions on Computer-Aided Design, pages 4{15, January [11] Tracy Larrabee and Yumi Tsuji. Evidence for a satisability threshold for random 3CNF formulas. Technical Report UCSC-CRL-92-42, University of California, Santa Cruz, Jack Baskin School of Engineering, November

Boolean Functions (Formulas) and Propositional Logic

Boolean Functions (Formulas) and Propositional Logic EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving Part I: Basics Sanjit A. Seshia EECS, UC Berkeley Boolean Functions (Formulas) and Propositional Logic Variables: x 1, x 2, x 3,, x

More information

EECS 219C: Formal Methods Boolean Satisfiability Solving. Sanjit A. Seshia EECS, UC Berkeley

EECS 219C: Formal Methods Boolean Satisfiability Solving. Sanjit A. Seshia EECS, UC Berkeley EECS 219C: Formal Methods Boolean Satisfiability Solving Sanjit A. Seshia EECS, UC Berkeley The Boolean Satisfiability Problem (SAT) Given: A Boolean formula F(x 1, x 2, x 3,, x n ) Can F evaluate to 1

More information

EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving. Sanjit A. Seshia EECS, UC Berkeley

EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving. Sanjit A. Seshia EECS, UC Berkeley EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving Sanjit A. Seshia EECS, UC Berkeley Project Proposals Due Friday, February 13 on bcourses Will discuss project topics on Monday Instructions

More information

Kalev Kask and Rina Dechter. Department of Information and Computer Science. University of California, Irvine, CA

Kalev Kask and Rina Dechter. Department of Information and Computer Science. University of California, Irvine, CA GSAT and Local Consistency 3 Kalev Kask and Rina Dechter Department of Information and Computer Science University of California, Irvine, CA 92717-3425 fkkask,dechterg@ics.uci.edu Abstract It has been

More information

Better test results for the graph coloring and the Pigeonhole Problems using DPLL with k-literal representation

Better test results for the graph coloring and the Pigeonhole Problems using DPLL with k-literal representation Proceedings of the 7 th International Conference on Applied Informatics Eger, Hungary, January 28 31, 2007. Vol. 2. pp. 127 135. Better test results for the graph coloring and the Pigeonhole Problems using

More information

Localization in Graphs. Richardson, TX Azriel Rosenfeld. Center for Automation Research. College Park, MD

Localization in Graphs. Richardson, TX Azriel Rosenfeld. Center for Automation Research. College Park, MD CAR-TR-728 CS-TR-3326 UMIACS-TR-94-92 Samir Khuller Department of Computer Science Institute for Advanced Computer Studies University of Maryland College Park, MD 20742-3255 Localization in Graphs Azriel

More information

A Simplied NP-complete MAXSAT Problem. Abstract. It is shown that the MAX2SAT problem is NP-complete even if every variable

A Simplied NP-complete MAXSAT Problem. Abstract. It is shown that the MAX2SAT problem is NP-complete even if every variable A Simplied NP-complete MAXSAT Problem Venkatesh Raman 1, B. Ravikumar 2 and S. Srinivasa Rao 1 1 The Institute of Mathematical Sciences, C. I. T. Campus, Chennai 600 113. India 2 Department of Computer

More information

Reductions and Satisfiability

Reductions and Satisfiability Reductions and Satisfiability 1 Polynomial-Time Reductions reformulating problems reformulating a problem in polynomial time independent set and vertex cover reducing vertex cover to set cover 2 The Satisfiability

More information

Hybrid Algorithms for SAT. Irina Rish and Rina Dechter.

Hybrid Algorithms for SAT. Irina Rish and Rina Dechter. To Guess or to Think? Hybrid Algorithms for SAT Irina Rish and Rina Dechter Information and Computer Science University of California, Irvine fdechter,irinarg@ics.uci.edu http://www.ics.uci.edu/f~irinar,~dechterg

More information

Multi Domain Logic and its Applications to SAT

Multi Domain Logic and its Applications to SAT Multi Domain Logic and its Applications to SAT Tudor Jebelean RISC Linz, Austria Tudor.Jebelean@risc.uni-linz.ac.at Gábor Kusper Eszterházy Károly College gkusper@aries.ektf.hu Abstract We describe a new

More information

A New Reduction from 3-SAT to Graph K- Colorability for Frequency Assignment Problem

A New Reduction from 3-SAT to Graph K- Colorability for Frequency Assignment Problem A New Reduction from 3-SAT to Graph K- Colorability for Frequency Assignment Problem Prakash C. Sharma Indian Institute of Technology Survey No. 113/2-B, Opposite to Veterinary College, A.B.Road, Village

More information

GSAT and Local Consistency

GSAT and Local Consistency GSAT and Local Consistency Kalev Kask Computer Science Department University of California at Irvine Irvine, CA 92717 USA Rina Dechter Computer Science Department University of California at Irvine Irvine,

More information

Some Applications of Graph Bandwidth to Constraint Satisfaction Problems

Some Applications of Graph Bandwidth to Constraint Satisfaction Problems Some Applications of Graph Bandwidth to Constraint Satisfaction Problems Ramin Zabih Computer Science Department Stanford University Stanford, California 94305 Abstract Bandwidth is a fundamental concept

More information

Implication Circuit Gclear FD LContra FD LChange x state x state GChange GContra E il E ol FSM E or E ir Figure 1: Zhong's Search Block for variable x

Implication Circuit Gclear FD LContra FD LChange x state x state GChange GContra E il E ol FSM E or E ir Figure 1: Zhong's Search Block for variable x Reducing Compilation Time of Zhong's FPGA-based SAT solver Pak K. Chan, M.J. Boyd, S. Goren, K. Klenk, V. Kodavati, R. Kundu, M. Margolese, J. Sun, K. Suzuki, E. Thorne, X. Wang, J. Xu, M. Zhu Department

More information

1 Introduction. 1. Prove the problem lies in the class NP. 2. Find an NP-complete problem that reduces to it.

1 Introduction. 1. Prove the problem lies in the class NP. 2. Find an NP-complete problem that reduces to it. 1 Introduction There are hundreds of NP-complete problems. For a recent selection see http://www. csc.liv.ac.uk/ ped/teachadmin/comp202/annotated_np.html Also, see the book M. R. Garey and D. S. Johnson.

More information

v b) Λ (a v b) Λ (a v b) AND a v b a _ v b v b

v b) Λ (a v b) Λ (a v b) AND a v b a _ v b v b A NN Algorithm for Boolean Satisability Problems William M. Spears AI Center - Code 5514 Naval Research Laboratory Washington, D.C. 20375-5320 202-767-9006 (W) 202-767-3172 (Fax) spears@aic.nrl.navy.mil

More information

The Scaling of Search Cost. Ian P. Gent and Ewan MacIntyre and Patrick Prosser and Toby Walsh.

The Scaling of Search Cost. Ian P. Gent and Ewan MacIntyre and Patrick Prosser and Toby Walsh. The Scaling of Search Cost Ian P. Gent and Ewan MacIntyre and Patrick Prosser and Toby Walsh Apes Research Group, Department of Computer Science, University of Strathclyde, Glasgow G XH, Scotland Email:

More information

P -vs- NP. NP Problems. P = polynomial time. NP = non-deterministic polynomial time

P -vs- NP. NP Problems. P = polynomial time. NP = non-deterministic polynomial time P -vs- NP NP Problems P = polynomial time There are many problems that can be solved correctly using algorithms that run in O(n c ) time for some constant c. NOTE: We can say that an nlogn algorithm is

More information

Heuristic Backtracking Algorithms for SAT

Heuristic Backtracking Algorithms for SAT Heuristic Backtracking Algorithms for SAT A. Bhalla, I. Lynce, J.T. de Sousa and J. Marques-Silva IST/INESC-ID, Technical University of Lisbon, Portugal fateet,ines,jts,jpmsg@sat.inesc.pt Abstract In recent

More information

Heuristics Based on Unit Propagation for Satisability Problems. Chu Min Li & Anbulagan

Heuristics Based on Unit Propagation for Satisability Problems. Chu Min Li & Anbulagan Heuristics Based on Unit Propagation for Satisability Problems Chu Min Li & Anbulagan LaRIA, Univ. de Picardie Jules Verne, 33, Rue St. Leu, 80039 Amiens Cedex, France fax: (33) 3 22 82 75 02, e-mail:

More information

NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT

NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT 3SAT The 3SAT problem is the following. INSTANCE : Given a boolean expression E in conjunctive normal form (CNF) that is the conjunction of clauses, each

More information

Massively Parallel Seesaw Search for MAX-SAT

Massively Parallel Seesaw Search for MAX-SAT Massively Parallel Seesaw Search for MAX-SAT Harshad Paradkar Rochester Institute of Technology hp7212@rit.edu Prof. Alan Kaminsky (Advisor) Rochester Institute of Technology ark@cs.rit.edu Abstract The

More information

Eulerian disjoint paths problem in grid graphs is NP-complete

Eulerian disjoint paths problem in grid graphs is NP-complete Discrete Applied Mathematics 143 (2004) 336 341 Notes Eulerian disjoint paths problem in grid graphs is NP-complete Daniel Marx www.elsevier.com/locate/dam Department of Computer Science and Information

More information

SAT Solvers. Ranjit Jhala, UC San Diego. April 9, 2013

SAT Solvers. Ranjit Jhala, UC San Diego. April 9, 2013 SAT Solvers Ranjit Jhala, UC San Diego April 9, 2013 Decision Procedures We will look very closely at the following 1. Propositional Logic 2. Theory of Equality 3. Theory of Uninterpreted Functions 4.

More information

The NP-Completeness of Some Edge-Partition Problems

The NP-Completeness of Some Edge-Partition Problems The NP-Completeness of Some Edge-Partition Problems Ian Holyer y SIAM J. COMPUT, Vol. 10, No. 4, November 1981 (pp. 713-717) c1981 Society for Industrial and Applied Mathematics 0097-5397/81/1004-0006

More information

The Resolution Algorithm

The Resolution Algorithm The Resolution Algorithm Introduction In this lecture we introduce the Resolution algorithm for solving instances of the NP-complete CNF- SAT decision problem. Although the algorithm does not run in polynomial

More information

Finite Model Generation for Isabelle/HOL Using a SAT Solver

Finite Model Generation for Isabelle/HOL Using a SAT Solver Finite Model Generation for / Using a SAT Solver Tjark Weber webertj@in.tum.de Technische Universität München Winterhütte, März 2004 Finite Model Generation for / p.1/21 is a generic proof assistant: Highly

More information

4.1 Review - the DPLL procedure

4.1 Review - the DPLL procedure Applied Logic Lecture 4: Efficient SAT solving CS 4860 Spring 2009 Thursday, January 29, 2009 The main purpose of these notes is to help me organize the material that I used to teach today s lecture. They

More information

New Worst-Case Upper Bound for #2-SAT and #3-SAT with the Number of Clauses as the Parameter

New Worst-Case Upper Bound for #2-SAT and #3-SAT with the Number of Clauses as the Parameter Proceedings of the Twenty-Fourth AAAI Conference on Artificial Intelligence (AAAI-10) New Worst-Case Upper Bound for #2-SAT and #3-SAT with the Number of Clauses as the Parameter Junping Zhou 1,2, Minghao

More information

SAT-CNF Is N P-complete

SAT-CNF Is N P-complete SAT-CNF Is N P-complete Rod Howell Kansas State University November 9, 2000 The purpose of this paper is to give a detailed presentation of an N P- completeness proof using the definition of N P given

More information

SAT/SMT Solvers and Applications

SAT/SMT Solvers and Applications SAT/SMT Solvers and Applications University of Waterloo Winter 2013 Today s Lecture Lessons learnt so far Implementation-related attacks (control-hazard, malware,...) Program analysis techniques can detect

More information

Satisfiability. Michail G. Lagoudakis. Department of Computer Science Duke University Durham, NC SATISFIABILITY

Satisfiability. Michail G. Lagoudakis. Department of Computer Science Duke University Durham, NC SATISFIABILITY Satisfiability Michail G. Lagoudakis Department of Computer Science Duke University Durham, NC 27708 COMPSCI 271 - Spring 2001 DUKE UNIVERSITY Page 1 Why SAT? Historical Reasons The first NP-COMPLETE problem

More information

Towards an Understanding of Hill-climbing. Procedures for SAT. Ian P. Gent. Abstract

Towards an Understanding of Hill-climbing. Procedures for SAT. Ian P. Gent. Abstract Towards an Understanding of Hill-climbing Procedures for SAT Ian P. Gent Toby Walsh y Draft of January 12, 1993 Abstract Recently several local hill-climbing procedures for propositional satis- ability

More information

arxiv: v2 [cs.cc] 29 Mar 2010

arxiv: v2 [cs.cc] 29 Mar 2010 On a variant of Monotone NAE-3SAT and the Triangle-Free Cut problem. arxiv:1003.3704v2 [cs.cc] 29 Mar 2010 Peiyush Jain, Microsoft Corporation. June 28, 2018 Abstract In this paper we define a restricted

More information

Deductive Methods, Bounded Model Checking

Deductive Methods, Bounded Model Checking Deductive Methods, Bounded Model Checking http://d3s.mff.cuni.cz Pavel Parízek CHARLES UNIVERSITY IN PRAGUE faculty of mathematics and physics Deductive methods Pavel Parízek Deductive Methods, Bounded

More information

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch] NP Completeness Andreas Klappenecker [partially based on slides by Jennifer Welch] Overview We already know the following examples of NPC problems: SAT 3SAT We are going to show that the following are

More information

ABSTRACT Finding a cut or nding a matching in a graph are so simple problems that hardly are considered problems at all. Finding a cut whose split edg

ABSTRACT Finding a cut or nding a matching in a graph are so simple problems that hardly are considered problems at all. Finding a cut whose split edg R O M A TRE DIA Universita degli Studi di Roma Tre Dipartimento di Informatica e Automazione Via della Vasca Navale, 79 { 00146 Roma, Italy The Complexity of the Matching-Cut Problem Maurizio Patrignani

More information

Learning Techniques for Pseudo-Boolean Solving and Optimization

Learning Techniques for Pseudo-Boolean Solving and Optimization Learning Techniques for Pseudo-Boolean Solving and Optimization José Faustino Fragoso Fremenin dos Santos September 29, 2008 Abstract The extension of conflict-based learning from Propositional Satisfiability

More information

On the Relation between SAT and BDDs for Equivalence Checking

On the Relation between SAT and BDDs for Equivalence Checking On the Relation between SAT and BDDs for Equivalence Checking Sherief Reda 1 Rolf Drechsler 2 Alex Orailoglu 1 1 Computer Science & Engineering Department University of California, San Diego La Jolla,

More information

Example of a Demonstration that a Problem is NP-Complete by reduction from CNF-SAT

Example of a Demonstration that a Problem is NP-Complete by reduction from CNF-SAT 20170926 CNF-SAT: CNF-SAT is a problem in NP, defined as follows: Let E be a Boolean expression with m clauses and n literals (literals = variables, possibly negated), in which - each clause contains only

More information

NP-Completeness. Algorithms

NP-Completeness. Algorithms NP-Completeness Algorithms The NP-Completeness Theory Objective: Identify a class of problems that are hard to solve. Exponential time is hard. Polynomial time is easy. Why: Do not try to find efficient

More information

Andrew Davenport and Edward Tsang. fdaveat,edwardgessex.ac.uk. mostly soluble problems and regions of overconstrained, mostly insoluble problems as

Andrew Davenport and Edward Tsang. fdaveat,edwardgessex.ac.uk. mostly soluble problems and regions of overconstrained, mostly insoluble problems as An empirical investigation into the exceptionally hard problems Andrew Davenport and Edward Tsang Department of Computer Science, University of Essex, Colchester, Essex CO SQ, United Kingdom. fdaveat,edwardgessex.ac.uk

More information

Finding a winning strategy in variations of Kayles

Finding a winning strategy in variations of Kayles Finding a winning strategy in variations of Kayles Simon Prins ICA-3582809 Utrecht University, The Netherlands July 15, 2015 Abstract Kayles is a two player game played on a graph. The game can be dened

More information

P Is Not Equal to NP. ScholarlyCommons. University of Pennsylvania. Jon Freeman University of Pennsylvania. October 1989

P Is Not Equal to NP. ScholarlyCommons. University of Pennsylvania. Jon Freeman University of Pennsylvania. October 1989 University of Pennsylvania ScholarlyCommons Technical Reports (CIS) Department of Computer & Information Science October 1989 P Is Not Equal to NP Jon Freeman University of Pennsylvania Follow this and

More information

The Impact of Branching Heuristics in Propositional Satisfiability Algorithms

The Impact of Branching Heuristics in Propositional Satisfiability Algorithms The Impact of Branching Heuristics in Propositional Satisfiability Algorithms João Marques-Silva Technical University of Lisbon, IST/INESC, Lisbon, Portugal jpms@inesc.pt URL: http://algos.inesc.pt/~jpms

More information

Some Hardness Proofs

Some Hardness Proofs Some Hardness Proofs Magnus Lie Hetland January 2011 This is a very brief overview of some well-known hard (NP Hard and NP complete) problems, and the main ideas behind their hardness proofs. The document

More information

CS-E3200 Discrete Models and Search

CS-E3200 Discrete Models and Search Shahab Tasharrofi Department of Information and Computer Science, Aalto University Lecture 7: Complete and local search methods for SAT Outline Algorithms for solving Boolean satisfiability problems Complete

More information

quasigroup problems has been demonstrated in [16, 7, 14]. We think these quasigroup problems are much better benchmarks than randomly generated SAT pr

quasigroup problems has been demonstrated in [16, 7, 14]. We think these quasigroup problems are much better benchmarks than randomly generated SAT pr Implementing the Davis-Putnam Algorithm by Tries Hantao Zhang Computer Science Department The University of Iowa Iowa City, IA 52242 hzhang@cs.uiowa.edu Mark E. Stickel y Articial Intelligence Center SRI

More information

An Overview of Backtrack Search Satisfiability Algorithms

An Overview of Backtrack Search Satisfiability Algorithms An Overview of Backtrack Search Satisfiability Algorithms João P. Marques Silva Cadence European Laboratories IST/INESC 1000 Lisboa, Portugal Tel: 351-1-3100387 e-mail: jpms@inesc.pt Abstract Propositional

More information

Symbolic Methods. The finite-state case. Martin Fränzle. Carl von Ossietzky Universität FK II, Dpt. Informatik Abt.

Symbolic Methods. The finite-state case. Martin Fränzle. Carl von Ossietzky Universität FK II, Dpt. Informatik Abt. Symbolic Methods The finite-state case Part I Martin Fränzle Carl von Ossietzky Universität FK II, Dpt. Informatik Abt. Hybride Systeme 02917: Symbolic Methods p.1/34 What you ll learn How to use and manipulate

More information

EXTENDING SAT SOLVER WITH PARITY CONSTRAINTS

EXTENDING SAT SOLVER WITH PARITY CONSTRAINTS TKK Reports in Information and Computer Science Espoo 2010 TKK-ICS-R32 EXTENDING SAT SOLVER WITH PARITY CONSTRAINTS Tero Laitinen TKK Reports in Information and Computer Science Espoo 2010 TKK-ICS-R32

More information

Path-planning for Multiple Robots

Path-planning for Multiple Robots Path-planning for Multiple Robots RNDr. Pavel Surynek, Ph.D. Department of Theoretical Computer Science and Mathematical Logic Faculty of Mathematics and Physics Charles University in Prague http://ktiml.mff.cuni.cz/~surynek

More information

Parameterized Complexity - an Overview

Parameterized Complexity - an Overview Parameterized Complexity - an Overview 1 / 30 Parameterized Complexity - an Overview Ue Flarup 1 flarup@imada.sdu.dk 1 Department of Mathematics and Computer Science University of Southern Denmark, Odense,

More information

NP versus PSPACE. Frank Vega. To cite this version: HAL Id: hal https://hal.archives-ouvertes.fr/hal

NP versus PSPACE. Frank Vega. To cite this version: HAL Id: hal https://hal.archives-ouvertes.fr/hal NP versus PSPACE Frank Vega To cite this version: Frank Vega. NP versus PSPACE. Preprint submitted to Theoretical Computer Science 2015. 2015. HAL Id: hal-01196489 https://hal.archives-ouvertes.fr/hal-01196489

More information

space. We will apply the idea of enforcing local consistency to GSAT with the hope that its performance can

space. We will apply the idea of enforcing local consistency to GSAT with the hope that its performance can GSAT and Local Consistency 3 Kalev Kask Computer Science Department University of California at Irvine Irvine, CA 92717 USA Rina Dechter Computer Science Department University of California at Irvine Irvine,

More information

On Computing Minimum Size Prime Implicants

On Computing Minimum Size Prime Implicants On Computing Minimum Size Prime Implicants João P. Marques Silva Cadence European Laboratories / IST-INESC Lisbon, Portugal jpms@inesc.pt Abstract In this paper we describe a new model and algorithm for

More information

Solving 3-SAT. Radboud University Nijmegen. Bachelor Thesis. Supervisors: Henk Barendregt Alexandra Silva. Author: Peter Maandag s

Solving 3-SAT. Radboud University Nijmegen. Bachelor Thesis. Supervisors: Henk Barendregt Alexandra Silva. Author: Peter Maandag s Solving 3-SAT Radboud University Nijmegen Bachelor Thesis Author: Peter Maandag s3047121 Supervisors: Henk Barendregt Alexandra Silva July 2, 2012 Contents 1 Introduction 2 1.1 Problem context............................

More information

Computer-Aided Program Design

Computer-Aided Program Design Computer-Aided Program Design Spring 2015, Rice University Unit 1 Swarat Chaudhuri January 22, 2015 Reasoning about programs A program is a mathematical object with rigorous meaning. It should be possible

More information

Rina Dechter. Irvine, California, USA A constraint satisfaction problem (csp) dened over a constraint network

Rina Dechter. Irvine, California, USA A constraint satisfaction problem (csp) dened over a constraint network Constraint Satisfaction Rina Dechter Department of Computer and Information Science University of California, Irvine Irvine, California, USA 92717 dechter@@ics.uci.edu A constraint satisfaction problem

More information

COMP4418 Knowledge Representation and Reasoning

COMP4418 Knowledge Representation and Reasoning COMP4418 Knowledge Representation and Reasoning Week 3 Practical Reasoning David Rajaratnam Click to edit Present s Name Practical Reasoning - My Interests Cognitive Robotics. Connect high level cognition

More information

Exploring A Two-Solver Architecture for Clause Learning CSP Solvers. Ozan Erdem

Exploring A Two-Solver Architecture for Clause Learning CSP Solvers. Ozan Erdem Exploring A Two-Solver Architecture for Clause Learning CSP Solvers by Ozan Erdem A thesis submitted in conformity with the requirements for the degree of Doctor of Philosophy Graduate Department of Computer

More information

An Introduction to SAT Solvers

An Introduction to SAT Solvers An Introduction to SAT Solvers Knowles Atchison, Jr. Fall 2012 Johns Hopkins University Computational Complexity Research Paper December 11, 2012 Abstract As the first known example of an NP Complete problem,

More information

Satisfiability (SAT) Applications. Extensions/Related Problems. An Aside: Example Proof by Machine. Annual Competitions 12/3/2008

Satisfiability (SAT) Applications. Extensions/Related Problems. An Aside: Example Proof by Machine. Annual Competitions 12/3/2008 15 53:Algorithms in the Real World Satisfiability Solvers (Lectures 1 & 2) 1 Satisfiability (SAT) The original NP Complete Problem. Input: Variables V = {x 1, x 2,, x n }, Boolean Formula Φ (typically

More information

A two phase exact algorithm for MAX SAT and. weighted MAX SAT problems *

A two phase exact algorithm for MAX SAT and. weighted MAX SAT problems * A two phase exact algorithm for MAX SAT and weighted MAX SAT problems * Brian BorchersJr Judith Furmanl March 31, 1997 Abstract We describe a two phase algorithm for MAX SAT and weighted MAX oat problems.

More information

SAT Solver. CS 680 Formal Methods Jeremy Johnson

SAT Solver. CS 680 Formal Methods Jeremy Johnson SAT Solver CS 680 Formal Methods Jeremy Johnson Disjunctive Normal Form A Boolean expression is a Boolean function Any Boolean function can be written as a Boolean expression s x 0 x 1 f Disjunctive normal

More information

Dynamic Variable Filtering for Hard Random 3-SAT Problems

Dynamic Variable Filtering for Hard Random 3-SAT Problems Dynamic Variable Filtering for Hard Random 3-SAT Problems Anbulagan, John Thornton, and Abdul Sattar School of Information Technology Gold Coast Campus, Griffith University PMB 50 Gold Coast Mail Centre,

More information

The temporal explorer who returns to the base 1

The temporal explorer who returns to the base 1 The temporal explorer who returns to the base 1 Eleni C. Akrida, George B. Mertzios, and Paul G. Spirakis, Department of Computer Science, University of Liverpool, UK Department of Computer Science, Durham

More information

Algorithms for the Satisability (SAT) Problem: A Survey. Jun Gu, Paul W. Purdom, John Franco, and Benjamin W. Wah

Algorithms for the Satisability (SAT) Problem: A Survey. Jun Gu, Paul W. Purdom, John Franco, and Benjamin W. Wah DIMACS Series in Discrete Mathematics and Theoretical Computer Science Volume 00, 19xx Algorithms for the Satisability (SAT) Problem: A Survey Jun Gu, Paul W. Purdom, John Franco, and Benjamin W. Wah Abstract.

More information

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions.

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions. CS 787: Advanced Algorithms NP-Hardness Instructor: Dieter van Melkebeek We review the concept of polynomial-time reductions, define various classes of problems including NP-complete, and show that 3-SAT

More information

DM841 DISCRETE OPTIMIZATION. Part 2 Heuristics. Satisfiability. Marco Chiarandini

DM841 DISCRETE OPTIMIZATION. Part 2 Heuristics. Satisfiability. Marco Chiarandini DM841 DISCRETE OPTIMIZATION Part 2 Heuristics Satisfiability Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark Outline 1. Mathematical Programming Constraint

More information

A Pearl on SAT Solving in Prolog (extended abstract)

A Pearl on SAT Solving in Prolog (extended abstract) A Pearl on SAT Solving in Prolog (extended abstract) Jacob M. Howe and Andy King 1 Introduction The Boolean satisfiability problem, SAT, is of continuing interest because a variety of problems are naturally

More information

A Logically Complete Reasoning Maintenance System Based on a Logical Constraint Solver

A Logically Complete Reasoning Maintenance System Based on a Logical Constraint Solver A Logically Complete Reasoning Maintenance System Based on a Logical Constraint Solver J.C. Madre and O. Coudert Bull Corporate Research Center Rue Jean Jaures 78340 Les Clayes-sous-bois FRANCE Abstract

More information

Watching Clauses in Quantified Boolean Formulae

Watching Clauses in Quantified Boolean Formulae Watching Clauses in Quantified Boolean Formulae Andrew G D Rowley University of St. Andrews, Fife, Scotland agdr@dcs.st-and.ac.uk Abstract. I present a way to speed up the detection of pure literals and

More information

Practical SAT Solving

Practical SAT Solving Practical SAT Solving Lecture 5 Carsten Sinz, Tomáš Balyo May 23, 2016 INSTITUTE FOR THEORETICAL COMPUTER SCIENCE KIT University of the State of Baden-Wuerttemberg and National Laboratory of the Helmholtz

More information

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W.

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W. : Coping with NP-Completeness Course contents: Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems Reading: Chapter 34 Chapter 35.1, 35.2 Y.-W. Chang 1 Complexity

More information

Constraint Satisfaction Problems

Constraint Satisfaction Problems Constraint Satisfaction Problems Tuomas Sandholm Carnegie Mellon University Computer Science Department [Read Chapter 6 of Russell & Norvig] Constraint satisfaction problems (CSPs) Standard search problem:

More information

Heap-on-Top Priority Queues. March Abstract. We introduce the heap-on-top (hot) priority queue data structure that combines the

Heap-on-Top Priority Queues. March Abstract. We introduce the heap-on-top (hot) priority queue data structure that combines the Heap-on-Top Priority Queues Boris V. Cherkassky Central Economics and Mathematics Institute Krasikova St. 32 117418, Moscow, Russia cher@cemi.msk.su Andrew V. Goldberg NEC Research Institute 4 Independence

More information

Taxonomic Syntax for First Order Inference. Abstract: We identify a new polynomial time decidable fragment of rst order

Taxonomic Syntax for First Order Inference. Abstract: We identify a new polynomial time decidable fragment of rst order Taxonomic Syntax for First Order Inference DAVID MCALLESTER and ROBERT GIVAN Massachusetts Institute of Technology, Cambridge Massachusetts Abstract: We identify a new polynomial time decidable fragment

More information

Binary Decision Diagrams

Binary Decision Diagrams Logic and roof Hilary 2016 James Worrell Binary Decision Diagrams A propositional formula is determined up to logical equivalence by its truth table. If the formula has n variables then its truth table

More information

Chapter 2 PRELIMINARIES

Chapter 2 PRELIMINARIES 8 Chapter 2 PRELIMINARIES Throughout this thesis, we work with propositional or Boolean variables, that is, variables that take value in the set {true, false}. A propositional formula F representing a

More information

SAT-Solving Of Certain Graph-Based CNF s

SAT-Solving Of Certain Graph-Based CNF s , March 13-15, 2013, Hong Kong SAT-Solving Of Certain Graph-Based CNF s Stefan Porschen Tatjana Schmidt Abstract We propose an explicit linear-time algorithm for the satisfiability problem on the fraction

More information

CSc Parallel Scientific Computing, 2017

CSc Parallel Scientific Computing, 2017 CSc 76010 Parallel Scientific Computing, 2017 What is? Given: a set X of n variables, (i.e. X = {x 1, x 2,, x n } and each x i {0, 1}). a set of m clauses in Conjunctive Normal Form (CNF) (i.e. C = {c

More information

Generalizations of Watched Literals for Backtracking Search

Generalizations of Watched Literals for Backtracking Search Generalizations of Watched Literals for Backtracking Search Allen Van Gelder 237 B.E., University of California, Santa Cruz, CA 95064 E-mail avg@cs.ucsc.edu. December 1, 2001 Abstract The technique of

More information

The Complexity of Camping

The Complexity of Camping The Complexity of Camping Marzio De Biasi marziodebiasi [at] gmail [dot] com July 2012 Version 0.04: a re-revised sketch of the proof Abstract We prove that the tents puzzle game is NP -complete using

More information

The problem of minimizing the elimination tree height for general graphs is N P-hard. However, there exist classes of graphs for which the problem can

The problem of minimizing the elimination tree height for general graphs is N P-hard. However, there exist classes of graphs for which the problem can A Simple Cubic Algorithm for Computing Minimum Height Elimination Trees for Interval Graphs Bengt Aspvall, Pinar Heggernes, Jan Arne Telle Department of Informatics, University of Bergen N{5020 Bergen,

More information

2 Decision Procedures for Propositional Logic

2 Decision Procedures for Propositional Logic 2 Decision Procedures for Propositional Logic 2.1 Propositional Logic We assume that the reader is familiar with propositional logic, and with the complexity classes NP and NP-complete. The syntax of formulas

More information

DIMACS Series in Discrete Mathematics and Theoretical Computer Science A Space-Ecient Randomized DNA Algorithm for k-sat Kevin Chen and Vijay Ramachan

DIMACS Series in Discrete Mathematics and Theoretical Computer Science A Space-Ecient Randomized DNA Algorithm for k-sat Kevin Chen and Vijay Ramachan DIMACS Series in Discrete Mathematics and Theoretical Computer Science A Space-Ecient Randomized DNA Algorithm for k-sat Kevin Chen and Vijay Ramachandran Abstract. We present a randomized DNA algorithm

More information

Normal Forms for Boolean Expressions

Normal Forms for Boolean Expressions Normal Forms for Boolean Expressions A NORMAL FORM defines a class expressions s.t. a. Satisfy certain structural properties b. Are usually universal: able to express every boolean function 1. Disjunctive

More information

Random Instances of W[2]-complete Problems: thresholds, complexity, and algorithms

Random Instances of W[2]-complete Problems: thresholds, complexity, and algorithms Random Instances of W[2]-complete Problems: thresholds, complexity, and algorithms Yong Gao Department of Computer Science Irving K. Barber School of Arts and Sciences University of British Columbia Okanagan

More information

Dipartimento di Elettronica Informazione e Bioingegneria. Cognitive Robotics. SATplan. Act1. Pre1. Fact. G. Gini Act2

Dipartimento di Elettronica Informazione e Bioingegneria. Cognitive Robotics. SATplan. Act1. Pre1. Fact. G. Gini Act2 Dipartimento di Elettronica Informazione e Bioingegneria Cognitive Robotics SATplan Pre1 Pre2 @ 2015 Act1 Act2 Fact why SAT (satisfability)? 2 Classical planning has been observed as a form of logical

More information

PROPOSITIONAL LOGIC (2)

PROPOSITIONAL LOGIC (2) PROPOSITIONAL LOGIC (2) based on Huth & Ruan Logic in Computer Science: Modelling and Reasoning about Systems Cambridge University Press, 2004 Russell & Norvig Artificial Intelligence: A Modern Approach

More information

Decision Procedures. An Algorithmic Point of View. Decision Procedures for Propositional Logic. D. Kroening O. Strichman.

Decision Procedures. An Algorithmic Point of View. Decision Procedures for Propositional Logic. D. Kroening O. Strichman. Decision Procedures An Algorithmic Point of View Decision Procedures for Propositional Logic D. Kroening O. Strichman ETH/Technion Version 1.0, 2007 Part I Decision Procedures for Propositional Logic Outline

More information

Planning as Search. Progression. Partial-Order causal link: UCPOP. Node. World State. Partial Plans World States. Regress Action.

Planning as Search. Progression. Partial-Order causal link: UCPOP. Node. World State. Partial Plans World States. Regress Action. Planning as Search State Space Plan Space Algorihtm Progression Regression Partial-Order causal link: UCPOP Node World State Set of Partial Plans World States Edge Apply Action If prec satisfied, Add adds,

More information

P I P O C 1. Miter Out C 2 CUT

P I P O C 1. Miter Out C 2 CUT SAT-Based Image Computation with Application in Reachability Analysis Aarti Gupta, Zijiang Yang, Pranav Ashar, and Anubhav Gupta NEC USA CCRL 4 Independence Way, Princeton, NJ 08540 fagupta, jyang, ashar,

More information

Example: Map coloring

Example: Map coloring Today s s lecture Local Search Lecture 7: Search - 6 Heuristic Repair CSP and 3-SAT Solving CSPs using Systematic Search. Victor Lesser CMPSCI 683 Fall 2004 The relationship between problem structure and

More information

Modelling More Realistic SAT Problems

Modelling More Realistic SAT Problems Modelling More Realistic SAT Problems Andrew Slater Computer Sciences Laboratory, Australian National University, 0200, Canberra andrew.slater@cslab.anu.edu.au Abstract. The satisfiability problem is widely

More information

Reductions. Linear Time Reductions. Desiderata. Reduction. Desiderata. Classify problems according to their computational requirements.

Reductions. Linear Time Reductions. Desiderata. Reduction. Desiderata. Classify problems according to their computational requirements. Desiderata Reductions Desiderata. Classify problems according to their computational requirements. Frustrating news. Huge number of fundamental problems have defied classification for decades. Desiderata'.

More information

Adding a New Conflict Based Branching Heuristic in two Evolved DPLL SAT Solvers

Adding a New Conflict Based Branching Heuristic in two Evolved DPLL SAT Solvers Adding a New Conflict Based Branching Heuristic in two Evolved DPLL SAT Solvers Renato Bruni, Andrea Santori Università di Roma La Sapienza, Dip. di Informatica e Sistemistica, Via Michelangelo Buonarroti

More information

2SAT Andreas Klappenecker

2SAT Andreas Klappenecker 2SAT Andreas Klappenecker The Problem Can we make the following boolean formula true? ( x y) ( y z) (z y)! Terminology A boolean variable is a variable that can be assigned the values true (T) or false

More information

On the Complexity of k-sat

On the Complexity of k-sat Journal of Computer and System Sciences 62, 367375 (2001) doi:10.1006jcss.2000.1727, available online at http:www.idealibrary.com on On the Complexity of k-sat Russell Impagliazzo 1 and Ramamohan Paturi

More information