Generalized Micro-Structures for Non-Binary CSP

Similar documents
A Hybrid Tractable Class for Non-Binary CSPs

The Extendable-Triple Property: a new CSP Tractable Class beyond BTP

A new Evaluation of Forward Checking and its Consequences on Efficiency of Tools for Decomposition of CSPs

Revisiting the Limits of MAP Inference by MWSS on Perfect Graphs

Min-Max Message Passing and Local Consistency in Constraint Networks

Making Bound Consistency as Effective as Arc Consistency

Foundations of Symmetry Breaking Revisited Revised

Symmetry Definitions for Constraint Satisfaction Problems

Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 27 & July 2/4, 2012

Hybrid tractability of valued constraint problems

A Method for Generating All the Prime Implicants of Binary CNF Formulas

CLASSIFYING THE COMPLEXITY OF CONSTRAINTS USING FINITE ALGEBRAS

Disjunctive Temporal Reasoning in Partially Ordered Models of Time

Claw-free Graphs. III. Sparse decomposition

Constraint Symmetries

Quasi-parity and perfect graphs. Irena Rusu. L.R.I., U.R.A. 410 du C.N.R.S., bât. 490, Orsay-cedex, France

Symmetry Breaking using Value Precedence

arxiv: v1 [cs.ai] 16 Apr 2012

Triangle-free graphs that do not contain an induced subdivision of K 4 are 3-colorable

Parameterized Domination in Circle Graphs

Graph structure in polynomial systems: chordal networks

Interleaved Alldifferent Constraints: CSP vs. SAT Approaches

Chordal networks of polynomial ideals

CSP Properties for Quantified Constraints: Definitions and Complexity

Reasoning with Deterministic and Probabilistic graphical models Class 2: Inference in Constraint Networks Rina Dechter

On Markov Properties in Evidence Theory

Graph structure in polynomial systems: chordal networks

Undirected Graphical Models

Enumerating minimal connected dominating sets in graphs of bounded chordality,

Multi-Agent Systems. Bernhard Nebel, Felix Lindner, and Thorsten Engesser. Summer Term Albert-Ludwigs-Universität Freiburg

Introduction to Arti Intelligence

Constraint Satisfaction with Bounded Treewidth Revisited

The complexity of constraint satisfaction: an algebraic approach

Symmetries in CSP. Symmetries in CSP. Elena Sherman UNL, CSE. April 18, 2009

On the Average Complexity of Brzozowski s Algorithm for Deterministic Automata with a Small Number of Final States

ON COST MATRICES WITH TWO AND THREE DISTINCT VALUES OF HAMILTONIAN PATHS AND CYCLES

Propagation in CSP and SAT

Graphical Model Inference with Perfect Graphs

Datalog and Constraint Satisfaction with Infinite Templates

Theory of Computation Chapter 9

The computational complexity of dominance and consistency in CP-nets

Chapter 6 Constraint Satisfaction Problems

Part V. Intractable Problems

Learning arbitrary constraints at conflicts

Latin squares: Equivalents and equivalence

Discrete Applied Mathematics

UNAVOIDABLE INDUCED SUBGRAPHS IN LARGE GRAPHS WITH NO HOMOGENEOUS SETS

Symmetries of Symmetry Breaking Constraints

Partial characterizations of clique-perfect graphs II: diamond-free and Helly circular-arc graphs

On The Complexity and Completeness of Static Constraints for Breaking Row and Column Symmetry

CS 301: Complexity of Algorithms (Term I 2008) Alex Tiskin Harald Räcke. Hamiltonian Cycle. 8.5 Sequencing Problems. Directed Hamiltonian Cycle

Transposition Tables for Constraint Satisfaction

Breaking variable symmetry in almost injective problems

Temporal Constraint Networks

Flexible satisfaction

Study of symmetry in Constraint Satisfaction Problems? Belaid Benhamou. URA CNRS Universite de Provence,

Compiling Knowledge into Decomposable Negation Normal Form

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition.

Cartesian product of hypergraphs: properties and algorithms

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2)

On the hardness of losing weight

Distinguishing Number of Countable Homogeneous Relational Structures

The Necessity of Bounded Treewidth for Efficient Inference in Bayesian Networks

AUTOMATED REASONING. Agostino Dovier. Udine, October 2, Università di Udine CLPLAB

On disconnected cuts and separators

Global constraints and decompositions

Downloaded 03/01/17 to Redistribution subject to SIAM license or copyright; see

About the relationship between formal logic and complexity classes

Computational complexity theory

Applying Bayesian networks in the game of Minesweeper

On finding minimal w-cutset problem

(A 3 ) (A 1 ) (1) COMPUTING CIRCUMSCRIPTION. Vladimir Lifschitz. Department of Computer Science Stanford University Stanford, CA

Classical Complexity and Fixed-Parameter Tractability of Simultaneous Consecutive Ones Submatrix & Editing Problems

Autour des Triangles Cassés

Combining Symmetry Breaking with Other Constraints: lexicographic ordering with sums

Complexity of conservative Constraint Satisfaction Problems

Constraint Satisfaction 101

DISTINGUISHING PARTITIONS AND ASYMMETRIC UNIFORM HYPERGRAPHS

Analogies and discrepancies between the vertex cover number and the weakly connected domination number of a graph

On the Use of an ATMS for Handling Conflicting Desires

MANUEL BODIRSKY AND JAN KÁRA

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, Notes 22 for CS 170

Induced Subgraph Isomorphism on proper interval and bipartite permutation graphs

Counting Matrix Partitions of Graphs

Even Cycles in Hypergraphs.

Supermodular Functions and the Complexity of Max CSP

HOW IS A CHORDAL GRAPH LIKE A SUPERSOLVABLE BINARY MATROID?

Dynamic Symmetry Breaking Constraints

NP and Computational Intractability

Consistency restoration and explanations in dynamic CSPs Application to configuration

Consistency algorithms

4-coloring P 6 -free graphs with no induced 5-cycles

Symmetries of Symmetry Breaking Constraints

Wieland drift for triangular fully packed loop configurations

Berge Trigraphs. Maria Chudnovsky 1 Princeton University, Princeton NJ March 15, 2004; revised December 2, Research Fellow.

NP and Computational Intractability

A new tractable subclass of the rectangle algebra

Orientations of Simplices Determined by Orderings on the Coordinates of their Vertices. September 30, 2018

NP-Complete Problems. Complexity Class P. .. Cal Poly CSC 349: Design and Analyis of Algorithms Alexander Dekhtyar..

Extremal Graphs Having No Stable Cutsets

Transcription:

Generalized Micro-Structures for Non-Binary CSP Achref El Mouelhi LSIS - UMR CNRS 7296 Aix-Marseille Université Avenue Escadrille Normandie-Niemen 13397 Marseille Cedex 20 (France) achref.elmouelhi@lsis.org Abstract. In [6], a new approach has been introduced for improving the solving of binary CSPs. This approach is based on the notion of micro-structure for binary CSPs. This formalism was used to analyze the theoretical complexity of binary CSPs. In this paper, we generalize the notion of micro-structure to non-binary CSPs in order to retain the tractability as in the binary case. 1 Preliminaries Constraint Satisfaction Problems (CSPs [10]) provide an efficient way of formulating problems in computer science, especially in Artificial Intelligence such as scheduling, temporal reasoning, planning, graph problems, just to name a few. Formally, a constraint satisfaction problem is a triple (X, D, C), where X = {x 1,..., x n } is a set of variables, D = (D x1,..., D xn ) is a list of finite domains of values, one per variable, and C = {C 1,..., C e } is a finite set of constraints. Each constraint C i is a couple (S(C i ), R(C i )), where S(C i ) = {x i1,..., x ik } X is the scope of c i, and R(C i ) D xi1 D xik is its relation. The arity of C i is S(C i ). A CSP is called binary if all constraints are of arity 2 (we denote C ij the binary constraint whose scope is S(C ij ) = {x i, x j }). Otherwise, a CSP is said to be n-ary. A consistent assignment is an assignment that does not violate the constraints. A solution is a complete assignment that satisfies all constraints. Testing whether a CSP has a solution is known to be NP-complete. We can associate to a binary CSP a graph called a micro-structure which is defined as follows: Definition 1 (micro-structure [6]) Given a binary CSP P = (X, D, C), the micro-structure of P is the undirected graph µ(p ) = (V, E) with: V = {(x i, v i ) : x i X, v i D xi }, E = { {(x i, v i ), (x j, v j )} i j, C ij / C or C ij C, (v i, v j ) R(C ij )} The micro-structure was introduced by Jégou in order to detect new tractable classes for CSP based on graph theory. In [2], Cohen showed that the class of binary CSPs with triangulated complement of micro-structure is tractable and arc-consistency is a decision procedure. This work was supported by the French National Research Agency under grant TUPLES (ANR-2010-BLAN-0210).

After that, Jégou and al. in [8] presented new results on the effectiveness of classical algorithms when the number of maximal cliques in graph of microstructure can be bounded by a polynomial. Therefore, the goal of this report is to generalize the definition of microstructure to non-binary CSPs. 2 Generalized Micro-Structures The first extension of the notion of micro-structure to non-binary CSPs was proposed by Cohen in [2]: this generalization is based on hypergraphs [3]. In contrast, our generalisations are inspired by technical methods of conversion between non-binary and binary CSPs [12, 1]. Then, our micro-structure are a simple undirected graph obtained by using binary encoding based on graphic representation of non-binary CSPs: the well known methods are the dual encoding (also called dual representation), hidden transformation (also called hidden variable representation) and mixed encoding. 2.1 Generalized micro-structure based on dual representation The dual encoding was introduced by Dechter and Pearl in [4] and is based on the dual graph representation (also called intergraph in [5, 7] or line graph in graph theory) which comes from the relational database. In this encoding, the constraints of the original problem become variables (also called dual variables). The domain of each new variable is exactly the set of tuples allowed by the original constraint. We define a constraint between two dual variables if the original constraints share at least one variable. Definition 2 (generalized micro-structure based on dual representation) Given a CSP P = (X, D, C) (not necessarily binary), the generalized microstructure of P is the undirected graph µ Gd (P ) = (V, E) with: V = {(C i, t i ) : C i C, t i R(C i )}, E = { {(C i, t i ), (C j, t j )} i j, t i [S(C i ) S(C j )] = t j [S(C i ) S(C j )]} As for the micro-structure, there is a direct relationship between cliques and solutions of CSPs: Theorem 1 A CSP P has a solution iff µ Gd (P ) has a clique of size e. Proof: By construction, µ Gd (P ) is e-partite, and any clique contains at most one vertex (C i, t i ) per constraint C i C. Hence the e-cliques of µ Gd (P ) correspond exactly to its cliques with one vertex (C i, t i ) per constraint C i C. Now by construction of µ Gd (P ) again, any two vertices (C i, t i ), (C j, t j ) joined by an edge (in particular, in some clique) satisfy t i [S(C i ) S(C j )] = t j [S(C i ) S(C j )]. Hence all t i s in a clique join together, and it follows that the e-cliques of µ Gd (P ) correspond exactly to tuples t which are joins of one allowed tuple per constraint, that is, to solutions of P. The example below will be used throughout the paper: Example 1 The figure 1 presents a CSP P = (X, D, C) with : X = {x 1, x 2, x 3, x 4, x 5 }, D = (D x1, D x2, D x3, D x4, D x5 ) with

D x1 = {a, a }, D x2 = {b}, D x3 = {c}, D x4 = {d, d } and D x5 = {e}. C = {C 1, C 2, C 3, C 4 } is a set of four constraints with S(C 1 ) = {x 1, x 2 }, S(C 2 ) = {x 2, x 3, x 5 }, S(C 3 ) = {x 3, x 4, x 5 } and S(C 4 ) = {x 2, x 5 }. The relations associated to the previous constraints are given by these tables: R(C 1 ) x 1 x 2 a b a b R(C 2 ) x 2 x 3 x 5 b c e R(C 3 ) x 3 x 4 x 5 c d e c d e R(C 4 ) x 2 x 5 b e The generalised micro-structure based on dual encoding of the last example is shown in figure 1. Fig. 1. Generalized micro-structure built by using dual representation. We have four constraints, then e = 4. Thanks to Theorem 1, a solution of P is a clique of size 4, e.g. (ab, bce, be, cde). The generalized micro-structure based on minimal intergraph [5, 7] is similar to generalized micro-structure based on dual encoding because the deleted edges in the minimal intergraph will be added by the relation t i [S(C i ) S(C j )] = t j [S(C i ) S(C j )]. 2.2 Generalized micro-structure based on hidden transformation The hidden variable encoding was inspired by Peirce [9] (cited in [11]). In hidden transformation, the set of variables contains the original variables plus the set of dual variables. There is a binary constraint between a dual variable and original variable if the original variable belongs to the scope of dual variable [12]. Definition 3 (generalized micro-structure based on hidden transformation) Given a CSP P = (X, D, C), the generalized micro-structure based on hidden transformation of P is the undirected graph µ Gh (P ) = (V, E) with: V = S 1 S 2 S 1 = {(C i, t i ) : C i C, t i R(C i )}, S 2 = {(x j, v j ) : x j X, v j D xj }, E = { {(C i, t i ), (x j, v j )} either x j S(C i ) and v j = t i [x j ] or x j / S(C i )}

We now turn to relationship between bicliques and solutions of CSPs. Before that, we should recall that a biclique is a complete bipartite graph, i.e. a bipartite graph in which every vertex of the first set is connected to all vertices of the second set. Proposition 1 In a generalized micro-structure, a K n,e biclique with e tuples, such that no two tuples belong to the same constraint, cannot contain two different values of the same variable. Proof: We assume that a K n,e biclique with e tuples, such that no two tuples belong to the same constraint, can contain two different values v j and v j of the same variable x j. Therefore, there is at least a constraint C i such that x j S(C i ). Thus, t i [x j ] = v j, v j or another v j and in all three cases, the assumption is false because t i cannot be connected to two different values of the same variable. Proposition 2 In a generalized micro-structure, a K n,e biclique with n values, such that no two values belong to the same domain, cannot contain two different tuples of the same constraint. Proof: We assume that a K n,e biclique with n values, such that no two values belong to the same variable, can contain two different tuples t i and t i of the same constraint C i. Therefore, there is at least a variable x j such that t i [x j ] t i [x j]. If t i [x j ] = v j and t i [x j] = v j must belong to the same biclique. Thus, the assumption is false because we cannot have two values of a same variable. Using these two properties, we can deduce the following theorem : Theorem 2 Given a CSP P = (X, D, C) and µ Gh (P ) its generalized microstructure, P has a solution iff µ Gh (P ) has a K n,e biclique with n values and e tuples such that no two values belong to the same domain and no two tuples belong to the same constraint. Proof: A K n,e biclique with n values and e tuples such that no two values belong to the same domain and no two tuples belong to the same constraint correpond to a consistent assignment which satisfies all constraints. Figure 2 represents the generalized micro-structure based on hidden transformation of the CSP of example 1. Fig. 2. Generalized micro-structure built by using hidden variable. Based on the previous example, we can easily see that a biclique does not necessarily correspond to a solution. Although, {a, a, b, c, e, ab, ab, bce, be} is K 5,4 biclique but it is not a solution. Contrary to {a, b, c, d, e, ab, bce, be, cde} that is a K 5,4 biclique and is a solution of P. Then, the set of solutions is not equivalent to the set of bicliques. This is due to the manner which the graph of micro-structure is completed. For the

next generalization, we will propose another manner to complete the graph of micro-structure: this new way of representation can also be deduced from hidden encoding. 2.3 Generalized micro-structure based on mixed encoding We finally turn to the last interesting method of translation which is called mixed encoding. It allows us to connect the dual variables to the original variables, two tuples of two different constraints and two values of two different variables. In other words, it uses at the same time dual encoding and hidden variable encoding. More description is given by the following definition. Definition 4 (generalized micro-structure based on mixed encoding) Given a CSP P = (X, D, C), the generalized micro-structure based on mixed encoding of P is the undirected graph µ Gm (P ) = (V, E) with: V = S 1 S 2 S 1 = {(C i, t i ) : C i C, t i R(C i )}, S 2 = {(x j, v j ) : x j X, v j D xj }, E = E 1 E 2 E 3 E 1 = { {(C i, t i ), (C j, t j )} i j, t i [S(C i ) S(C j )] = t j [S(C i ) S(C j )]} E 2 = { {(C i, t i ), (x j, v j )} either x j S(C i ) and v j = t i [x j ] or x j / S(C i )} E 3 = { {(x i, v i ), (x j, v j )} i j and x i x j } The generalized micro-structure based on mixed encoding of the CSP of example 1 is shown in figure 3. Fig. 3. Generalized micro-structure built by using mixed encoding. Proposition 3 In a generalized micro-structure, a K n+e clique cannot contain more than n values where each pair of values derived from two different variables. Proof: We assume that proposition 3 is false, then a K n+e clique must contain two values v i and v i of the same variable x j. Thus, the corresponding vertices to v i and v i cannot be adjacent and cannot belong to the same clique. Proposition 4 In a generalized micro-structure, a K n+e clique cannot contain more than e tuples where each couple of tuples derived from two different constraint.

Proof: (similar to the previous proof) According to the last properties, there is a strong relationship between cliques and solutions of CSPs: Theorem 3 A CSP P has a solution iff µ Gm (P ) has a clique of size n + e. Proof: In a generalized micro-structure based on mixed encoding, a K n+e clique correspond to a consistent assignment of n variables which satisfies e constraints (based on the two previous propositions). Then, it is a solution to P. The first micro-structure is exactly the micro-structure of the dual CSP, but the second and the last representations correspond neither to the micro-structure of hidden CSP nor to the micro-structure of a mixed CSP because of the way to complete these two graphs. 3 Conclusion We have investigated the different binary representation of n-ary CSPs in order to define a generalization of micro-structure for non-binary CSPs. The first perspective is to check whether the results in [8] can be extended to non-binary CSPs represented by one of this micro-structure. The second aims to provide formal frameworks for studying properties on the complexity of n-ary CSPs as with the binary case. References 1. Fahiem Bacchus, Xinguang Chen, Peter van Beek, and Toby Walsh. Binary vs. non-binary constraints. AI, pages 1 37, 2002. 2. David A. Cohen. A New Classs of Binary CSPs for which Arc-Constistency Is a Decision Procedure. In CP, pages 807 811, 2003. 3. David A. Cohen, Peter Jeavons, Christopher Jefferson, Karen E. Petrie, and Barbara M. Smith. Symmetry definitions for constraint satisfaction problems. Constraints, 11(2-3):115 137, 2006. 4. R. Dechter and J. Pearl. Network-based heuristics for constraint satisfaction problems. Artificial Intelligence, 34:1 38, 1987. 5. P. Jégou. Contribution à l étude des problèmes de satisfaction de contraintes : Algorithmes de propagation et de résolution Propagation de contraintes dans les réseau dynamiques. PhD thesis, Université des Sciences et Techniques du Languedoc, January 1991. 6. P. Jégou. Decomposition of Domains Based on the Micro-Structure of Finite Constraint Satisfaction Problems. In AAAI, pages 731 736, 1993. 7. P. Jégou. On the Consistency of General Constraint-Satisfaction Problems. In AAAI, pages 114 119, 1993. 8. Achref El Mouelhi, Philippe Jégou, Cyril Terrioux, and Bruno Zanuttini. On the efficiency of backtracking algorithms for binary constraint satisfaction problems. In ISAIM, January 2012. 9. C.S. Peirce, C. Hartshorne, and P. Weiss. Collected Papers of Charles Sanders Peirce. Number vol. 3. Harvard University Press, 1933. 10. F. Rossi, P. van Beek, and T. Walsh. Handbook of Constraint Programming. Elsevier, 2006. 11. Francesca Rossi, Charles J. Petrie, and Vasant Dhar. On the equivalence of constraint satisfaction problems. In ECAI, pages 550 556, 1990. 12. K. Stergiou and T. Walsh. Encodings of Non-Binary Constraint Satisfaction Problems. In AAAI, pages 163 168, 1999.