On Computing Minimum Size Prime Implicants
|
|
- Joseph Rose
- 5 years ago
- Views:
Transcription
1 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 computing minimum-size prime implicants of Boolean functions. The computation of minimum-size prime implicants has several applications in different areas, including Electronic Design Automation (EDA), Non-Monotonic Reasoning, Logical Inference, among others. For EDA, one significant and immediate application is the computation of minimum-size test patterns in Automatic Test Pattern Generation (ATPG). The proposed approach is based on creating an integer linear program (ILP) formulation for computing the minimum-size prime implicant. In addition, we introduce a new algorithm for solving ILPs, which is built on top of an algorithm for propositional satisfiability (SAT). Experimental results, obtained on several benchmark examples, indicate that our approach is significantly more efficient than existing algorithms. 1. Introduction Given a boolean function f, the problem of computing a minimum-size assignment (in the number of literals) that satisfies f is referred to as the minimum-size prime implicant problem. Note that computing a minimum-size prime implicant corresponds to identifying a maximum-size cube for the given boolean function. Minimum-size prime implicants find application in many areas including, among others, Electronic Design Automation. One interesting application example is the computation of minimum-size test patterns in automatic test pattern generation which, as we shall see, can be viewed as a particular case of computing a minimum-size prime implicant of a boolean function. In other areas, interest on computing minimum-size prime implicants of boolean functions has motivated extensive research work (see for example [5, 6], which include extensive bibliographic references.). In this paper we develop an ILP formulation for computing minimum-size prime implicants of Boolean functions described by Conjunctive Normal Form (CNF) formulas. The proposed model improves the one described in [6]. Moreover, a new algorithm for solving 01-ILPs is described. This algorithm is based on propositional satisfiability (SAT), and generalizes the SAT-based ILP algorithm originally described in [1]. In particular, our ILP algorithm is based on the GRASP SAT algorithm [7]. Preliminary results obtained on several satisfiable instances of the DIMACS benchmarks [4], indicate that the proposed model and algorithm can be used for computing minimum-size prime implicants for several classes of Boolean functions. 2. Definitions The paper follows the definitions introduced in [7], in particular for the organization of the GRASP SAT algorithm which is used in Section 4. In general, we assume a boolean function f : { 0, 1} n { 0, 1}, represented by a CNF formula ϕ, where each clause ω is a sum of literals, and a literal l is either a variable x i or its complement x i '. A clause ω = ( l l k ) denotes a constraint and so it can also be viewed as a linear inequality, l l k 1, and we use this alternative representation when appropriate. Furthermore, since a literal l = x i ' can also be defined by l = 1 x i, we shall in general use this latter representation when viewing clauses as linear inequalities. 3. Computing Prime Implicants Using ILPs Given a description of a Boolean function in CNF, it is straightforward to formulate the computation of the minimum-size prime implicant as an integer linear program [6]. In this paper we show how to simplify the formulation proposed in [6], thus allowing for a significant reduction in the worst-case search space. Given a CNF formula ϕ, which is defined on a set of variables { x 1,, x n }, and which denotes a Boolean function f : { 0, 1} n { 0, 1}, apply the following transformation: 1. Create a new set of boolean variables { y 1,, y 2n }, where y 2i 1 is associated with literal x i, and y 2i is associated with literal x i '. 2. For each clause ω = ( l l m ), replace each literal l j with y 2k 1 if l j = x k, or with y 2k if l j = x i '. 3. For each pair of variables, y 2i 1 and y 2i, require that at most one is set to one. Hence, y 2i 1 + y 2i The set of inequalities obtained from steps 2. and 3. can be viewed as a single set of inequalities A y b. Finally, define the cost function to be,
2 min (1) 5. The complete ILP formulation is thus defined as follows: It is clear that the minimum value of (1) denotes a minimum-size prime implicant of the original CNF formula ϕ. Proposition 1. Given a CNF formula ϕ, the solution of the optimization problem (1) is a minimum-size prime implicant of ϕ. The proposed model is based on the one described in [6]. However, the model proposed in [6] associates an integer variable with each inequality created from each of the original clauses. As we showed above, such integer variables are unnecessary and can only potentially increase the search space. Hence, the worst-case search space for the ILP model we propose in this paper is significantly smaller than for the model proposed in [6]. The construction of the ILP model will be illustrated with the following CNF formula: First, we create the a new set of variables { y 1, y 2, y 3, y 4, y 5, y 6 }, and associate y 2i 1 with each x i and y 2i with each x i '. Consequently, from (3) the following modified CNF formula ϕ' is obtained: For each clause, simple algebraic manipulation yields an equivalent inequality: j The next step is to require that at most one variable of each pair of variables y 2i 1, y 2i can be set to one, which yields: y j min y j j s.t. A y b ϕ = ( x 1 + x 2 + x 3 ) ( x 1 ' + x 2 ') ( x 1 ' + x 3 ') ϕ' = ( y 1 + y 3 + y 5 ) ( y 2 + y 4 ) ( y 2 + y 6 ) y 1 + y 3 + y 5 1 y 2 + y 4 1 y 2 + y 6 1 y 1 + y 2 1 y 1 y 2 1 y 3 + y 4 1 y 3 y 4 1 y 5 + y 6 1 y 5 y 6 1 (2) (3) (4) (5) (6) Thus allowing for a given variable x i not to be assigned. Equations (5) and (6) define the set of inequalities A y b. The next step is to identify the cost function, which minimizes the number of variables assigned value one, i.e. the number of variables x i with an assigned value. Finally the resulting ILP model becomes: min y 1 + y 2 + y 3 + y 4 + y 5 + y 6 s.t. A y b One solution to the linear program (7) is, for example, x 1 = 0 and x 2 = Search Algorithm for Solving ILPs In [1], P. Barth described how to solve ILPs using a propositional satisfiability algorithm. However, the ILP algorithm described in [1] is based on the Davis-Putnam procedure, which has been shown to be particularly inefficient for a large number of instances of SAT [7]. 4.1 SAT-Based ILP Algorithm The proposed ILP algorithm is based on the GRASP SAT algorithm [7], which includes several powerful pruning techniques for reducing the amount of search associated with instances of SAT. Among the pruning techniques included in GRASP, the following have been shown to be particularly important: GRASP implements non-chronological backtracking. This backtracking strategy permits skipping over large portions of the decision tree for some instances of SAT. During the search process, and as conflicts are identified, new clauses are created from the causes of those conflicts. These new clauses are then used for pruning the subsequent search. In most cases, instances of SAT generated from EDA problems have highly structured CNF representations. The intrinsic structure of these representations can be exploited by GRASP, after analyzing the causes of conflicts, by identifying necessary assignments required for preventing conflicts from happening again during the search. Let us consider the cost function (1). The possible values assumed by the cost function for the different assignments to the variables in the set { y 1,, y 2n } range from 0, when all variables are assigned value 0, to 2n, when all variables are assigned value 1. Note however, that for the (7)
3 int min_prime (ϕ) { k = n ; while ( k 0 ) { ϕ = ϕ { y k} j ; status = solve_sat (ϕ); ϕ = ϕ { y k} j ; if ( status == SATISFIABLE ) { k = y j ; k ; } else { ++ k ; break; } return k ; } Figure 1: SAT-based ILP algorithm minimum-size prime implicant problem a trivial upper bound is n, since for any pair of variables y 2i 1, y 2i at most one can be assigned value 1. P. Barth s [1] approach consists of applying the following sequence of steps, starting from an upper bound of k = 2n on the value of the cost function: 1. Create a new inequality y k j. This inequality basically requires that a computed solution must have no more than k literals assigned value Solve the resulting instance of satisfiability. (Note that the resulting instance of satisfiability assumes arithmetic operations, but updating most SAT algorithms for handling this generalization is straightforward.) 3. If the instance of SAT is satisfiable decrement k and go back to step 1. Otherwise, report that the solution to the ILP is k + 1. Note that this ILP algorithm allows for any SAT algorithm to be used as the underlying SAT testing engine. The proposed ILP algorithm is illustrated in Figure 1. For our particular case, the solve_sat function call invokes the GRASP SAT algorithm [7]. 4.2 Extensions to the Basic Algorithm One extension variation of the ILP algorithm is the ability to incrementally enumerate prime implicants by increasing size [6]. The procedure proposed in [6] basically recreates the search process for each new prime implicant to be computed. Clearly, this solution can introduce significant and unnecessary computational overhead. One possible solution with a provably better worst-case time complexity is the following: 1. Keep a stack of pairs of computed solutions and associated upper bound values k. 2. Use the current top of the stack to find the next minimum-size prime implicant. 3. For a given solution-upper bound pair, apply the algorithm of Figure 1 until the next optimal solution is found. For this new optimal bound, enumerate all solutions. 4. As soon as a given pair solution-upper bound yields no more solutions, pop the stack and go back to step 2. Repeat until stack of solution-upper bound pairs becomes empty. 5. EDA Applications In order to illustrate the potential application of minimum-size prime implicants in EDA, we now study its use in test pattern generation. It is well-known that fault detection problems in ATPG can be cast as instances of the propositional satisfiability problem [8]. In some situations, the ATPG tool is required to compute test patterns of minimum-size. This is the case, for example, when computing test patterns for generating deterministic built-in self test logic. Given a CNF formula ϕ describing a fault detection problem, the model described in Section 3 can be applied to ϕ. This in turn yields an ILP for computing a minimumsize prime implicant of the Boolean function represented by ϕ. By restricting the cost function of the ILP to the primary input variables (PIs), the resulting solution is a minimum-size test pattern for the target fault. The procedure for computing minimum-size test patterns is illustrated in Figure Experimental Results In this section we include experimental results of a tool for computing minimum-size prime implicants, minprime, and compare it with other ILP solvers, lp-solve [2], opbdp [1], and the commercial optimizer CPLEX. Moreover, the binate covering tool scherzo [3] is also evaluated. For this purpose we use a representative set of the satisfiable instances of the DIMACS benchmarks [4]. The experimental results, obtained on a SUN 5/85 machine with 64 MByte of physical memory, are shown in Table 1. For each benchmark and for each tool were allowed 3000 seconds of CPU time. Column min indicates the size of
4 stuck-at fault the minimum-size prime implicant, when this size is known. Each column UB denotes the upper bound computed by each algorithm. For the results shown, whenever a tool quits earlier than 3000 sec, then the tool exceeded the available virtual memory (i.e. 64 MByte). As can be concluded, general-purpose ILP solvers, such as CPLEX and lp-solve, may be inadequate for computing minimum-size prime implicants. Similarly, despite the very promising results as an algorithm for solving binate covering problems, scherzo performs particularly poorly when computing minimum-size prime implicants. Both SAT-based ILP solvers can handle a large number of benchmarks and, in general, min-prime performs better and is more robust than opbdp. For the JNH benchmarks, opbdp performs better because the amount of search is similar and the overhead of GRASP is larger. From the experimental results obtained, it can also be concluded that the computation of the minimum-size prime implicant can be a particularly hard problem for specific sets of instances. This is the case, for example, with the ii8 and ssa7552 benchmarks. For the ssa7552 benchmark, the ILP formulation computes a minimumsize assignment for all nodes in the fault detection representation. This is naturally harder than computing a minimum-size assignment to the primary inputs. Nevertheless, this benchmark provides strong evidence that none of the tools tested can currently be used effectively for solving the minimum-test pattern problem in automatic test pattern generation. One key drawback of the proposed algorithmic solucreate CNF formula min prime ILP model restrict cost function to PIs Figure 2: Computation of minimum-size test patterns tion, is the ILP layer around the SAT algorithm. This layer iteratively creates additional clauses which, for the minimum-size prime implicant problem, involve all variables in the problem representation. Hence, conflicts involving this clause necessarily lead to chronological backtracking 1, and so the most useful features of GRASP cannot be exploited. 7. Conclusions and Ongoing Work In this paper we describe a new model and algorithm for computing minimum size prime implicants of boolean functions. The model is based on an ILP formulation and the proposed algorithm is a SAT-based ILP algorithm. To our best knowledge min-prime is the first SAT-based ILP algorithm that incorporates conflict analysis techniques in solving optimization problems. As the results given in the previous section clearly show, the proposed algorithm, min-prime, is by far the most competitive for the set of benchmarks considered. Thus, for these classes of benchmarks min-prime would be the option of choice. Nevertheless, and despite the promising results given in the previous section, more work needs to be done before a SAT-based ILP algorithm, such as min-prime, can be used for solving minimum-size prime implicant problems with a practical impact, as for example the minimum-size test pattern problem. Finally we observe that even though both the minimum size prime implicant problem and the binate covering problem have similar formulation, the algorithms for solving each problem should have different organizations, as the experimental results of min-prime and scherzo clearly suggest. As mentioned earlier, one key bottleneck of the proposed algorithmic solution is the ILP layer around GRASP. The iterated addition of large clauses to the CNF formula reduces the ability of GRASP for backtracking non-chronologically and in several cases causes GRASP to always backtrack chronologically. Other algorithmic solutions are currently being study which show greater promise. Acknowledgments The author would like to thank Arlindo Oliveira for 1. In such a situation, each conflict involves all variables and so backtracking is necessarily chronological, to the most recent decision assignment [7].
5 Benchmark min CPLEX lp-solve [2] scherzo [3] opbdp [1] min-prime time UB time UB time UB time UB time UB aim-50-1_6-yes > 3, aim-50-2_0-yes > 3, aim-50-3_4-yes aim-50-6_0-yes aim-100-1_6-yes > 3,000 > 3,000 > 1,000 > 3, aim-100-2_0-yes > 3,000 > 3, aim-100-3_4-yes > 3,000 > 3, aim-100-6_0-yes > 3, aim-200-1_6-yes > 3,000 > 3,000 > 345 > 3, aim-200-2_0-yes > 3,000 > 3,000 > 1,705 > 3, aim-200-3_4-yes > 3,000 > 3,000 > 3, aim-200-6_0-yes > 3,000 > 3, ii8a ii8b2 > 3, > 3, > 3,000 > 3,000 > 3, ii8c2 > 3, > 3, > 3,000 > 3,000 > 3, ii8d2 > 3, > 3,000 > 3,000 > 3,000 > 3, ii8e2 > 3, > 3,000 > 3,000 > 3,000 > 3, jnh1 92 > 3, > 3, jnh7 89 > 3, > 3, jnh , > 3, jnh > 3, ssa > 3, > 3, > 223 > 3, > 1, Table 1: Experimental results on selected benchmarks (CPU times in seconds) many fruitful discussions, Paulo Flores for installing and maintaining the ILP codes, and Olivier Coudert for providing the executable of scherzo. References [1] P. Barth, A Davis-Putnam Based Enumeration Algorithm for Linear Pseudo-Boolean Optimization, Technical Report MPI-I , Max-Planck-Institut für Informatik, January [2] M.R.C.M. Berkelaar, UNIX TM Manual Page of lpsolve. Eindhoven University of Technology, Design Automation Section, [3] O. Coudert, On Solving Covering Problems, in Proceedings of the Design Automation Conference, June [4] D. S. Johnson and M. A. Trick (eds.), Second DIMACS Implementation Challenge, DIMACS Series in Discrete Mathematics and Theoretical Computer Science, DIMACS benchmarks available in ftp://dimacs.rutgers.edu/pub/challenge/sat/benchmarks/cnf. [5] T. Ngair, A New Algorithm for Incremental Prime Implicant Generation, in Proceedings of the International Joint Conference on Artificial Intelligence, [6] C. Pizzuti, Computing Prime Implicants by Integer Programming, in Proceedings of International Conference on Tools with Artificial Intelligence, November [7] J. P. M. Silva and K. A. Sakallah, GRASP A New Search Algorithm for Satisfiability, in Proceedings of the International Conference on Computer-Aided Design, November [8] P. R. Stephan, R. K. Brayton and A. L. Sangiovanni- Vincentelli, Combinational Test Generation Using Satisfiability, IEEE Transactions on Computer-Aided Design, vol. 15, no. 9, pp , September 1996.
Satisfiability-Based Algorithms for 0-1 Integer Programming
Satisfiability-Based Algorithms for 0-1 Integer Programming Vasco M. Manquinho, João P. Marques Silva, Arlindo L. Oliveira and Karem A. Sakallah Cadence European Laboratories / INESC Instituto Superior
More informationSearch Pruning Conditions for Boolean Optimization
Search Pruning Conditions for Boolean Optimization Vasco M. Manquinho vmm@algos.inesc.pt Polytechnical Institute of Portalegre Portalegre, Portugal João Marques-Silva jpms@inesc.pt Technical University
More informationSearch Pruning Conditions for Boolean Optimization
Search Pruning Conditions for Boolean Optimization Vasco M. Manquinho vmm@algos.inesc.pt Polytechnical Institute of Portalegre Portalegre, Portugal João Marques-Silva jpms@inesc.pt Technical University
More informationConditions for Non-Chronological Backtracking in Boolean Optimization
Conditions for Non-Chronological Backtracking in Boolean Optimization Vasco M. Manquinho vmm@algos.inesc.pt Polytechnical Institute of Portalegre Portalegre, Portugal João Marques-Silva jpms@inesc.pt Technical
More informationOn Applying Cutting Planes in DLL-Based Algorithms for Pseudo-Boolean Optimization
On Applying Cutting Planes in DLL-Based Algorithms for Pseudo-Boolean Optimization Vasco Manquinho and João Marques-Silva Technical University of Lisbon, IST/INESC-ID, Lisbon, Portugal {vmm, jpms}@sat.inesc-id.pt
More informationAn Experimental Evaluation of Conflict Diagnosis and Recursive Learning in Boolean Satisfiability
An Experimental Evaluation of Conflict Diagnosis and Recursive Learning in Boolean Satisfiability Fadi A. Aloul and Karem A. Sakallah Department of Electrical Engineering and Computer Science University
More informationCombinational Equivalence Checking Using Satisfiability and Recursive Learning
Combinational Equivalence Checking Using Satisfiability and Recursive Learning João Marques-Silva Thomas Glass Instituto Superior Técnico Siemens AG Cadence European Labs/INESC Corporate Technology 1000
More informationEffective Lower Bounding Techniques for Pseudo-Boolean Optimization
Effective Lower Bounding Techniques for Pseudo-Boolean Optimization Vasco M. Manquinho and João Marques-Silva IST/INESC-ID, Technical University of Lisbon, Portugal {vmm,jpms}@sat.inesc-id.pt Abstract
More informationFull CNF Encoding: The Counting Constraints Case
Full CNF Encoding: The Counting Constraints Case Olivier Bailleux 1 and Yacine Boufkhad 2 1 LERSIA, Université de Bourgogne Avenue Alain Savary, BP 47870 21078 Dijon Cedex olivier.bailleux@u-bourgogne.fr
More informationGRASP A New Search Algorithm for Satisfiability
Thi d d i h F M k 4 0 4 GRASP A New Search Algorithm for Satisfiability João P. Marques Silva Karem A. Sakallah Cadence European Laboratories Department of EECS IST/INESC University of Michigan 1000 Lisboa,
More informationImproving Unsatisfiability-based Algorithms for Boolean Optimization
Improving Unsatisfiability-based Algorithms for Boolean Optimization Vasco Manquinho, Ruben Martins, and Inês Lynce IST/INESC-ID, Technical University of Lisbon, Portugal {vmm,ruben,ines}@sat.inesc-id.pt
More informationAn 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 informationLearning 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 informationThe 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 informationTHE UNIVERSITY OF MICHIGAN. GRASP A New Search Algorithm for Satisfiability
GRASP A New Search Algorithm for Satisfiability João P. Marques Silva Karem A. Sakallah CSE-TR-292-96 April 10, 1996 THE UNIVERSITY OF MICHIGAN Computer Science and Engineering Division Department of Electrical
More informationLearning Techniques for Pseudo-Boolean Solving
José Santos IST/UTL, INESC-ID Lisbon, Portugal jffs@sat.inesc-id.pt Vasco Manquinho IST/UTL, INESC-ID Lisbon, Portugal vmm@sat.inesc-id.pt Abstract The extension of conflict-based learning from Propositional
More informationHeuristic 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 informationUnrestricted Backtracking Algorithms for Satisfiability
From: AAAI Technical Report FS-01-04. Compilation copyright 2001, AAAI (www.aaai.org). All rights reserved. Unrestricted Backtracking Algorithms for Satisfiability I. Lynce, L. Baptista and J. Marques-Silva
More informationUsing Synthesis Techniques in SAT Solvers
1. Introduction Using Synthesis Techniques in SAT Solvers Rolf Drechsler Institute of Computer Science University of Bremen 28359 Bremen, Germany drechsle@informatik.uni-bremen.de Abstract In many application
More informationTowards More Effective Unsatisfiability-Based Maximum Satisfiability Algorithms
Towards More Effective Unsatisfiability-Based Maximum Satisfiability Algorithms Joao Marques-Silva and Vasco Manquinho School of Electronics and Computer Science, University of Southampton, UK IST/INESC-ID,
More informationParallel Search for Boolean Optimization
Parallel Search for Boolean Optimization Ruben Martins, Vasco Manquinho, and Inês Lynce IST/INESC-ID, Technical University of Lisbon, Portugal {ruben,vmm,ines}@sat.inesc-id.pt Abstract. The predominance
More informationPBS: A Pseudo-Boolean Solver and Optimizer
PBS: A Pseudo-Boolean Soler and Optimizer Fadi A. Aloul, Arathi Ramani, Igor L. Marko, Karem A. Sakallah Uniersity of Michigan 2002 Fadi A. Aloul, Uniersity of Michigan Motiation SAT Solers Apps: Verification,
More informationHybrid Constraint Solvers
Hybrid Constraint Solvers - An overview Why Hybrid Solvers CP and SAT: Lazy Clause Generation CP and LP: Reification of Linear Constraints Conclusions 9 November 2011 Pedro Barahona - EPCL - Hybrid Solvers
More informationPreprocessing in Pseudo-Boolean Optimization: An Experimental Evaluation
Preprocessing in Pseudo-Boolean Optimization: An Experimental Evaluation Ruben Martins, Inês Lynce, and Vasco Manquinho IST/INESC-ID, Technical University of Lisbon, Portugal {ruben,ines,vmm}@sat.inesc-id.pt
More informationIEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 27, NO. 6, JUNE
IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 27, NO. 6, JUNE 2008 1013 Exact and Approximate Algorithms for the Optimization of Area and Delay in Multiple Constant
More informationOn 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 informationRandom backtracking in backtrack search algorithms for satisfiability
Discrete Applied Mathematics 155 (2007) 1604 1612 www.elsevier.com/locate/dam Random backtracking in backtrack search algorithms for satisfiability I. Lynce, J. Marques-Silva Technical University of Lisbon,
More informationMassively 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 informationDiscrete Optimization. Lecture Notes 2
Discrete Optimization. Lecture Notes 2 Disjunctive Constraints Defining variables and formulating linear constraints can be straightforward or more sophisticated, depending on the problem structure. The
More informationPreprocessing in Pseudo-Boolean Optimization: An Experimental Evaluation
Preprocessing in Pseudo-Boolean Optimization: An Experimental Evaluation Ruben Martins Inês Lynce Vasco Manquinho IST/INESC-ID, Technical University of Lisbon, Portugal 20/09/2009 Lisbon, Portugal Motivation
More informationHeuristic-Based Backtracking for Propositional Satisfiability
Heuristic-Based Backtracking for Propositional Satisfiability A. Bhalla, I. Lynce, J.T. de Sousa, and J. Marques-Silva Technical University of Lisbon, IST/INESC-ID, Lisbon, Portugal {ateet,ines,jts,jpms}@sat.inesc.pt
More informationBoolean lexicographic optimization: algorithms & applications
Ann Math Artif Intell DOI 10.1007/s10472-011-9233-2 Boolean lexicographic optimization: algorithms & applications Joao Marques-Silva Josep Argelich Ana Graça Inês Lynce Springer Science+Business Media
More informationON SOLVING OPTIMIZATION PROBLEMS USING BOOLEAN SATISFIABILITY
ON SOLVING OPTIMIZATION PROBLEMS USING BOOLEAN SATISFIABILITY Fadi A. Aloul American University of Sharjah Department of Computer Engineering P.O. Box 26666, Sharjah, UAE faloul@ausharjah.edu ABSTRACT
More informationNormal 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 informationEECS 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 informationFormal Verification using Probabilistic Techniques
Formal Verification using Probabilistic Techniques René Krenz Elena Dubrova Department of Microelectronic and Information Technology Royal Institute of Technology Stockholm, Sweden rene,elena @ele.kth.se
More informationEffective Bounding Techniques For Solving Unate and Binate Covering Problems. Matthias F. Stallmann. Raleigh, NC, USA.
Effective Bounding Techniques For Solving Unate and Binate Covering Problems Xiao Yu Li Matthias F. Stallmann Franc Brglez Seattle, WA, USA Raleigh, NC, USA Raleigh, NC, USA 2/3/7 Related Work Unate (Set)
More informationEffective Bounding Techniques For Solving Unate and Binate Covering Problems
Effective Bounding Techniques For Solving Unate and Binate Covering Problems Xiao Yu Li Matthias F. Stallmann Franc Brglez Seattle, WA, USA Raleigh, NC, USA Raleigh, NC, USA 0/7/07 Related Work Unate (Set)
More informationQuteSat. A Robust Circuit-Based SAT Solver for Complex Circuit Structure. Chung-Yang (Ric) Huang National Taiwan University
QuteSat A Robust Circuit-Based SAT Solver for Complex Circuit Structure Chung-Yang (Ric) Huang National Taiwan University To appear: DATE 27 2/1/27 Fact Sheet (Background) Boolean Satisfiability (SAT)
More informationSAT 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 informationThe Einstein Puzzle. Hints to Einstein Puzzle. Hints to Einstein Puzzle (cont) Specify Einstein Puzzle in SAT. Specify Einstein Puzzle in SAT
The Einstein Puzzle SAT: Propositional Satisfiability 22c:145 Artificial Intelligence Russell & Norvig, Ch. 7.6 Supposedly, Albert Einstein wrote this riddle, and said 98% of the world could not solve
More informationBoolean 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 informationTHE reduction of finite state machines (FSM s) is a wellknown
IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 18, NO. 11, NOVEMBER 1999 1619 A New Algorithm for Exact Reduction of Incompletely Specified Finite State Machines Jorge
More informationPbmodels Software to Compute Stable Models by Pseudoboolean Solvers
Pbmodels Software to Compute Stable Models by Pseudoboolean Solvers Lengning Liu and Mirosław Truszczyński Department of Computer Science, University of Kentucky, Lexington, KY 40506-0046, USA Abstract.
More informationCombinational Equivalence Checking
Combinational Equivalence Checking Virendra Singh Associate Professor Computer Architecture and Dependable Systems Lab. Dept. of Electrical Engineering Indian Institute of Technology Bombay viren@ee.iitb.ac.in
More informationLookahead Saturation with Restriction for SAT
Lookahead Saturation with Restriction for SAT Anbulagan 1 and John Slaney 1,2 1 Logic and Computation Program, National ICT Australia Ltd., Canberra, Australia 2 Computer Sciences Laboratory, Australian
More informationOptimization-based Multiple Target Test Generation for Highly Compacted Test Sets
Optimization-based Multiple Target Test Generation for Highly Compacted Test Sets Stephan Eggersglüß Kenneth Schmitz René Krenz-Bååth Rolf Drechsler Institute of Computer Science University of Bremen 28359
More informationBounded Model Checking with Parametric Data Structures
Bounded Model Checking with Marc Herbstritt (joint work with Erika Ábrahám, Bernd Becker, Martin Steffen) www.avacs.org August 15 2006 4th International Workshop on Bounded Model Checking Context Automated
More informationEECS 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 informationCS-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 informationESE535: Electronic Design Automation CNF. Today CNF. 3-SAT Universal. Problem (A+B+/C)*(/B+D)*(C+/A+/E)
ESE535: Electronic Design Automation CNF Day 21: April 21, 2008 Modern SAT Solvers ({z}chaff, GRASP,miniSAT) Conjunctive Normal Form Logical AND of a set of clauses Product of sums Clauses: logical OR
More informationNP-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 informationSAT/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 informationUsing Problem Symmetry in Search Based Satisfiability Algorithms. Mukul R. Prasad Fujitsu Labs. of America Sunnyvale, CA
Using roblem Symmetry in Search Based Satisfiability Algorithms Evgueni I. Goldberg Cadence Berkeley Laboratories Berkeley, CA egold@cadence.com Mukul R. rasad Fujitsu Labs. of America Sunnyvale, CA mukul@fla.fujitsu.com
More informationEfficient Wrapper/TAM Co-Optimization for Large SOCs
Efficient Wrapper/TAM Co-Optimization for Large SOCs Vikram Iyengar, Krishnendu Chakrabarty and Erik Jan Marinissen Department of Electrical & Computer Engineering Philips Research Laboratories Duke University,
More informationEffective CNF Encodings for the Towers of Hanoi
Ruben Martins and Inês Lynce IST/INESC-ID, Technical University of Lisbon, Portugal {ruben,ines}@sat.inesc-id.pt Abstract One of the most well-known CNF benchmark encodes the problem of the Towers of Hanoi.
More informationImplementation of a Sudoku Solver Using Reduction to SAT
Implementation of a Sudoku Solver Using Reduction to SAT For this project you will develop a Sudoku solver that receives an input puzzle and computes a solution, if one exists. Your solver will: read an
More informationSymbolic 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 informationSearch techniques for SAT-based Boolean optimization
Journal of the Franklin Institute ] (]]]]) ]]] ]]] www.elsevier.com/locate/jfranklin Search techniques for SAT-based Boolean optimization Fadi A. Aloul Department of Computer Engineering, American University
More informationSolving the Minimum-Cost Satisfiability Problem Using SAT Based Branch-and-Bound Search
Solving the Minimum-Cost Satisfiability Problem Using SAT Based Branch-and-Bound Search ABSTRACT Boolean Satisfiability (SAT) has seen many successful applications in various fields, such as Electronic
More informationA Novel SAT All-Solutions Solver for Efficient Preimage Computation
A Novel SAT All-Solutions Solver for Efficient Preimage Computation Bin Li Department of ECE Virginia Tech. Blacksburg, VA, 24061 Michael S. Hsiao Department of ECE Virginia Tech. Blacksburg, VA, 24061
More informationBoolean Satisfiability Solving Part II: DLL-based Solvers. Announcements
EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving Part II: DLL-based Solvers Sanjit A. Seshia EECS, UC Berkeley With thanks to Lintao Zhang (MSR) Announcements Paper readings will be
More informationExample: 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 information1 Inference for Boolean theories
Scribe notes on the class discussion on consistency methods for boolean theories, row convex constraints and linear inequalities (Section 8.3 to 8.6) Speaker: Eric Moss Scribe: Anagh Lal Corrector: Chen
More informationSAT, SMT and QBF Solving in a Multi-Core Environment
SAT, SMT and QBF Solving in a Multi-Core Environment Bernd Becker Tobias Schubert Faculty of Engineering, Albert-Ludwigs-University Freiburg, 79110 Freiburg im Breisgau, Germany {becker schubert}@informatik.uni-freiburg.de
More informationConstraint 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 informationA New Algorithm to Create Prime Irredundant Boolean Expressions
A New Algorithm to Create Prime Irredundant Boolean Expressions Michel R.C.M. Berkelaar Eindhoven University of technology, P.O. Box 513, NL 5600 MB Eindhoven, The Netherlands Email: michel@es.ele.tue.nl
More informationMinimum Satisfying Assignments for SMT. Işıl Dillig, Tom Dillig Ken McMillan Alex Aiken College of William & Mary Microsoft Research Stanford U.
Minimum Satisfying Assignments for SMT Işıl Dillig, Tom Dillig Ken McMillan Alex Aiken College of William & Mary Microsoft Research Stanford U. 1 / 20 Satisfiability Modulo Theories (SMT) Today, SMT solvers
More information3 No-Wait Job Shops with Variable Processing Times
3 No-Wait Job Shops with Variable Processing Times In this chapter we assume that, on top of the classical no-wait job shop setting, we are given a set of processing times for each operation. We may select
More informationSymmetry Breaking for Pseudo-Boolean Formulas
Symmetry Breaking for Pseudo-Boolean Formulas FADI A. ALOUL American University of Sharjah and ARATHI RAMANI, IGOR L. MARKOV, and KAREM A. SAKALLAH University of Michigan, Ann Arbor 1.3 Many important
More informationInference methods for a pseudo-boolean satisfiability solver
Inference methods for a pseudo-boolean satisfiability solver Heidi E. Dixon and Matthew L. Ginsberg CIRL 1269 University of Oregon Eugene, OR 97403-1269 {dixon, ginsberg}@cirl.uoregon.edu Abstract We describe
More informationGeneralizations 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 informationAn 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 informationUsing Problem Symmetry in Search Based Satisfiability Algorithms. Mukul R. Prasad Fujitsu Labs. of America Sunnyvale, CA
Using Problem Symmetry in Search Based Satisfiability Algorithms Evgueni I. Goldberg Cadence Berkeley Laboratories Berkeley, CA egold@cadence.com Mukul R. Prasad Fujitsu Labs. of America Sunnyvale, CA
More information4.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 informationTowards a Symmetric Treatment of Satisfaction and Conflicts in Quantified Boolean Formula Evaluation
Towards a Symmetric Treatment of Satisfaction and Conflicts in Quantified Boolean Formula Evaluation Lintao Zhang, Sharad Malik Department of Electrical Engineering, Princeton University, Princeton, NJ
More informationVerification of Proofs of Unsatisfiability for CNF Formulas
Verification of Proofs of Unsatisfiability for CNF Formulas Evgueni Goldberg Cadence Berkeley Labs (USA), Email: egold@cadence.com Yakov Novikov The United Institute of Informatics Problems, National Academy
More informationSAT BASED ALGORITHMIC APPROACH FOR SUDOKU PUZZLE
International Journal of Computer Engineering & Technology (IJCET) Volume 9, Issue 6, November-December 2018, pp. 38 45, Article ID: IJCET_09_06_005 Available online at http://www.iaeme.com/ijcet/issues.asp?jtype=ijcet&vtype=9&itype=6
More informationFormally Certified Satisfiability Solving
SAT/SMT Proof Checking Verifying SAT Solver Code Future Work Computer Science, The University of Iowa, USA April 23, 2012 Seoul National University SAT/SMT Proof Checking Verifying SAT Solver Code Future
More informationLecture 2: Symbolic Model Checking With SAT
Lecture 2: Symbolic Model Checking With SAT Edmund M. Clarke, Jr. School of Computer Science Carnegie Mellon University Pittsburgh, PA 15213 (Joint work over several years with: A. Biere, A. Cimatti, Y.
More informationDesign Diagnosis Using Boolean Satisfiability
Design Diagnosis Using Boolean Satisfiability Alexander Smith Andreas Veneris Anastasios Viglas University of Toronto University of Toronto University of Toronto Dept ECE Dept ECE and CS Dept CS Toronto,
More information3 SOLVING PROBLEMS BY SEARCHING
48 3 SOLVING PROBLEMS BY SEARCHING A goal-based agent aims at solving problems by performing actions that lead to desirable states Let us first consider the uninformed situation in which the agent is not
More informationN-Model Tests for VLSI Circuits
40th Southeastern Symposium on System Theory University of New Orleans New Orleans, LA, USA, March 16-18, 2008 MC3.6 N-Model Tests for VLSI Circuits Nitin Yogi and Vishwani D. Agrawal Auburn University,
More informationSAT-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 informationA 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 informationBerkMin: a Fast and Robust Sat-Solver
BerkMin: a Fast and Robust Sat-Solver Evgueni Goldberg Cadence Berkeley Labs(USA), Email: egold@cadence.com Yakov Novikov Academy of Sciences (Belarus), Email: nov@newman.bas-net.by Abstract We describe
More informationA new algorithm for incremental prime implicate generation
A new algorithm for incremental prime implicate generation Teow-Hin Ngair Institute of Systems Science National University of Singapore Kent Ridge, Singapore 0511 Republic of Singapore Abstract Traditional
More informationConstraint Satisfaction Problems
Constraint Satisfaction Problems CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2013 Soleymani Course material: Artificial Intelligence: A Modern Approach, 3 rd Edition,
More informationof 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
A Hybridised 3-SAT Algorithm Andrew Slater Automated Reasoning Project, Computer Sciences Laboratory, RSISE, Australian National University, 0200, Canberra Andrew.Slater@anu.edu.au April 9, 1999 1 Introduction
More informationPractical 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 informationChecking Satisfiability of a Conjunction of BDDs
48. Checking Satisfiability of a Conjunction of BDDs Robert Damiano Advanced Technology Group Synopsys, Inc. Hillsboro, OR robertd@synopsys.com James Kukula Advanced Technology Group Synopsys, Inc. Hillsboro,
More informationBoolean Satisfiability: The Central Problem of Computation
Boolean Satisfiability: The Central Problem of Computation Peter Kogge SAT Notre Dame CSE 34151: Theory of Computing: Fall 2017 Slide 1 (p. 299) SAT: Boolean Satisfiability wff: well-formed-formula constructed
More informationSome 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 informationHandout 9: Imperative Programs and State
06-02552 Princ. of Progr. Languages (and Extended ) The University of Birmingham Spring Semester 2016-17 School of Computer Science c Uday Reddy2016-17 Handout 9: Imperative Programs and State Imperative
More informationBoolean Representations and Combinatorial Equivalence
Chapter 2 Boolean Representations and Combinatorial Equivalence This chapter introduces different representations of Boolean functions. It then discusses the applications of these representations for proving
More informationTest Set Compaction Algorithms for Combinational Circuits
Proceedings of the International Conference on Computer-Aided Design, November 1998 Set Compaction Algorithms for Combinational Circuits Ilker Hamzaoglu and Janak H. Patel Center for Reliable & High-Performance
More informationBITCOIN MINING IN A SAT FRAMEWORK
BITCOIN MINING IN A SAT FRAMEWORK Jonathan Heusser @jonathanheusser DISCLAIMER JUST TO BE CLEAR.. This is research! Not saying ASICs suck I am not a cryptographer, nor SAT solver guy WTF REALISED PHD RESEARCH
More informationClone: Solving Weighted Max-SAT in a Reduced Search Space
Clone: Solving Weighted Max-SAT in a Reduced Search Space Knot Pipatsrisawat and Adnan Darwiche {thammakn,darwiche}@cs.ucla.edu Computer Science Department University of California, Los Angeles Abstract.
More informationPolynomial SAT-Solver Algorithm Explanation
1 Polynomial SAT-Solver Algorithm Explanation by Matthias Mueller (a.k.a. Louis Coder) louis@louis-coder.com Explanation Version 1.0 - December 1, 2013 Abstract This document describes an algorithm that
More informationSAT 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