Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


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

1 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

2 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

3 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

4 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

5 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

6 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

7 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

8 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

9 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

10 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 = 10 123 132 123 321 123 321 123 132 123 213 123 231 123 312

11 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 p1p2p3p4p1p2p3p4 123 321 123 132 123 213 123 231 123 312 1 1 1 1 2 2 2 3

12 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 ) 12 1212

13 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

14 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

15 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

16 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

17 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 430.60.3 810130.890.7 124215,268.010,930.9

18 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

19 Thank you! 19


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

Similar presentations


Ads by Google