Preprocessing in Pseudo-Boolean Optimization: An Experimental Evaluation

Size: px
Start display at page:

Download "Preprocessing in Pseudo-Boolean Optimization: An Experimental Evaluation"

Transcription

1 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

2 Motivation Preprocessing is a powerful tool in SAT solving: e.g. HyPre, NiVER, SatELite, ReVivAl, exthypre,... PBO is closely related to SAT However, preprocessing is almost non existent in PBO We propose to benefit from the advances in SAT preprocessing and use them in PBO In this talk, we will show how we can use HyPre and exthypre to preprocess a PBO instance

3 HyPre in PBO Initial PB Formula (1) (3) (4) Clausal Translate CNF Clauses HyPre Part to CNF formula Simplified CNF formula Cardinality + (2) PB Constraints (5) Simplify the PB Part If Eq. Variables (7) Translate to PB PB Part (6) Simplified Add Unit If fixed Clausal Clauses Variables Part (8) (9) Join Join

4 HyPre in PBO x1 V x2 V x3 ~x1 V x4 ~x2 V x4 ~x3 V x4

5 HyPre in PBO x1 V x2 V x3 x1 V x2 V x3 x1 V x2 V x3 x1 V x2 V x3 ~x3 V x4

6 Background (SAT and PBO) SAT (Boolean Satisfiability) CNF formula ϕ = x j SAT problem is to dedice if i ϕ i is satisfiable PBO (Pseudo-Boolean Optimization) PB constraints ϕ = j a jx j b Linear objective function f = j c jx j PBO problem is to find an assignment to x j such that all ϕ i are satisfied and the value of f is optimized

7 Background (PB Constraints) PB constraints can be divided into three categories: cardinality constraints: e.g. x 1 + x 2 + x 3 + x 4 2 clauses: e.g. x 1 + x 2 + x 3 1 general PB constraint: e.g. 7x 1 + 4x 2 + 5x 3 7 This categories form two distinct parts: The PB part is formed by the conjunction of cardinality constraints and general PB constraints The clausal part is formed by the conjunction of clauses

8 HyPre Preprocessor HyPre is based on Hyper-Binary Resolution (HypBinRes): (l 1... l n ) (l 1 y)... (l n 1 y) (y l n ) for n 2 In addition to HypBinRes, HyPre also simplifies the formula through Equality Reduction and Unit Propagation.

9 Initial PB Formula HyPre in PBO

10 HyPre in PBO Initial PB Formula (1) Clauses Clausal Part

11 HyPre in PBO Initial PB Formula (1) Clauses Clausal Part Cardinality + (2) PB Constraints PB Part

12 HyPre in PBO Initial PB Formula (1) (3) Clausal Translate Clauses Part to CNF CNF formula Cardinality + (2) PB Constraints PB Part

13 HyPre in PBO Initial PB Formula (1) (3) (4) Clausal Translate CNF Clauses HyPre Part to CNF formula Simplified CNF formula Cardinality + (2) PB Constraints PB Part

14 HyPre in PBO Initial PB Formula (1) (3) (4) Clausal Translate CNF Clauses HyPre Part to CNF formula Simplified CNF formula Cardinality + (2) PB Constraints (5) Simplify the PB Part If Eq. Variables PB Part

15 HyPre in PBO Initial PB Formula (1) (3) (4) Clausal Translate CNF Clauses HyPre Part to CNF formula Simplified CNF formula Cardinality + (2) PB Constraints PB Part (5) Simplify the PB Part (6) Add Unit Clauses If Eq. Variables If fixed Variables

16 HyPre in PBO Initial PB Formula (1) (3) (4) Clausal Translate CNF Clauses HyPre Part to CNF formula Simplified CNF formula Cardinality + (2) PB Constraints (5) Simplify the PB Part If Eq. Variables (7) Translate to PB PB Part (6) Simplified Add Unit If fixed Clausal Clauses Variables Part

17 HyPre in PBO Initial PB Formula (1) (3) (4) Clausal Translate CNF Clauses HyPre Part to CNF formula Simplified CNF formula Cardinality + (2) PB Constraints (5) Simplify the PB Part If Eq. Variables (7) Translate to PB PB Part (6) Simplified Add Unit If fixed Clausal Clauses Variables Part (8) (9) Join Join

18 exthypre Preprocessor exthypre is based on Extended Hyper Resolution (ExtHypRes), which is an extension of HypBinRes: (l 1 l 2... l n ) (l 1 α 1 ),..., (l n α n ) ( 1 i n (α i)) where α i for 1 i n are sub-clauses. exthypre produces new resolvent clauses that are added to the original formula

19 New graph representation of a CNF formula exthypre is applied through a new graph representation of a CNF formula: The idea behind this representation is to extend the binary implication graph for clauses of any size x1 {x3} x2 x1 V x2 V x3 x1 V x4 x4 x2 {x1} x3 x4 x2 V x4 x3 V x4 x3 {x2} x1

20 New graph representation of a CNF formula exthypre is applied through a new graph representation of a CNF formula: The idea behind this representation is to extend the binary implication graph for clauses of any size x1 {x3} x2 x1 V x2 V x3 x1 V x4 x4 x2 {x1} x3 x4 x2 V x4 x3 V x4 x3 {x2} x1

21 New graph representation of a CNF formula exthypre is applied through a new graph representation of a CNF formula: The idea behind this representation is to extend the binary implication graph for clauses of any size x1 {x3} x2 x1 V x2 V x3 x1 V x4 x4 x2 {x1} x3 x4 x2 V x4 x3 V x4 x3 {x2} x1

22 New graph representation of a CNF formula exthypre is applied through a new graph representation of a CNF formula: The idea behind this representation is to extend the binary implication graph for clauses of any size x1 {x3} x2 x1 V x2 V x3 x1 V x4 x4 x2 {x1} x3 x4 x2 V x4 x3 V x4 x3 {x2} x1

23 New graph representation of a CNF formula exthypre is applied through a new graph representation of a CNF formula: The idea behind this representation is to extend the binary implication graph for clauses of any size x1 {x3} x2 x1 V x2 V x3 x1 V x4 x4 x2 {x1} x3 x4 x2 V x4 x3 V x4 x3 {x2} x1

24 exthypre in PBO Enrich the graph representation: Information from cardinality constraints: Given x 1,..., x n b Suppose that n b + 1 literals are falsified Then if one of the b + 1 literals is falsified it implies that all the remaining b literals are satisfied x 1 + x 2 + x 3 + x 4 2 x 1 {x2} x 3 x 1 {x2} x 4 x 2 {x3} x 4 x 2 {x3} x 1 x 3 {x4} x 1 x 3 {x4} x 2 x 4 {x1} x 2 x 4 {x1} x 3

25 exthypre in PBO Enrich the graph representation: Information from general PB constraints: Probing on each literal of each general PB constraint 2x 1 + x 2 + x 3 2 x 1 x 2 x 1 x 3

26 Clause Selection Heuristics exthypre uses two fixed parameters: maximum size of the resolvent : 75 percentage of clauses to be considered: 10% Heuristics for clause selection: random - exthypre(75,10,r) larger clauses - exthypre(75,10,c) clauses with higher weight - exthypre(75,10,d)

27 Experimental Results (HyPre I) Average size of the 309 instances to be preprocessed by HyPre and average time of preprocessing Benchmark # Vars Constraints Cls Card PB Time aksoy 79 15, , logic-synthesis 74 1, , primes-dimacs-cnf 130 1, , routing , synthesis-ptl-cmos haplotype 8 19, ,186, ,

28 Experimental Results (HyPre II) Impact of HyPre preprocessing on bsolo, Pueblo and minisat+ Benchmark # bsolo Pueblo minisat+ w/o pre HyPre w/o pre HyPre w/o pre HyPre aksoy logic-synthesis primes-dimacs-cnf routing synthesis-ptl-cmos haplotype Total

29 Experimental Results (HyPre III) Details of some instances of HyPre preprocessing on bsolo Benchmark Instance bsolo w/o pre HyPre f20c10b 016 area delay fir07 area delay aksoy fir09 area opers fir08 trarea ac f20c10b 029 area delay fir07 area opers logic-synthesis prom2.pi routing s pb 64 64

30 Experimental Results (HyPre III) Details of some instances of HyPre preprocessing on Pueblo Benchmark Instance Pueblo w/o pre HyPre logic-synthesis sao2.b ssa primes-dimacs-cnf ssa ssa ssa routing s pb 64 64

31 Experimental Results (HyPre III) Details of some instances of HyPre preprocessing on minisat+ Benchmark primes-dimacs-cnf Instance minisat+ w/o pre HyPre ssa ssa ssa ssa

32 Experimental Results (exthypre I) Average time in seconds of exthypre preprocessing using the different clause selection heuristics Benchmark # exthypre exthypre exthypre (75,10,c) (75,10,d) (75,10,r) aksoy logic-synthesis primes-dimacs-cnf radar routing synthesis-ptl-cmos testset ttp

33 Experimental Results (exthypre II) Impact of exthypre preprocessing on bsolo Benchmark # w/o pre bsolo exthypre exthypre exthypre (75,10,c) (75,10,d) (75,10,r) aksoy logic-synthesis primes-dimacs-cnf radar routing synthesis-ptl-cmos testset ttp Total

34 Experimental Results (exthypre II) Details on some instances of exthypre preprocessing on bsolo: Benchmark aksoy primes-dimacs-cnf routing Instance w/o pre bsolo exthypre exthypre exthypre (75,10,c) (75,10,d) (75,10,r) fir07 area delay fir09 area opers fir09 area partials ii32b ii32e4.opb s pb s pb

35 Experimental Results (exthypre III) Impact of exthypre preprocessing and Pueblo Benchmark # w/o pre Pueblo exthypre exthypre exthypre (75,10,c) (75,10,d) (75,10,r) aksoy logic-synthesis primes-dimacs-cnf radar routing synthesis-ptl-cmos testset ttp Total

36 Experimental Results (exthypre III) Details on some instances of exthypre preprocessing on Pueblo: Benchmark logic-synthesis primes-dimacs-cnf Instance w/o pre Pueblo exthypre exthypre exthypre (75,10,c) (75,10,d) (75,10,r) C880.a sao2.b hanoi ii32c ii32e

37 Experimental Results (exthypre IV) Impact of exthypre preprocessing on minisat+ Benchmark # w/o pre minisat+ exthypre exthypre exthypre (75,10,c) (75,10,d) (75,10,r) aksoy logic-synthesis primes-dimacs-cnf radar routing synthesis-ptl-cmos testset ttp Total

38 Experimental Results (exthypre IV) Details on some instances of exthypre preprocessing on minisat+: Benchmark Instance w/o pre minisat+ exthypre exthypre exthypre (75,10,c) (75,10,d) (75,10,r) fir05 area delay aksoy matrix 5x matrix 5x logic-synthesis 5xp1.b primes-dimacs-cnf ii32d

39 Conclusions & Future Work Applying SAT techniques in PBO preprocessing lead to a few improvements This take us to believe that further research can lead to better results In the future we plan to improve the efficiency of our PBO version of exthypre and study different heuristics We also plan to incorporate other SAT techniques into PBO preprocessing

Preprocessing in Pseudo-Boolean Optimization: An Experimental Evaluation

Preprocessing 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 information

Learning Techniques for Pseudo-Boolean Solving

Learning 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 information

Improving Unsatisfiability-based Algorithms for Boolean Optimization

Improving 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 information

On Applying Cutting Planes in DLL-Based Algorithms for Pseudo-Boolean Optimization

On 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 information

Parallel Search for Boolean Optimization

Parallel 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 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 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

Towards More Effective Unsatisfiability-Based Maximum Satisfiability Algorithms

Towards 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 information

Effective Lower Bounding Techniques for Pseudo-Boolean Optimization

Effective 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 information

Satisfiability-Based Algorithms for 0-1 Integer Programming

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 information

CDCL SAT Solvers. Joao Marques-Silva. Theory and Practice of SAT Solving Dagstuhl Workshop. April INESC-ID, IST, ULisbon, Portugal

CDCL SAT Solvers. Joao Marques-Silva. Theory and Practice of SAT Solving Dagstuhl Workshop. April INESC-ID, IST, ULisbon, Portugal CDCL SAT Solvers Joao Marques-Silva INESC-ID, IST, ULisbon, Portugal Theory and Practice of SAT Solving Dagstuhl Workshop April 2015 The Success of SAT Well-known NP-complete decision problem [C71] The

More information

Full CNF Encoding: The Counting Constraints Case

Full 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 information

arxiv: v1 [cs.lo] 17 Oct 2013

arxiv: v1 [cs.lo] 17 Oct 2013 Effectiveness of pre- and inprocessing for CDCL-based SAT solving Andreas Wotzlaw, Alexander van der Grinten, and Ewald Speckenmeyer Institut für Informatik, Universität zu Köln, Pohligstr. 1, D-50969

More information

Optimally Solving the MCM Problem Using Pseudo-Boolean Satisfiability

Optimally Solving the MCM Problem Using Pseudo-Boolean Satisfiability Optimally Solving the MCM Problem Using Pseudo-Boolean Satisfiability Nuno P. Lopes Levent Aksoy Vasco Manquinho José Monteiro INESC-ID IST - TU Lisbon May 17, 2011 Abstract In this report, we describe

More information

MajorSat: A SAT Solver to Majority Logic

MajorSat: A SAT Solver to Majority Logic MajorSat: A SAT Solver to Majority Logic Speaker : Ching-Yi Huang Authors: Yu-Min Chou, Yung-Chih Chen *, Chun-Yao Wang, Ching-Yi Huang National Tsing Hua University, Taiwan * Yuan Ze University, Taiwan

More information

Search Pruning Conditions for Boolean Optimization

Search 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 information

Boolean lexicographic optimization: algorithms & applications

Boolean 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 information

8.1 Polynomial-Time Reductions

8.1 Polynomial-Time Reductions 8.1 Polynomial-Time Reductions Classify Problems According to Computational Requirements Q. Which problems will we be able to solve in practice? A working definition. Those with polynomial-time algorithms.

More information

Seminar decision procedures: Certification of SAT and unsat proofs

Seminar decision procedures: Certification of SAT and unsat proofs Seminar decision procedures: Certification of SAT and unsat proofs Wolfgang Nicka Technische Universität München June 14, 2016 Boolean satisfiability problem Term The boolean satisfiability problem (SAT)

More information

QuteSat. 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 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 information

Circuit versus CNF Reasoning for Equivalence Checking

Circuit versus CNF Reasoning for Equivalence Checking Circuit versus CNF Reasoning for Equivalence Checking Armin Biere Institute for Formal Models and Verification Johannes Kepler University Linz, Austria Equivalence Checking Workshop 25 Madonna di Campiglio,

More information

Restoring Circuit Structure From SAT Instances. Jarrod A. Roy, Igor L. Markov, and Valeria Bertacco University of Michigan at Ann Arbor

Restoring Circuit Structure From SAT Instances. Jarrod A. Roy, Igor L. Markov, and Valeria Bertacco University of Michigan at Ann Arbor Restoring Circuit Structure From SAT Instances Jarrod A. Roy, Igor L. Markov, and Valeria Bertacco University of Michigan at Ann Arbor Outline Motivation Preliminaries A Generic Circuit Detection Algorithm

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

W4231: Analysis of Algorithms

W4231: Analysis of Algorithms W4231: Analysis of Algorithms 11/23/99 NP-completeness of 3SAT, Minimum Vertex Cover, Maximum Independent Set, Boolean Formulae A Boolean formula is an expression that we can build starting from Boolean

More information

NiVER: Non Increasing Variable Elimination Resolution for Preprocessing SAT instances

NiVER: Non Increasing Variable Elimination Resolution for Preprocessing SAT instances NiVER: Non Increasing Variable Elimination Resolution for Preprocessing SAT instances Sathiamoorthy Subbarayan 1 and Dhiraj K Pradhan 2 1 Department of Innovation, IT-University of Copenhagen, Copenhagen,

More information

The First Evaluation of Pseudo-Boolean Solvers (PB 05)

The First Evaluation of Pseudo-Boolean Solvers (PB 05) Journal on Satisfiability, Boolean Modeling and Computation 2 (26) 13-143 The First Evaluation of Pseudo-Boolean Solvers (PB 5) Vasco M. Manquinho IST/INESC-ID, Technical University of Lisbon Rua Alves

More information

Integrating a SAT Solver with Isabelle/HOL

Integrating a SAT Solver with Isabelle/HOL Integrating a SAT Solver with / Tjark Weber (joint work with Alwen Tiu et al.) webertj@in.tum.de First Munich-Nancy Workshop on Decision Procedures for Theorem Provers March 6th & 7th, 2006 Integrating

More information

Provably Optimal Test Cube Generation using Quantified Boolean Formula Solving

Provably Optimal Test Cube Generation using Quantified Boolean Formula Solving Provably Optimal Test Cube Generation using Quantified Boolean Formula Solving ASP-DAC 2013 Albert-Ludwigs-Universität Freiburg Matthias Sauer, Sven Reimer, Ilia Polian, Tobias Schubert, Bernd Becker Chair

More information

New Encodings of Pseudo-Boolean Constraints into CNF

New Encodings of Pseudo-Boolean Constraints into CNF New Encodings of Pseudo-Boolean Constraints into CNF Olivier Bailleux, Yacine Boufkhad, Olivier Roussel olivier.bailleux@u-bourgogne.fr boufkhad@liafa.jussieu.fr roussel@cril.univ-artois.fr New Encodings

More information

Computability Theory

Computability Theory CS:4330 Theory of Computation Spring 2018 Computability Theory Other NP-Complete Problems Haniel Barbosa Readings for this lecture Chapter 7 of [Sipser 1996], 3rd edition. Sections 7.4 and 7.5. The 3SAT

More information

Search Pruning Conditions for Boolean Optimization

Search 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 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

An Experimental Evaluation of Conflict Diagnosis and Recursive Learning in Boolean Satisfiability

An 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 information

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution Foundations of AI 9. Predicate Logic Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution Wolfram Burgard, Andreas Karwath, Bernhard Nebel, and Martin Riedmiller 09/1 Contents Motivation

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

Effective CNF Encodings for the Towers of Hanoi

Effective 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 information

Lingeling Essentials POS 2014

Lingeling Essentials POS 2014 Lingeling Essentials Design and Implementation Aspects Armin Biere Johannes Kepler University Linz, Austria POS 2014 5th Workshop on Pragmatics of SAT 2014 SAT 2014 / FLoC 2014 Vienna Summer of Logic Vienna,

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

CNF Instances from the Software Package Installation Problem

CNF Instances from the Software Package Installation Problem CNF Instances from the Software Package Installation Problem Josep Argelich 1 and Inês Lynce 2 1 INESC-ID Rua Alves Redol 9, Lisboa, Portugal josep@sat.inesc-id.pt 2 INESC-ID and IST/TU Lisbon Rua Alves

More information

Trends in Constraint Programming. Frédéric BENHAMOU Narendra JUSSIEN Barry O SULLIVAN

Trends in Constraint Programming. Frédéric BENHAMOU Narendra JUSSIEN Barry O SULLIVAN Trends in Constraint Programming Frédéric BENHAMOU Narendra JUSSIEN Barry O SULLIVAN November 24, 2006 2 Contents FIRST PART. LOCAL SEARCH TECHNIQUES IN CONSTRAINT SATISFAC- TION..........................................

More information

SAT Solver Heuristics

SAT Solver Heuristics SAT Solver Heuristics SAT-solver History Started with David-Putnam-Logemann-Loveland (DPLL) (1962) Able to solve 10-15 variable problems Satz (Chu Min Li, 1995) Able to solve some 1000 variable problems

More information

Mixed Integer Linear Programming

Mixed Integer Linear Programming Mixed Integer Linear Programming Part I Prof. Davide M. Raimondo A linear program.. A linear program.. A linear program.. Does not take into account possible fixed costs related to the acquisition of new

More information

NP and computational intractability. Kleinberg and Tardos, chapter 8

NP and computational intractability. Kleinberg and Tardos, chapter 8 NP and computational intractability Kleinberg and Tardos, chapter 8 1 Major Transition So far we have studied certain algorithmic patterns Greedy, Divide and conquer, Dynamic programming to develop efficient

More information

Chapter 8. NP and Computational Intractability. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Chapter 8. NP and Computational Intractability. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. Chapter 8 NP and Computational Intractability Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. 1 Algorithm Design Patterns and Anti-Patterns Algorithm design patterns.

More information

Conditions for Non-Chronological Backtracking in Boolean Optimization

Conditions 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 information

Reasoning over Biological Networks using Maximum Satisfiability

Reasoning over Biological Networks using Maximum Satisfiability Reasoning over Biological Networks using Maximum Satisfiability João Guerra and Inês Lynce INESC-ID/Instituto Superior Técnico, Technical University of Lisbon, Portugal CP 2012, Québec João Guerra and

More information

A Stochastic Non-CNF SAT Solver

A Stochastic Non-CNF SAT Solver A Stochastic Non-CNF SAT Solver Rafiq Muhammad and Peter J. Stuckey NICTA Victoria Laboratory, Department of Computer Science and Software Engineering, The University of Melbourne, Victoria 3010, Australia

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

Effective Preprocessing with Hyper-Resolution and Equality Reduction

Effective Preprocessing with Hyper-Resolution and Equality Reduction Effective Preprocessing with Hyper-Resolution and Equality Reduction Fahiem Bacchus 1 and Jonathan Winter 1 Department of Computer Science, University Of Toronto, Toronto, Ontario, Canada [fbacchus winter]@cs.toronto.edu

More information

PBS: A Pseudo-Boolean Solver and Optimizer

PBS: 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 information

Faster SAT and Smaller BDDs via Common Function Structure

Faster SAT and Smaller BDDs via Common Function Structure Faster SAT and Smaller BDDs via Common Function Structure Fadi A. Aloul Igor L. Markov Karem A. Sakallah Technical Report December 10, 2001 THE UNIVERSITY OF MICHIGAN Computer Science and Engineering Division

More information

Faster SAT and Smaller BDDs via Common Function Structure

Faster SAT and Smaller BDDs via Common Function Structure Faster SAT and Smaller BDDs via Common Function Structure Fadi A. Aloul Igor L. Markov Karem A. Sakallah Technical Report December 12, 2001 THE UNIVERSITY OF MICHIGAN Computer Science and Engineering Division

More information

IEEE 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 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 information

Boolean Satisfiability Solving Part II: DLL-based Solvers. Announcements

Boolean 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 information

What's the difference between the entailment symbol with the equals vs the entailment symbol with one line? Single turnstile meaning

What's the difference between the entailment symbol with the equals vs the entailment symbol with one line? Single turnstile meaning Propositional connectives, satisfying values, Get expression from venn diagram Definitions (tautology, satisfiability, etc) and basic entailment and arrow rule 3-sat to 2-sat, turning a cnf into arrow

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

Blocked Literals are Universal

Blocked Literals are Universal Blocked Literals are Universal Marijn J.H. Heule 1, Martina Seidl 2, and Armin Biere 2 1 Department of Computer Science, The University of Texas at Austin, USA marijn@cs.utexas.edu 2 Institute for Formal

More information

Splatz SAT Solver POS 16

Splatz SAT Solver POS 16 Splatz SAT Solver Armin Biere Johannes Kepler Universität Linz Pragmatics of SAT 2016 POS 16 Université de Bordeaux Bordeaux, France Monday, 4th July, 2016 Motivation 1 What do you really want to have

More information

The log-support encoding of CSP into SAT

The log-support encoding of CSP into SAT The log-support encoding of CSP into SAT Marco Gavanelli 1 Dept. of Engineering, Ferrara University, WWW home page: http://www.ing.unife.it/docenti/marcogavanelli/ Abstract. Various encodings have been

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

Implementation of a Sudoku Solver Using Reduction to SAT

Implementation 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 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

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

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance. Algorithm Design Patterns and Anti-Patterns Chapter 8 NP and Computational Intractability Algorithm design patterns. Ex.! Greed. O(n log n) interval scheduling.! Divide-and-conquer. O(n log n) FFT.! Dynamic

More information

Lower Bounds and Upper Bounds for MaxSAT

Lower Bounds and Upper Bounds for MaxSAT Lower Bounds and Upper Bounds for MaxSAT Federico Heras, Antonio Morgado, and Joao Marques-Silva CASL, University College Dublin, Ireland Abstract. This paper presents several ways to compute lower and

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

Chapter 10 Part 1: Reduction

Chapter 10 Part 1: Reduction //06 Polynomial-Time Reduction Suppose we could solve Y in polynomial-time. What else could we solve in polynomial time? don't confuse with reduces from Chapter 0 Part : Reduction Reduction. Problem X

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

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

GRASP A New Search Algorithm for Satisfiability

GRASP 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 information

Yices 1.0: An Efficient SMT Solver

Yices 1.0: An Efficient SMT Solver Yices 1.0: An Efficient SMT Solver SMT-COMP 06 Leonardo de Moura (joint work with Bruno Dutertre) {demoura, bruno}@csl.sri.com. Computer Science Laboratory SRI International Menlo Park, CA Yices: An Efficient

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

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

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

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

Combinational Equivalence Checking Using Incremental SAT Solving, Output Ordering, and Resets

Combinational Equivalence Checking Using Incremental SAT Solving, Output Ordering, and Resets ASP-DAC 2007 Yokohama Combinational Equivalence Checking Using Incremental SAT Solving, Output ing, and Resets Stefan Disch Christoph Scholl Outline Motivation Preliminaries Our Approach Output ing Heuristics

More information

Minimum 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. 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 information

Symmetry Breaking for Pseudo-Boolean Formulas

Symmetry 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 information

Binary Clause Reasoning in QBF

Binary Clause Reasoning in QBF Binary Clause Reasoning in QBF Horst Samulowitz 1 and Fahiem Bacchus 1 Department of Computer Science, University Of Toronto, Toronto, Ontario, Canada [horst fbacchus]@cs.toronto.edu Abstract. Binary clause

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

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance. Algorithm Design Patterns and Anti-Patterns 8. NP and Computational Intractability Algorithm design patterns. Ex.! Greed. O(n log n) interval scheduling.! Divide-and-conquer. O(n log n) FFT.! Dynamic programming.

More information

Preprocessing in Incremental SAT

Preprocessing in Incremental SAT Preprocessing in Incremental SAT Alexander Nadel 1 Vadim Rivchyn 1,2 Ofer Strichman 2 alexander.nadel@intel.com rvadim@tx.technion.ac.il ofers@ie.technion.ac.il 1 Design Technology Solutions Group, Intel

More information

SAT and Termination. Nao Hirokawa. Japan Advanced Institute of Science and Technology. SAT and Termination 1/41

SAT and Termination. Nao Hirokawa. Japan Advanced Institute of Science and Technology. SAT and Termination 1/41 SAT and Termination Nao Hirokawa Japan Advanced Institute of Science and Technology SAT and Termination 1/41 given 9 9-grid like Sudoku Puzzle 1 8 7 3 2 7 7 1 6 4 3 4 5 3 2 8 6 fill out numbers from 1

More information

1 Inference for Boolean theories

1 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 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

Using Synthesis Techniques in SAT Solvers

Using 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 information

Practical SAT Solving

Practical SAT Solving Practical SAT Solving Lecture 5 Carsten Sinz, Tomáš Balyo May 22, 2018 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

Efficient Enumeration Algorithms for Constraint Satisfaction Problems

Efficient Enumeration Algorithms for Constraint Satisfaction Problems Efficient Enumeration Algorithms for Constraint Satisfaction Problems Henning and Ilka Schnoor Institut für Theoretische Informatik Leibniz Universität Hannover 2.10.2006 Efficient Enumeration Algorithms

More information

Giovanni De Micheli. Integrated Systems Centre EPF Lausanne

Giovanni De Micheli. Integrated Systems Centre EPF Lausanne Two-level Logic Synthesis and Optimization Giovanni De Micheli Integrated Systems Centre EPF Lausanne This presentation can be used for non-commercial purposes as long as this note and the copyright footers

More information

Linear Time Unit Propagation, Horn-SAT and 2-SAT

Linear Time Unit Propagation, Horn-SAT and 2-SAT Notes on Satisfiability-Based Problem Solving Linear Time Unit Propagation, Horn-SAT and 2-SAT David Mitchell mitchell@cs.sfu.ca September 25, 2013 This is a preliminary draft of these notes. Please do

More information

Modern SAT Solvers. Part B. Vienna Winter School on Verification. 9 February TU Vienna, Austria

Modern SAT Solvers. Part B. Vienna Winter School on Verification. 9 February TU Vienna, Austria Modern SAT Solvers Part B Vienna Winter School on Verification 9 February 2012 TU Vienna, Austria Armin Biere Institute for Formal Models and Verification Johannes Kepler University, Linz, Austria http://fmv.jku.at

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 Dissertação para obtenção do Grau de Mestre em Engenharia Informática e de Computadores Júri Presidente:

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

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 Dissertação para obtenção do Grau de Mestre em Engenharia Informática e de Computadores Júri Presidente:

More information

MINIMAXSAT: An Efficient Weighted Max-SAT Solver

MINIMAXSAT: An Efficient Weighted Max-SAT Solver Journal of Artificial Intelligence Research 31 (28) 1-32 Submitted 5/7; published 1/8 MINIMAXSAT: An Efficient Weighted Max-SAT Solver Federico Heras Javier Larrosa Albert Oliveras Technical University

More information

Formally Certified Satisfiability Solving

Formally 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 information

Where Can We Draw The Line?

Where Can We Draw The Line? Where Can We Draw The Line? On the Hardness of Satisfiability Problems Complexity 1 Introduction Objectives: To show variants of SAT and check if they are NP-hard Overview: Known results 2SAT Max2SAT Complexity

More information

Constraint Reasoning Part 2: SAT, PB, WCSP

Constraint Reasoning Part 2: SAT, PB, WCSP Constraint Reasoning Part 2: SAT, PB, WCSP Olivier ROUSSEL roussel@cril.univ-artois.fr CRIL-CNRS UMR 8188 Université d Artois Lens, France Tutorial ECAI 2012 Montpellier August, 22 2012 Constraint Reasoning

More information

8.1 Polynomial-Time Reductions

8.1 Polynomial-Time Reductions Algorithm Design Patterns and Anti-Patterns Analysis of Algorithms Algorithm design patterns. Ex. Greed. O(n 2 ) Dijkstra s SSSP (dense) Divide-and-conquer. O(n log n) FFT. Dynamic programming. O(n 2 )

More information