Tractable Symmetry Breaking Using Restricted Search Trees Colva M. Roney-Dougal, Ian P. Gent, Tom Kelsey, Steve Linton Presented by: Shant Karakashian.

Slides:



Advertisements
Similar presentations
Symmetry Definitions for Constraint Satisfaction Problems Dave Cohen, Peter Jeavons, Chris Jefferson, Karen Petrie and Barbara Smith.
Advertisements

Chapter 5: Tree Constructions
Problems and Their Classes
Representing Boolean Functions for Symbolic Model Checking Supratik Chakraborty IIT Bombay.
Lecture 24 MAS 714 Hartmut Klauck
1 Matching Polytope x1 x2 x3 Lecture 12: Feb 22 x1 x2 x3.
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Exploiting Symmetry in Planning Maria Fox Durham Planning Group University of Durham, UK.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Backtrack Algorithm for Listing Spanning Trees R. C. Read and R. E. Tarjan (1975) Presented by Levit Vadim.
Approximation, Chance and Networks Lecture Notes BISS 2005, Bertinoro March Alessandro Panconesi University La Sapienza of Rome.
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Concept of Completeness and hardness for a complexity class Definition.
Playing Fair at Sudoku Joshua Cooper USC Department of Mathematics.
Image Indexing and Retrieval using Moment Invariants Imran Ahmad School of Computer Science University of Windsor – Canada.
Train DEPOT PROBLEM USING PERMUTATION GRAPHS
Introduction to Symmetry Handbook of Constraint Programming, Chapter 10 Presentation by: Robert Woodward Advanced CP, Fall
A First Practical Algorithm for High Levels of Relational Consistency Shant Karakashian, Robert Woodward, Christopher Reeson, Berthe Y. Choueiry & Christian.
This time: Outline Game playing The minimax algorithm
Maths of Constraint Satisfaction, Oxford, March 2006 Constraint Programming Models for Graceful Graphs Barbara Smith.
Branch and Bound Similar to backtracking in generating a search tree and looking for one or more solutions Different in that the “objective” is constrained.
Anagh Lal Monday, April 14, Chapter 9 – Tree Decomposition Methods Anagh Lal CSCE Advanced Constraint Processing.
CPSC 689: Discrete Algorithms for Mobile and Wireless Systems Spring 2009 Prof. Jennifer Welch.
1 Trees. 2 Outline –Tree Structures –Tree Node Level and Path Length –Binary Tree Definition –Binary Tree Nodes –Binary Search Trees.
Lists A list is a finite, ordered sequence of data items. Two Implementations –Arrays –Linked Lists.
Validating Streaming XML Documents Luc Segoufin & Victor Vianu Presented by Harel Paz.
Foundations of Constraint Processing, Fall 2005 Sep 20, 2005BT: A Theoretical Evaluation1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
1 Shira Zucker Ben-Gurion University of the Negev Advisors: Prof. Daniel Berend Prof. Ephraim Korach Anticoloring for Toroidal Grids.
25/06/2015Marius Mikucionis, AAU SSE1/22 Principles and Methods of Testing Finite State Machines – A Survey David Lee, Senior Member, IEEE and Mihalis.
01/27/2005 Combinationality of cyclic definitions EECS 290A – Spring 2005 UC Berkeley.
Constraint Systems Laboratory 11/22/2005Zheng – Comprehensive1 Survey of Techniques for Detecting and Exploiting Symmetry in Constraint Satisfaction Problems.
Algorithm Animation for Bioinformatics Algorithms.
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE The trees.
Applied Discrete Mathematics Week 10: Equivalence Relations
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
“On an Algorithm of Zemlyachenko for Subtree Isomorphism” Yefim Dinitz, Alon Itai, Michael Rodeh (1998) Presented by: Masha Igra, Merav Bukra.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Euler paths and tours.
Modelling for Constraint Programming Barbara Smith CP 2010 Doctoral Programme.
CSCI 115 Chapter 7 Trees. CSCI 115 §7.1 Trees §7.1 – Trees TREE –Let T be a relation on a set A. T is a tree if there exists a vertex v 0 in A s.t. there.
Discrete Structures Lecture 12: Trees Ji Yanyan United International College Thanks to Professor Michael Hvidsten.
5.5.3 Rooted tree and binary tree  Definition 25: A directed graph is a directed tree if the graph is a tree in the underlying undirected graph.  Definition.
CP Summer School Modelling for Constraint Programming Barbara Smith 4. Combining Viewpoints, Modelling Advice.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View BDDs.
ICS 253: Discrete Structures I Induction and Recursion King Fahd University of Petroleum & Minerals Information & Computer Science Department.
1 Constraint Symmetry and Solution Symmetry Presented by Beau M. Christ Symmetry in CSP’s Spring 2010 Presented by Beau M. Christ Symmetry in CSP’s Spring.
Tries Data Structure. Tries  Trie is a special structure to represent sets of character strings.  Can also be used to represent data types that are.
Math 3121 Abstract Algebra I Lecture 7: Finish Section 7 Sections 8.
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
CP Summer School Modelling for Constraint Programming Barbara Smith 3. Symmetry, Viewpoints.
Maximum Density Still Life Symmetries and Lazy Clause Generation Geoffrey Chu, Maria Garcia de la Banda, Chris Mears, Peter J. Stuckey.
Dynamic Symmetry breaking with AI and Algebra. Iain McDonald Dynamic Symmetry breaking with AI and Algebra.
State space search Represented by a four-tuple [N,A,S,GD], where: N is the problem space A is the set of arcs (or links) between nodes. These correspond.
Tractable Symmetry Breaking for CSPs with Interchangeable Values P. Van Hentenryck, P. Flener, J. Pearson and M. Agren IJCAI 2003 Presented by: Shant Karakashian.
10.3 Reformulation The Lex-Leader Method Shant Karakashian 1.
C&O 355 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Chapter 11. Chapter Summary  Introduction to trees (11.1)  Application of trees (11.2)  Tree traversal (11.3)  Spanning trees (11.4)
Theory of Computational Complexity Probability and Computing Chapter Hikaru Inada Iwama and Ito lab M1.
CSG3F3/ Desain dan Analisis Algoritma
Analyzing Graphs of Functions 1.5
Algorithms for Finding Distance-Edge-Colorings of Graphs
Hans Bodlaender, Marek Cygan and Stefan Kratsch
A First Practical Algorithm for High Levels of Relational Consistency
PC trees and Circular One Arrangements
Comparative RNA Structural Analysis
Compact routing schemes with improved stretch
Generic SBDD using Computational Group Theory
Locality In Distributed Graph Algorithms
Presentation transcript:

Tractable Symmetry Breaking Using Restricted Search Trees Colva M. Roney-Dougal, Ian P. Gent, Tom Kelsey, Steve Linton Presented by: Shant Karakashian Symmetries in CP, Sprint 2010

Outline Symmetry breaking approaches Group equivalence tree (GE-tree) Importance of GE-trees Definitions: – Definition of the tree – Stabilizer and orbit – Value symmetry Constructing GE-tree for value symmetry Example problem: – GE-Tree construction Properties of the constructed tree GE-trees with: – Global value symmetries – Search – Other symmetries Experiments Conclusion 2

Symmetry Breaking Approaches Different approaches taken for symmetry breaking: – Adding symmetry breaking constraints before search – Using constraints generated dynamically during search – Checking for duplicate nodes before visiting them – Use of techniques from computational group theory 3

Group Equivalence Tree (GE-Tree) Given a CSP with symmetry group G, GE-tree is a search tree satisfying: – No node is isomorphic under G to any other node – Given a full assignment A there is at least one leaf of the tree in A G A GE-tree is minimal if the deletion of any node (and its descendants) will delete at least one full assignment 4

Importance of GE-Trees Any search tree contains a GE-tree Helpful to analyze the efficacy of a symmetry breaking technique by comparing the search tree to the corresponding minimal GE-tree Possible to construct GE-trees for many types of symmetries: variable symmetry, value symmetry, etc. This article discusses value symmetry 5

Definition of the Tree For a given tree: – Nodes are labeled with variables – Edges are labeled with variable values – The state of a node N is the partial assignment given by the labels on the path from the root to N 6

Stabilizer and Orbit The stabilizer of a literal (X=a) is the set of all symmetries in G that map (X=a) to itself The orbit of literal (X=a): – Denoted (X=a) G – Is the set of all literals that can be reached from (X=a) by a symmetry in G 7

Value Symmetry Value Symmetry is any permutation g where: – If (A 1 = a)g = (A 2 = b) – Then A 1 = A 2 The definition also allows the existence of symmetries g as: (A 1 = a)g = (A 1 = b), (A 2 = a)g = (A 2 = c) 8

Constructing GE-Tree for Value Symmetries Given a node N: – State of N: Λ 1≤i≤k (A i = a i ) – Let G (1≤i≤k) be the subgroup of G that stabilizes each of {a i : 1 ≤ i ≤ k} Select variable A k+1 (can be different for the same level thus supports dynamic variable ordering) Label N with A k+1 Compute orbits: – {O j : 1 ≤ j ≤ o k+1 } of G (1≤i≤k) on D k+1 Select a representative b j for each orbit O j Create an edge from N labeled with b j 9

Example Problem Consider a 3x3 board with 3 pieces. Each piece is placed in a row The i th piece placed on the second column is: – p i = 2 A solution to the problem is when all the pieces are on the same column The problem has the value symmetry group G The generator for G is:, G = {a, b, c, d, e} a = b = c = d = e =

GE-Tree construction for the Example with Value Symmetries a = b = c = d = e = Orbits of {a, b, c, d, e} on D p1 = {{1, 2, 3}} Choose representative {1} Label of 2 nd node: (p 1 =1) Stabilizer = {a} Orbits of {a} on D p2 = {{1}, {2, 3}} Choose representative {1, 2} Label of 3 rd node: (p 1 =1, p 2 =1) Stabilizer = {a} 11 p1p2p3p4p1p2p3p

Properties of the Constructed Tree The constructed tree is a GE-tree The constructed GE-tree is minimal Complexity of the construction algorithm: – The group is acting on a set of size N=∑ i=1:n |D i | – Need to find the generator for G of size t – Deterministic algorithm: O ~ (N 4 +tN 2 ) – O ~ (x) = O(x log c x), c a constant – Computing the orbits of G on D is O(t|D|) – Assume O(t) < O(N) – Total cost at each node is no more than O ~ (N 4 )

Global Value Symmetries A group consists of global value symmetries if: – For all variables X, Y, values a, b and symmetries g: – If (X = a)g = (X = b) – Then (Y = a)g = (Y = b) The construction produces minimal GE-trees For the complexity of the construction: – Same as before but with N = |U i=1:n D i | – Instead of N=∑ i=1:n |D i | 13

GE-Trees and Search Consider the partial assignment at N and G N the stabilizer of N Let a and b be values in the domain of variable X Let O be the orbit of a under G N – If there exists b in the orbit O such that b is deleted from the domain of A – Then there are no solutions extending N ^ (X = a) Such values (a) are not extended during dynamic construction of GE-tree for value symmetries GE-tree compared to SBDS and SBDD: – SBDS constructs a GE-tree using all symmetries of the group – SBDD constructs a GE-tree if the dominance check is applied at every node 14

GE-Trees & Other Symmetries Let T be a GE-tree constructed for the subgroup H of value symmetries of the symmetry group G – If SBDS or SBDD is performed while searching T Then exactly one of each equivalence class of solutions will be found – If a GE-tree is constructed for the group of value symmetries Then it is safe to use SBDD or SBDS to break all other symmetries The combined approach has lower complexity because the GE-tree construction as described for value symmetries has a polynomial complexity while SBDD and SBDS have exponential complexities 15

Experiments Experiments conducted using the ECL i PS e CSP system The partial assignment and the current variable domain are passed to GAP: – GAP returns a domain containing only symmetrically distinct values Coloring non-symmetric graphs: – GE-tree compared to SBDD – 7-coloring of a 12-vertex graph: 50.1 sec with SBDD 8.87 sec with GE-tree 16

Experiments (contd.) A most perfect magic square of size n x n A solution is one of 2 n+1 ((n/2)!) 2 symmetric equivalents Remodeled the problem to convert variable symmetries to value symmetries 17 n#SolsSBDD timeGE-tree time , ,930.9

Conclusion This work presented a new conceptual abstraction: – A search tree containing a unique representation of each class of a full assignments – Polynomial time algorithm to construct the tree in case of value symmetries 18

Thank you! 19