1
•Variables Vertices •Constraints Edges Revisiting Neighborhood Inverse Consistency on Binary CSPs R.J.Woodward 1 , S.Karakashian 1 , B.Y.Choueiry 1 , and C.Bessiere 2 1 Constraint Systems Laboratory • University of Nebraska-Lincoln • USA 2 LIRMM-CNRS • University of Montpellier • France 1.Understand the structure of the dual graph of a binary CSP 2.Determine the impact of this structure on consistency properties, e.g., NIC, sCDC, & RNIC are incomparable 3.Experimentally demonstrate the benefits of higher-level consistency 1. Contributions 3. Structure of Dual Graph of Binary CSPs 2. Graphical Representation Experiments were conducted on the equipment of the Holland Computing Center at the University of Nebraska-Lincoln. Robert Woodward was partially supported by a National Science Foundation (NSF) Graduate Research Fellowship grant number 1041000. This research is supported by NSF Grant No. RI-111795. 4. Impact on Local Consistency R 3 CD AC AB R 2 C A D AD A A R 1 R 4 R 3 B A C R 1 R 4 R 2 D V 1 V 2 V 3 V n-1 V n V n C n-1,n C 1,n V 1 V n-1 V n V n C 3,n C 2,n V 2 V 3 V 5 V 5 V 5 C 1,2 C 2,3 C 1,3 C 3,4 C 1,4 C 2,4 C 4,5 C 1,5 V 1 C 3,5 C 2,5 V 1 V 1 V 2 V 2 V 2 V 3 V 3 V 4 V 3 V 4 V 4 V 5 V 2 V 3 V 4 V 1 V 1 C i-2,i C 1,i V i V i C 3,i C 2,i C i,i+1 C i,n-1 C i,n V i V i V i V i (i-2) vertices (n-i) vertices V i V i V i V 1 V 2 V 3 V 4 C 1,4 V 5 C 2,5 C 3,5 C 1,2 C 1,5 C 2,3 C 3,4 C 1,2 C 2,3 C 3,4 C 1,4 C 1,5 V 1 C 3,5 C 2,5 V 1 V 2 V 2 V 3 V 3 V 4 V 5 V 5 V 1 V 2 V 3 V 4 C 1,4 V 5 C 2,5 C 3,5 C 1,2 C 1,5 C 2,3 C 3,4 C 4,5 C 1,3 C 2,4 C 1,5 C 1,3 C 3,5 C 2,4 C 4,5 C 3,4 V 1 V 1 V 2 V 2 V 3 V 3 V 4 V 4 V 5 C 1,2 C 1,4 C 2,3 C 2,5 V 1 V 2 V 5 V 5 V 4 V 3 C 1 C 3 C 2 C 4 V 1 V 1 V 2 V 3 C 1 C 3 C 2 C 4 V 1 V 2 V 1 V 3 Benchmark # inst. AC3.1 sCDC1 NIC selRNIC CPU Time (msec) NIC Quickest bqwh-16-106 100/10 0 3,505 3,860 1,470 3,608 bqwh-18-141 100/10 0 68,629 82,772 38,877 77,981 coloring-sgb- queen 12/50 680,140 (+3) - (+9) 57,545 634,029 coloring-sgb- games 3/4 41,317 33,307 (+1) 860 41,747 rand-2-23 10/10 1,467,246 1,460,089 987,312 1,171,444 rand-2-24 3/10 567,620 677,253 (+7) 3,456,437 677,883 sCDC1 Quickest driver 2/7 (+5) 70,990 (+5) 17,070 358,790 (+4) 185,220 ehi-85 87/100 (+13) 27,304 (+13) 573 513,459 (+13) 75,847 ehi-90 89/100 (+11) 34,687 (+11) 605 713,045 (+11) 90,891 frb35-17 10/10 41,249 38,927 179,763 73,119 RNIC Quickest composed-25-1- 25 10/10 226 335 1,457 114 composed-25-1-2 10/10 223 283 1,450 88 composed-25-1- 40 9/10 (+1) 288 (+1) 357 120,544 (+1) 137 composed-25-1- 80 10/10 223 417 (+1) - 190 composed-75-1- 25 10/10 2,701 1,444 363,785 305 composed-75-1-2 10/10 2,349 1,733 292 composed-75-1- 40 7/10 (+1) 1,924 (+3) 1,647 631,040 (+3) 286 composed-75-1- 80 10/10 1,484 1,473 (+1) - 397 Benchmark # inst. AC3.1 sCDC1 NIC selRNI C AC3.1 sCDC1 NIC selRNI C BT-Free #NV NIC Quickest bqwh-16-106 100/10 0 0 3 8 5 1,807 1,881 739 1,310 bqwh-18-141 100/10 0 0 0 1 0 25,283 25,998 12,49 0 22,518 coloring-sgb- queen 12/50 1 0 16 1 91,853 - 15,79 8 91,853 coloring-sgb- games 3/4 1 1 4 1 14,368 14,368 40 14,368 rand-2-23 10/10 0 0 10 0 471,11 1 471,11 1 12 471,11 1 rand-2-24 3/10 0 0 10 0 222,08 5 222,08 5 24 222,08 5 sCDC1 Quickest driver 2/7 1 2 1 1 3,893 409 3,763 3,763 ehi-85 87/100 0 100 87 100 1,425 0 0 0 ehi-90 89/100 0 100 89 100 1,298 0 0 0 frb35-17 10/10 0 0 0 0 24,491 24,491 24,49 1 24,346 RNIC Quickest composed-25-1- 25 10/10 0 10 10 10 153 0 0 0 composed-25-1-2 10/10 0 10 10 10 162 0 0 0 composed-25-1- 40 9/10 0 10 9 10 172 0 0 0 composed-25-1- 80 10/10 0 10 1 10 112 0 - 0 Dual Graph Constraint Graph Case1: A Complete Constraint Graph Case1: A Minimal Dual Graph of a Complete Constraint Graph … can be a triangle-shaped planar grid Case 2: Non-Complete Constraint Graph Strong Conservative Dual Consistency (sCDC) An instantiation {(x,a),(y,b)} is sCDC iff (y,b) holds in SAC when x=a and (x,a) holds in SAC when y=b and (x,y) in scope of some constraint, and the problem is AC [Lecoutre+, JAIR 2011] … but does not have to be •Constraints Vertices •Scope overlap Edges A Minimal Dual Graph After removing redundant edges [Janssen+, 1989] … can be a less regular grid R 3 CD AC AB R 2 C A D AD A R 1 R 4 V 5 V 5 V 5 C 1,2 C 2,3 C 1,3 C 3,4 C 1,4 C 2,4 C 4,5 C 1,5 V 1 C 3,5 C 2,5 V 1 V 1 V 2 V 2 V 2 V 3 V 3 V 4 V 3 V 4 V 4 October 3 rd , 2012 Neighborhood Inverse Consistency (NIC) ensures that every value in the domain of a variable can be extended to a solution in the subproblem induced by the variable and its neighborhood [Freuder & Elfe, AAAI 1996] A B C D R(*,m) ensures that subproblem induced in the dual CSP by every connected combination of m relations is minimal [Karakashian+, AAAI 2010] R 3 R 2 R 1 R 4 Relational Neighborhood Inverse Consistency (RNIC) ensures that every tuple in every relation R i can be extended to a solution in the subproblem induced on the dual CSP by {R j }∪Neigh(R i ) [Woodward+,AAAI 2011] R 3 R 2 R 1 R 4 •wRNIC, triRNIC, wtriRNIC enforce RNIC on a minimal, triangulated, and minimal triangulated dual graph, respectively selRNIC automatically selects the RNIC variant based on the density of the dual graph wRNIC is never strictly stronger than R(*,3)C Either wRNIC can never consider more than 3 relations simultaneously In either case, it is not possible to have an edge between C 3 & C 4 (a common variable to C 3 & C 4 ) while keeping C 3 as a binary constraint or Experimental Results NIC, sCDC, and RNIC are not comparable

Variables ⟿ Vertices Constraints ⟿ Edges

  • Upload
    reeves

  • View
    33

  • Download
    1

Embed Size (px)

DESCRIPTION

Revisiting Neighborhood Inverse Consistency on Binary CSPs R.J.Woodward 1 , S.Karakashian 1 , B.Y.Choueiry 1 , and C.Bessiere 2 1 Constraint Systems Laboratory • University of Nebraska-Lincoln • USA 2 LIRMM-CNRS • University of Montpellier • France. R 4. A. B. R 3. R 1. V 5. V 5. D. - PowerPoint PPT Presentation

Citation preview

Page 1: Variables ⟿ Vertices Constraints ⟿ Edges

• Variables Vertices⟿• Constraints Edges⟿

Revisiting Neighborhood Inverse Consistency on Binary CSPsR.J.Woodward1, S.Karakashian1, B.Y.Choueiry1, and C.Bessiere2

1Constraint Systems Laboratory • University of Nebraska-Lincoln • USA2LIRMM-CNRS • University of Montpellier • France

1. Understand the structure of the dual graph of a binary CSP2. Determine the impact of this structure on consistency properties,

e.g., NIC, sCDC, & RNIC are incomparable3. Experimentally demonstrate the benefits of higher-level consistency

1. Contributions

3. Structure of Dual Graph of Binary CSPs

2. Graphical Representation

Experiments were conducted on the equipment of the Holland Computing Center at the University of Nebraska-Lincoln.Robert Woodward was partially supported by a National Science Foundation (NSF) Graduate Research Fellowship grant number 1041000. This research is supported by NSF Grant No. RI-111795.

4. Impact on Local Consistency

R3

CD

ACAB

R2

C

A

DADA A

R1

R4

R3

BA

C

R1

R4

R2

D

V1

V2

V3

Vn-1

Vn

Vn Cn-1,nC1,n

V1 Vn-1

Vn Vn C3,n C2,n

V2V3

V5 V5 V5

C1,2

C2,3C1,3

C3,4C1,4 C2,4

C4,5C1,5

V1

C3,5 C2,5

V1

V1 V2

V2

V2

V3 V3

V4V3V4

V4

V5 V2V3V4V1

V1

Ci-2,iC1,i Vi Vi

C3,i C2,i

Ci,i+1

Ci,n-1

Ci,n

Vi

Vi

Vi

Vi

(i-2) vertices

(n-i)

vertices

Vi

Vi

Vi

V1

V2

V3 V4

C1,4

V5

C2,5

C3,5

C1,2 C1,5

C2,3

C3,4

C1,2

C2,3

C3,4C1,4

C1,5

V1

C3,5 C2,5

V1

V2

V2V3

V3V4

V5 V5

V1

V2

V3 V4

C1,4

V5C2,5 C3,5

C1,2 C1,5

C2,3

C3,4

C4,5

C1,3

C2,4

C1,5

C1,3

C3,5

C2,4

C4,5

C3,4

V1V1

V2

V2

V3V3

V4

V4V5C1,2

C1,4

C2,3

C2,5

V1

V2

V5

V5

V4

V3

C1

C3

C2 C4

V1 V1

V2V3

C1

C3

C2 C4

V1 V2

V1V3

Benchmark # inst. AC3.1 sCDC1 NIC selRNICCPU Time (msec)

NIC Quickestbqwh-16-106 100/100 3,505 3,860 1,470 3,608bqwh-18-141 100/100 68,629 82,772 38,877 77,981coloring-sgb-queen 12/50 680,140 (+3) - (+9) 57,545 634,029coloring-sgb-games 3/4 41,317 33,307 (+1) 860 41,747rand-2-23 10/10 1,467,246 1,460,089 987,312 1,171,444rand-2-24 3/10 567,620 677,253 (+7) 3,456,437 677,883

sCDC1 Quickestdriver 2/7 (+5) 70,990 (+5) 17,070 358,790 (+4) 185,220ehi-85 87/100 (+13) 27,304 (+13) 573 513,459 (+13) 75,847ehi-90 89/100 (+11) 34,687 (+11) 605 713,045 (+11) 90,891frb35-17 10/10 41,249 38,927 179,763 73,119

RNIC Quickestcomposed-25-1-25 10/10 226 335 1,457 114composed-25-1-2 10/10 223 283 1,450 88composed-25-1-40 9/10 (+1) 288 (+1) 357 120,544 (+1) 137composed-25-1-80 10/10 223 417 (+1) - 190composed-75-1-25 10/10 2,701 1,444 363,785 305composed-75-1-2 10/10 2,349 1,733 48,249 292composed-75-1-40 7/10 (+1) 1,924 (+3) 1,647 631,040 (+3) 286composed-75-1-80 10/10 1,484 1,473 (+1) - 397

Benchmark # inst. AC3.1 sCDC1 NIC selRNIC AC3.1 sCDC1 NIC selRNICBT-Free #NV

NIC Quickestbqwh-16-106 100/100 0 3 8 5 1,807 1,881 739 1,310bqwh-18-141 100/100 0 0 1 0 25,283 25,998 12,490 22,518coloring-sgb-queen 12/50 1 0 16 1 91,853 - 15,798 91,853coloring-sgb-games 3/4 1 1 4 1 14,368 14,368 40 14,368rand-2-23 10/10 0 0 10 0 471,111 471,111 12 471,111rand-2-24 3/10 0 0 10 0 222,085 222,085 24 222,085

sCDC1 Quickestdriver 2/7 1 2 1 1 3,893 409 3,763 3,763ehi-85 87/100 0 100 87 100 1,425 0 0 0ehi-90 89/100 0 100 89 100 1,298 0 0 0frb35-17 10/10 0 0 0 0 24,491 24,491 24,491 24,346

RNIC Quickestcomposed-25-1-25 10/10 0 10 10 10 153 0 0 0composed-25-1-2 10/10 0 10 10 10 162 0 0 0composed-25-1-40 9/10 0 10 9 10 172 0 0 0composed-25-1-80 10/10 0 10 1 10 112 0 - 0composed-75-1-25 10/10 0 10 10 10 345 0 0 0composed-75-1-2 10/10 0 10 10 10 346 0 0 0composed-75-1-40 7/10 0 10 7 10 335 0 0 0composed-75-1-80 10/10 0 10 1 10 199 0 - 0

Dual GraphConstraint Graph

Case1: A Complete Constraint Graph

Case1: A Minimal Dual Graph of a Complete Constraint Graph

… can be a triangle-shaped planar grid

Case 2: Non-Complete Constraint Graph

Strong Conservative Dual Consistency (sCDC) An instantiation {(x,a),(y,b)} is sCDC iff (y,b) holds in SAC when x=a and (x,a) holds in SAC when y=b and (x,y) in scope of some constraint, and the problem is AC [Lecoutre+, JAIR 2011]

… but does not have to be

• Constraints Vertices⟿• Scope overlap ⟿Edges

A Minimal Dual Graph

After removing redundant edges [Janssen+, 1989]

… can be a less regular grid

R3

CD

ACAB

R2

C

A

DADA

R1

R4

V5 V5 V5

C1,2

C2,3C1,3

C3,4C1,4 C2,4

C4,5C1,5

V1

C3,5 C2,5

V1

V1 V2

V2

V2

V3V3

V4V3

V4V4

October 3rd, 2012

Neighborhood Inverse Consistency (NIC) ensures that every value in the domain of a variable can be extended to a solution in the subproblem induced by the variable and its neighborhood [Freuder & Elfe, AAAI 1996]

A

B

C

D

R(*,m) ensures that subproblem induced in the dual CSP by every connected combination of m relations is minimal [Karakashian+, AAAI 2010] R3

R2R1

R4

Relational Neighborhood Inverse Consistency (RNIC) ensures that every tuple in every relation Ri can be extended to a solution in the subproblem induced on the dual CSP by {Rj}∪Neigh(Ri) [Woodward+,AAAI 2011]

R3

R2R1

R4

• wRNIC, triRNIC, wtriRNIC enforce RNIC on a minimal, triangulated, and minimal triangulated dual graph, respectively

• selRNIC automatically selects the RNIC variant based on the density of the dual graph

wRNIC is never strictly stronger than R(*,3)C

Either

wRNIC can never consider more than 3 relations simultaneouslyIn either case, it is not possible to have an edge between C3 & C4 (a common variable to C3 & C4) while keeping C3 as a binary constraint

or

Experimental Results

NIC, sCDC, and RNIC are not comparable