1
Because the localized R(*,m)C does not consider combinations of relations across clusters, propagation between clusters is hindered. Synthesizing a global constraint at each separator improves the ‘communication’ between clusters and guarantees backtrack-free search. Synthesizing & storing those global constraints is typically prohibitive, especially for space. We approximate the global constraints by adding redundant constraints at the separators. We propose the following strategies: (1) Adding clusters’ constraints to the separator by projecting them on separator’s variables; (2) Adding binary constraints to the separator for every fill-in edge obtained by a triangulation of the separator’s primal graph; and (3) Adding non- binary constraints to the separator that cover the maximal cliques of a triangulation of the separator’s primal graph. The dual graph of a CSP is a graph whose vertices represent the constraints of the CSP, and whose edges connect two vertices corresponding to constraints whose scopes overlap Practical Tractability of CSPs by Higher-Level Consistency and Tree Decomposition Shant Karakashian, Robert Woodward, and Berthe Y. Choueiry Constraint Systems Laboratory • University of Nebraska-Lincoln {shantk|rwoodwar|choueiry}@cse.unl.edu 1.A new relational consistency property R(*,m)C that does not change the topology of the constraint graph [Karakshian+, AAAI 2010] 2.Two algorithms for enforcing R(*,m)C 3.Localizing R(*,m)C by restricting it to the clusters of a tree decomposition 4.Bolstering propagation between clusters by adding new constraints at the separators 5.Empirical evidence of practical tractability on benchmark problems Contributions Relational Consistency Localizing R(*,m)C Instead of computing the combinations of m constraints over the entire CSP, we restrict ourselves to the combinations computed within each cluster, thus reducing the number of combinations to be considered. Bolstering Propagation at Seperators Future Research Directions Tree Decomposition • Identify problem parameters to select the appropriate consistency for each problem or even for each cluster in a decomposition. • Validate the approach in the context of solution counting. A B C E D F G H I J K M L N R 7 R 2 R 3 R 4 R 5 R 6 R 1 R 7 R 2 R 3 R 4 R 5 R 6 A,B,C,N I,J,K I,M,N A,K,L F,G,H B,D,E,F C,D,H N A I K H F B C R 1 D •Number of combinations = O(e m ) •Size of each combination = m •Twelve combinations for R(*,3)C 1. {R 1 ,R 2 ,R 3 } 2. {R 1 ,R 2 ,R 4 } 3. {R 1 ,R 2 ,R 5 } 4. {R 1 ,R 2 ,R 6 } 5. {R 1 ,R 3 ,R 4 } 6. {R 1 ,R 4 ,R 5 } 7. {R 1 ,R 4 ,R 6 } 8. {R 1 ,R 5 ,R 6 } 9. {R 1 ,R 5 ,R 7 } 10.{R 1 ,R 6 ,R 7 } 11.{R 2 ,R 3 ,R 4 } 12.{R 5 ,R 6 ,R 7 } R 4 R 7 R 3 R 6 R 2 R 1 R 5 R(*,m) ensures that subproblem induced in the dual CSP by every connected combination of m relations is minimal [Karakshian+, AAAI 2010] ..… φ R i τ i τ j A tree decomposition of a CSP is a tree embedding of the constraint network of the CSP. The tree nodes are thus clusters of variables and constraints. A tree decomposition must satisfy two conditions: (1) each constraint appears in at least one cluster and the variables in its scope must appear in this cluster, and (2) for every variable, the clusters where the variable appears induce a connected subtree. A separator of two adjacent clusters is the set of variables in both clusters. A given tree decomposition is characterized by its treewidth, which is the maximum number of variables in a cluster minus one. {A,B,C,N},{R 1 } {A,I,N},{R’ 1 ,R’ 2 } {B,C,D,H},{R” 1 ,R” 5 ,R 6 } {I,M,N},{R 2 } {B,D,F,H},{R’ 5 ,R’ 6 ,R’ 7 } C 1 C 2 C 3 C 7 C 8 {A,I,K},{R’ 3 ,R’ 4 } C 4 {I,J,K},{R 3 } C 5 {A,K,L},{R 4 } C 6 {B,D,E,F},{R 5 } C 9 {F,G,H},{R 7 } C 10 Bolstering Separators C 1 C 2 E F R 6 R 5 R 7 R 4 R 2 R 1 R 3 B A D C C 1 C 2 E F R 6 R 5 R 7 R 2 R 1 R 3 B A D C C 1 C 2 E F R 6 R 5 R 7 R 4 R 2 R 1 R 3 R’ 3 B A D C C 1 C 2 E F R 6 R 5 R 7 R 4 R 2 R 1 R 3 R’ 3 B A D C R a C 1 C 2 E F R 6 R 5 R 7 R x R 2 R 1 R 3 R’ 3 B A D C R y R sep Empirical Results Total number of instances is 1131 GAC maxRPWC wR(*,2)C cl-wR(*,2)C cl+clqsep-wR(*,2)C wR(*,3)C cl-wR(*,3)C cl+projsep-wR(*,3)C cl+clqsep-wR(*,3)C wR(*,4)C cl-wR(*,4)C cl+projsep-wR(*,4)C cl+clqsep-wR(*,4)C Cl-R(*,|C|)C cl+projsep-R(*,|C|)C Comp. 296 267 333 288 227 335 334 356 201 336 303 330 189 347 349 Faste st 125 45 43 44 3 17 46 11 2 15 10 3 3 84 26 BTF 70 111 158 89 160 193 147 235 161 235 147 245 159 214 306 Localized R(*,m)C results in weaker filtering but faster consistency algorithm which is useful where the full power of R(*,m)C is not needed. • Bolstering separators with projected relations results in stronger consistency, solving many more instances in a backtrack-free manner. • Bolstering separators with binary relations did not reduce #NV. • Bolstering separators with maximal clique relations further strengthened filtering and solved yet more instances backtrack-free. However, processing the new non-binary relations increased cost. Consequently, many problems could not be solved within 2 hours. Experiments were conducted on the equipment of the Holland Computing Center at the University of Nebraska-Lincoln. This research is supported by NSF Grant No. RI-111795. October 3 rd , 2012 Dual graph Constraint hypergraph Binary relations Max cliques relations Initial relations Global relation at separator Projecting clusters’ relations on separator’s variables GAC maxRPWC R(*,2)C cl+projsep- R(*,2)C cl- R(*,3)C cl+clqsep- R(*,3)C cl- R(*,4)C cl+clqsep- R(*,4)C cl+clqsep- R(*,2)C R(*,4 )C cl+projsep- R(*,4)C Cl-R(*,| C|)C cl+projsep- R(*,|C|)C R(*,3)C cl+projsep- R(*,3)C cl- R(*,2)C Comparing Consistency Properties

Because the localized R(*,m)C does not consider combinations of relations across clusters, propagation between clusters is hindered. Synthesizing a global

Embed Size (px)

Citation preview

Page 1: Because the localized R(*,m)C does not consider combinations of relations across clusters, propagation between clusters is hindered. Synthesizing a global

Because the localized R(*,m)C does not consider combinations of relations across clusters, propagation between clusters is hindered. Synthesizing a global constraint at each separator improves the ‘communication’ between clusters and guarantees backtrack-free search. Synthesizing & storing those global constraints is typically prohibitive, especially for space. We approximate the global constraints by adding redundant constraints at the separators. We propose the following strategies: (1) Adding clusters’ constraints to the separator by projecting them on separator’s variables; (2) Adding binary constraints to the separator for every fill-in edge obtained by a triangulation of the separator’s primal graph; and (3) Adding non-binary constraints to the separator that cover the maximal cliques of a triangulation of the separator’s primal graph.

The dual graph of a CSP is a graph whose vertices represent the constraints of the CSP, and whose edges connect two vertices corresponding to constraints whose scopes overlap

Practical Tractability of CSPs by Higher-Level Consistency and Tree DecompositionShant Karakashian, Robert Woodward, and Berthe Y. Choueiry

Constraint Systems Laboratory • University of Nebraska-Lincoln{shantk|rwoodwar|choueiry}@cse.unl.edu

1. A new relational consistency property R(*,m)C that does not change the topology of the constraint graph [Karakshian+, AAAI 2010]

2. Two algorithms for enforcing R(*,m)C3. Localizing R(*,m)C by restricting it to the clusters of a tree

decomposition4. Bolstering propagation between clusters by adding new

constraints at the separators5. Empirical evidence of practical tractability on benchmark problems

Contributions

Relational Consistency

Localizing R(*,m)C Instead of computing the combinations of m constraints over the entire CSP, we restrict ourselves to the combinations computed within each cluster, thus reducing the number of combinations to be considered.

Bolstering Propagation at Seperators

Future Research Directions

Tree Decomposition

• Identify problem parameters to select the appropriate consistency for each problem or even for each cluster in a decomposition.

• Validate the approach in the context of solution counting.

A B C

E

D

FGH

I J K

M L

N

R7

R2

R3

R4

R5

R6

R1

R7

R2

R3

R4

R5

R6

A,B,C,N

I,J,K

I,M,N A,K,L

F,G,H

B,D,E,FC,D,H

NA

I K H F

BC

R1

D

• Number of combinations = O(em) • Size of each combination = m• Twelve combinations for R(*,3)C

1. {R1,R2,R3}2. {R1,R2,R4}3. {R1,R2,R5}4. {R1,R2,R6}5. {R1,R3,R4}6. {R1,R4,R5}

7. {R1,R4,R6}8. {R1,R5,R6}9. {R1,R5,R7}10.{R1,R6,R7}11. {R2,R3,R4}12.{R5,R6,R7}

R4 R7R3 R6

R2 R1 R5R(*,m) ensures that subproblem induced in the dual CSP by every connected combination of m relations is minimal [Karakshian+, AAAI 2010]

..…

φRi

τiτj

A tree decomposition of a CSP is a tree embedding of the constraint network of the CSP. The tree nodes are thus clusters of variables and constraints. A tree decomposition must satisfy two conditions: (1) each constraint appears in at least one cluster and the variables in its scope must appear in this cluster, and (2) for every variable, the clusters where the variable appears induce a connected subtree. A separator of two adjacent clusters is the set of variables in both clusters. A given tree decomposition is characterized by its treewidth, which is the maximum number of variables in a cluster minus one.

{A,B,C,N},{R1}

{A,I,N},{R’1,R’2} {B,C,D,H},{R”1,R”5,R6}

{I,M,N},{R2} {B,D,F,H},{R’5,R’6,R’7}

C1

C2

C3

C7

C8

{A,I,K},{R’3,R’4}

C4

{I,J,K},{R3}

C5

{A,K,L},{R4}

C6

{B,D,E,F},{R5}

C9

{F,G,H},{R7}

C10

Bolstering Separators

C1

C2

E

F

R6 R5 R7

R4

R2 R1 R3

B A D C

C1

C2

E

F

R6 R5 R7

R2 R1 R3

B A D C

C1

C2

E

F

R6 R5 R7

R4

R2 R1 R3

R’3

B A D C

C1

C2

E

F

R6 R5 R7

R4

R2 R1 R3

R’3

B A D CRa

C1

C2

E

F

R6 R5 R7

Rx

R2 R1 R3

R’3

B A D CRy

Rsep

Empirical Results

Total number of instances is 1131

GAC

maxRPWC

wR(*,2)C

cl-wR(*,2)C

cl+clqsep-wR(*,2)C

wR(*,3)C

cl-wR(*,3)C

cl+projsep-wR(*,3)C

cl+clqsep-wR(*,3)C

wR(*,4)C

cl-wR(*,4)C

cl+projsep-wR(*,4)C

cl+clqsep-wR(*,4)C

Cl-R(*,|C|)C

cl+projsep-R(*,|C|)C

Comp. 296 267 333 288 227 335 334 356 201 336 303 330 189 347 349Fastest 125 45 43 44 3 17 46 11 2 15 10 3 3 84 26BTF 70 111 158 89 160 193 147 235 161 235 147 245 159 214 306

• Localized R(*,m)C results in weaker filtering but faster consistency algorithm which is useful where the full power of R(*,m)C is not needed.

• Bolstering separators with projected relations results in stronger consistency, solving many more instances in a backtrack-free manner.

• Bolstering separators with binary relations did not reduce #NV.• Bolstering separators with maximal clique relations further

strengthened filtering and solved yet more instances backtrack-free. However, processing the new non-binary relations increased cost. Consequently, many problems could not be solved within 2 hours.

Experiments were conducted on the equipment of the Holland Computing Center at the University of Nebraska-Lincoln.This research is supported by NSF Grant No. RI-111795.

October 3rd, 2012

Dual graphConstraint hypergraph

Binary relations Max cliques relations

Initial relations Global relation at separator

Projecting clusters’ relations on separator’s variables

GAC maxRPWC

R(*,2)Ccl+projsep-R(*,2)C

cl-R(*,3)C

cl+clqsep-R(*,3)C

cl-R(*,4)C

cl+clqsep-R(*,4)Ccl+clqsep-R(*,2)C

R(*,4)C

cl+projsep-R(*,4)C

Cl-R(*,|C|)C

cl+projsep-R(*,|C|)CR(*,3)Ccl+projsep-R(*,3)C

cl-R(*,2)C

Comparing Consistency Properties