Making Path-Consistency Stronger for SAT Pavel Surynek Faculty of Mathematics and Physics Charles University in Prague Czech Republic.

Slides:



Advertisements
Similar presentations
Exploiting SAT solvers in unbounded model checking
Advertisements

Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic.
Projection Global Consistency: Application in AI Planning Pavel Surynek Charles University, Prague Czech Republic.
Maintaining Arc-consistency over Mutex Relations in Planning Graphs during Search Pavel Surynek Roman Barták Charles University, Prague Czech Republic.
Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
Solving Difficult SAT Instances Using Greedy Clique Decomposition Pavel Surynek Faculty of.
The Theory of NP-Completeness
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
On the complexity of orthogonal compaction maurizio patrignani univ. rome III.
February 23, 2015CS21 Lecture 201 CS21 Decidability and Tractability Lecture 20 February 23, 2015.
Graphs 4/16/2017 8:41 PM NP-Completeness.
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 21 Instructor: Paul Beame.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
Computability and Complexity 16-1 Computability and Complexity Andrei Bulatov NP-Completeness.
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
The Theory of NP-Completeness
NP-Complete Problems Problems in Computer Science are classified into
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
Analysis of Algorithms CS 477/677
NP-Completeness (2) NP-Completeness Graphs 4/17/2017 6:25 AM x x x x x
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Complexity ©D.Moshkovitz 1 Paths On the Reasonability of Finding Paths in Graphs.
Clique Cover Cook’s Theorem 3SAT and Independent Set
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Compact Representations of Cooperative Path-Finding as SAT Based on Matchings in Bipartite Graphs Pavel Surynek presented by Filip Dvořák Faculty of Mathematics.
MCS 312: NP Completeness and Approximation algorithms Instructor Neelima Gupta
Lecture 22 More NPC problems
Theory of Computation, Feodor F. Dragan, Kent State University 1 NP-Completeness P: is the set of decision problems (or languages) that are solvable in.
Tractable Class of a Problem of Goal Satisfaction in Mutual Exclusion Network Pavel Surynek Faculty of Mathematics and Physics Charles University, Prague.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Techniques for Proving NP-Completeness Show that a special case of the problem you are interested in is NP- complete. For example: The problem of finding.
Unit 9: Coping with NP-Completeness
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
1 Chapter 34: NP-Completeness. 2 About this Tutorial What is NP ? How to check if a problem is in NP ? Cook-Levin Theorem Showing one of the most difficult.
Domain-Dependent View of Multiple Robots Path Planning Pavel Surynek Charles University, Prague Czech Republic.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
CSE 589 Part V One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important. Bertrand Russell.
NPC.
CSC 413/513: Intro to Algorithms
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
SUBSET-SUM Instance: A set of numbers denoted S and a target number t.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
 2005 SDU Lecture15 P,NP,NP-complete.  2005 SDU 2 The PATH problem PATH = { | G is a directed graph that has a directed path from s to t} s t
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The Theory of NP-Completeness
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
Chapter 10 NP-Complete Problems.
Richard Anderson Lecture 26 NP-Completeness
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness Proofs
Richard Anderson Lecture 26 NP-Completeness
Hard Problems Introduction to NP
(xy)(yz)(xz)(zy)
NP-Completeness Yin Tat Lee
Where Can We Draw The Line?
ICS 353: Design and Analysis of Algorithms
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
Richard Anderson Lecture 25 NP-Completeness
NP-Complete Problems.
CS 3343: Analysis of Algorithms
NP-Completeness Yin Tat Lee
Lecture 24 Classical NP-hard Problems
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Local Consistency and SAT-Solvers
Lecture 23 NP-Hard Problems
Presentation transcript:

Making Path-Consistency Stronger for SAT Pavel Surynek Faculty of Mathematics and Physics Charles University in Prague Czech Republic

Outline of the talk Motivation SAT problems Constraint model of SAT and Path-consistency Modification of Path-consistency Complexity and propagation algorithm Experimental evaluation  propagation strength comparison  comparison on SAT preprocessing CSCLP 2008 Pavel Surynek

Motivation Local consistencies  local inference often too weak for SAT  arc-consistency, path-consistency, i,j-consistency insignificant gain in comparison with unit-propagation expensive propagation w.r.t. inference strength Global consistencies (global constraints)  strong global inference often significant simplification of the problem  no explicit global constraints in SAT Consistency based on structural properties  exploit structure for global propagation in SAT CSCLP 2008 Pavel Surynek

Boolean Satisfaction Problem (SAT) A Boolean formula is given - variables can take either a value true or false The task is to find valuation of variables such that the formula is satisfied  or decide that no such valuation exists Conjunctive normal form (CNF) - standard form of the input formula  variables: x 1,x 2,x 3,...  literals: x 1,  x 1,x 2,  x 2,... variable or its negation  clauses: (x 1   x 2   x 3 )... disjunction of literals  formula: (x 1   x 2 )  (x 1  x 2   x 3 )... conjunction of clauses CSCLP 2008 Pavel Surynek example: x = true y = false example: (  x   y)  (x   y) example: p cnf

SAT as CSP: Literal encoding model (X,D,C)  X... variables ↔ clauses  D... variable domains ↔ literals  C... constraints ↔ values standing for complementary literals are forbidden Consider SAT CSP model as an undirected graph  vertices ↔ values in domains, edges ↔ allowed pairs of values (not all shown in the example) V (  x1   x2) x1x1 x2x2 x1x1 x2x2 x2x2 x3x3 x2x2 x3x3 x3x3 x1x1 x3x3 x1x1 x1Vx2x1Vx2 x1Vx2x1Vx2 x2Vx3x2Vx3 x2Vx3x2Vx3 x3Vx1x3Vx1 x3Vx1x3Vx1     Constraint Model for SAT CSCLP 2008 Pavel Surynek example: V (  x1   x2),V (x1  x2),... example: V (  x1   x2)  {  x 1,  x 2 } example: V (  x1   x2) =  x 1 and V (x1  x2) = x 1 is forbidden

Let us have a sequence of variables (path)  pair of values is path-consistent w.r.t. to the sequence if there is a path between them in the graph that uses the edges between neighboring variables in the sequence Ignores constraints not between variables neighboring in the sequence of variables x1x1 x2x2 x1x1 x2x2 x2x2 x3x3 x2x2 x3x3 x3x3 x1x1 x3x3 x1x1 x1Vx2x1Vx2 x1Vx2x1Vx2 x2Vx3x2Vx3 x2Vx3x2Vx3 x3Vx1x3Vx1 x3Vx1x3Vx1     Path-Consistency for SAT: a graph interpretation CSCLP 2008 Pavel Surynek

Modified Path-Consistency for SAT Deduce more information from constraints  decompose values into disjoint sets (called layers... L 1, L 2,...)  deduce more information from constraints - calculate maximum numbers of visits by a path in layers Stronger restriction on paths → stronger propagation CSCLP 2008 Pavel Surynek x1x1 x2x2 x1x1 x2x2 x2x2 x3x3 x2x2 x3x3 x3x3 x1x1 x3x3 x1x1 x1Vx2x1Vx2 x1Vx2x1Vx2 x2Vx3x2Vx3 x2Vx3x2Vx3 x3Vx1x3Vx1 x3Vx1x3Vx1     L1L1 L2L2 path ending in this vertex must not visit L 1 more than two times

NP-Completeness of Modified Path-Consistency Enforcing modified path-consistency is difficult (NP-complete) Theorem: Existence of a Hamiltonian path in a graph is reducible to the existence of the path respecting maximum numbers of visits. Main idea of the proof: G=(V,E), where V={v 1,v 2,...,v n } CSCLP 2008 Pavel Surynek (v 1,v 2 ) (v 1,v 1 ) (v 1,v n ) (v 2,v 2 ) (v 2,v 1 ) (v 2,v n ) (v n,v 2 ) (v n,v 1 ) (v n,v n )... (v i,v k ) (v j,v k+1 ) {v i,v j }  E L1L1 L2L2 LnLn

Approximation Algorithm We need to relax from the exact enforcing the modified path-consistency We use a variant of Dijkstra’s single-source shortest path algorithm  for each vertex we calculate the lower bound of number of visits in layers  if the lower bound of visits in L i for the vertex x is k then every path starting in the original vertex and ending in x visits L i at least k-times  lower bounds allow us to check violation of the maximum number of visits → some paths may become forbidden CSCLP 2008 Pavel Surynek

Experimental Evaluation: propagation strength of PC and MPC Comparison of the number of filtered pairs of values  several benchmark problems from the SAT Library  comparison of PC and modified PC enforced by approximation algorithm  on some problems modified PC is significantly stronger  times were slightly higher for modified PC CSCLP 2008 Pavel Surynek SAT Problem Number of variables Number of clauses Pairs filtered by standard PC Pairs filtered by modified PC bw_large.a hanoi huge jnh logistics.a medium par8-1-c par8-2-c par8-3-c par16-1-c par16-2-c par16-3-c ssa0432/ ssa2670/ ssa2670/ ssa7552/ ssa7552/

Experimental Evaluation: PC and MPC on SAT preprocessing Improvement ratio gained by preprocessing of SAT problems by modified PC in comparison with PC  the number of decision steps was measured  on some problems modified PC has a good effect CSCLP 2008 Pavel Surynek Problem#variables#clausesHaifaSatMinisat2Rsat_1_03zChaff bw_large.a hanoi hanoi huge jnh logistics.a medium par8-1-c par8-2-c par8-3-c par16-1-c par16-2-c par16-3-c ssa ssa ssa ssa ssa

Conclusions and Future Work We proposed a modified variant of path-consistency We are trying to exploit global structural properties of the problem Experimental evaluation indicates some advantages of modified path-consistency in comparison with the standard version There are still many open questions for future work:  experimental evaluation on standard CSPs  more competitive evaluation with SAT solvers  better approximation algorithm, tractable cases CSCLP 2008 Pavel Surynek