Seminar: Search and Optimization Directional Consistency Gabi R - - PowerPoint PPT Presentation

seminar search and optimization
SMART_READER_LITE
LIVE PREVIEW

Seminar: Search and Optimization Directional Consistency Gabi R - - PowerPoint PPT Presentation

Seminar: Search and Optimization Directional Consistency Gabi R oger Universit at Basel November 6, 2014 Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary Directional Arc-consistency Directional


slide-1
SLIDE 1

Seminar: Search and Optimization

Directional Consistency Gabi R¨

  • ger

Universit¨ at Basel

November 6, 2014

slide-2
SLIDE 2

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Arc-consistency

slide-3
SLIDE 3

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Example

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

slide-4
SLIDE 4

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Example

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

Assume we search with variable order x1, x2, x3, x4

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

slide-5
SLIDE 5

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Example

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

Assume we search with variable order x1, x2, x3, x4

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

slide-6
SLIDE 6

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Example

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

Assume we search with variable order x1, x2, x3, x4

a,b,c x1 a,b,d x2 b,e x3 b,c,e x4 = = =

slide-7
SLIDE 7

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Example

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

Assume we search with variable order x1, x2, x3, x4

a,b,c x1 a,b,d x2 b,e x3 b,c,e x4 = = =

slide-8
SLIDE 8

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Example

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

Assume we search with variable order x1, x2, x3, x4

b x1 a,b,d x2 b,e x3 b,c,e x4 = = =

slide-9
SLIDE 9

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Example

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

Assume we search with variable order x1, x2, x3, x4

b x1 a,b,d x2 b,e x3 b,c,e x4 = = =

slide-10
SLIDE 10

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Example

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

Assume we search with variable order x1, x2, x3, x4

b x1 a,b,d x2 b,e x3 b,c,e x4 = = =

Backtrack-free search

slide-11
SLIDE 11

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Example

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

Assume we search with variable order x4, x2, x1, x3

b, e x4 a,b x2 a,b x1 a,b,e x3 = = =

slide-12
SLIDE 12

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Example

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = =

Assume we search with variable order x4, x2, x1, x3

b, e x4 a,b x2 a,b x1 a,b,e x3 = = =

Not necessarily backtrack-free search

slide-13
SLIDE 13

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional arc-consistency: Definition

Definition (Directional arc-consistency) A network is directional arc-consistent relative to variable order d = (x1, . . . , xn) iff every variable xi is arc-consistent relative to every variable xj such that i ≤ j.

slide-14
SLIDE 14

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Arc-consistency: Function DAC

function DAC: for i = n, . . . , 1: for each j < i such that Rji ∈ R: Dj ← Dj ∩ πj(Rji ⋊ ⋉ Di) (remove values from Dj that don’t have a partner in Di) Input: Constraint network R = (X, D, C) Input: with variable ordering d = (x1, . . . , xn) Effect: Enforces directional arc-consistency along d. Time complexity: O(ek2) with e binary constraints and Time complexity: maximal domain size k.

slide-15
SLIDE 15

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Arc-consistency: Questions

How does directional arc-consistency relate to full arc-consistency? Is there a criterion when directional arc-consistency leads to backtrack-free search? Can we find a suitable variable ordering?

slide-16
SLIDE 16

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional AC vs. Full AC

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = = b x1 a,b,d x2 b,e x3 b,c,e x4 = = = b, e x4 a,b x2 a,b x1 a,b,e x3 = = =

slide-17
SLIDE 17

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional AC vs. Full AC

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = = b x1 b x2 b x3 b x4 = = = b x1 a,b,d x2 b,e x3 b,c,e x4 = = = b, e x4 a,b x2 a,b x1 a,b,e x3 = = =

slide-18
SLIDE 18

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional AC vs. Full AC

a,b,c x1 a,b,d x2 a,b,e x3 b,c,e x4 = = = b x1 b x2 b x3 b x4 = = = b x1 a,b,d x2 b,e x3 b,c,e x4 = = = b, e x4 a,b x2 a,b x1 a,b,e x3 = = =

Enforcing full AC eliminates everything directional AC does . . . and more

slide-19
SLIDE 19

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Width of a Graph

Definition (Width of a graph) Let G = (V , E) be an undirected graph and d = (v1, . . . , vn) be an

  • rdering of its the nodes.

The parents of a node v are its neighbours that precede it in the ordering. The width of a node is the number of its parents. The width of the ordering is the maximum width over all nodes. The width of graph G is the minimum width over all orderings.

slide-20
SLIDE 20

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Width of a graph: Example

A B C D E F

slide-21
SLIDE 21

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Width of a graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-22
SLIDE 22

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Width of a graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A A,B,C,D,E,F: A B C D E F

slide-23
SLIDE 23

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Width of Graph: Algorithm

function MIN-WIDTH: d ← array of size |V | for i = n, . . . , 1: r ← a node in G with smallest degree d[i] ← r Remove all adjacent edges of r from E Remove r from V Input: Graph G = (V , E) Effect: d contains minimum width ordering of nodes.

slide-24
SLIDE 24

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Width of Graph and Directional Arc-Consistency

Theorem A graph is a tree iff it has width 1. Definition A constraint network is backtrack-free relative to a given ordering (x1, . . . , xn) if for every i < n, every partial solutions of (x1, . . . , xi) can be consistently extended to include xi+1 Theorem Let d be a width-1 ordering of a constraint tree T. If T is directional arc-consistent relative to d then the network is backtrack-free along d.

slide-25
SLIDE 25

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Application: Algorithm for Trees

function TREE-SOLVING: Generate width-1 ordering (x1, . . . , xn) for R along a rooted tree. Let xp(i) denote the parent of xi in the rooted tree. for i = n, . . . , 1: Dp(i) ← Dp(i) ∩ πp(i)(Rp(i)i ⋊ ⋉ Di) if Dp(i) = ∅: exit (inconsistent network) Extract solution with (backtrack-free) search. Input: Constraint network R = (X, D, C) Output: Solution (or inconsistent network). Time complexity: O(nk2) with n variables and Time complexity: maximal domain size k.

slide-26
SLIDE 26

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency

slide-27
SLIDE 27

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

(Strong) directional path-consistency: Function DPC

function DPC: E ′ ← E for k = n, . . . , 1: for each i < k such that (xi, xk) ∈ E ′: Di ← Di ∩ πi(Rik ⋊ ⋉ Dk) for each i, j < k such that (xi, xk), (xj, xk) ∈ E ′: Rij ← Rij ∩ πij(Rik ⋊ ⋉ Dk ⋊ ⋉ Rkj) E ′ ← E ′ ∪ (xi, xj) Input: Constraint network R = (X, D, C) with constraint graph Input: G = (V , E) and variable ordering d = (x1, . . . , xn) Effect: Enforces directional arc- and path-consistency along d. Time complexity: O(n3k3) with n variables and Time complexity: maximal domain size k.

slide-28
SLIDE 28

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

slide-29
SLIDE 29

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

slide-30
SLIDE 30

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

slide-31
SLIDE 31

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

slide-32
SLIDE 32

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

slide-33
SLIDE 33

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = = =

slide-34
SLIDE 34

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = = =

slide-35
SLIDE 35

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = = =

slide-36
SLIDE 36

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = = =

slide-37
SLIDE 37

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = = =

slide-38
SLIDE 38

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = = =

slide-39
SLIDE 39

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = = =

slide-40
SLIDE 40

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Example

a,b x1 a,b x2 a,b x3 a,b x4 = = = =

a,b x1 a,b x2 a,b x3 a,b x4 = = = = =

slide-41
SLIDE 41

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Questions

Is there a criterion when (strong) directional path-consistency leads to backtrack-free search? Can we find a suitable variable ordering? ◮ Directional path-consistency can change the constraint graph. ◮ Width of contraint graph no longer sufficient. ◮ Use induced width instead.

slide-42
SLIDE 42

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Questions

Is there a criterion when (strong) directional path-consistency leads to backtrack-free search? Can we find a suitable variable ordering? ◮ Directional path-consistency can change the constraint graph. ◮ Width of contraint graph no longer sufficient. ◮ Use induced width instead.

slide-43
SLIDE 43

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Directional Path-consistency: Questions

Is there a criterion when (strong) directional path-consistency leads to backtrack-free search? Can we find a suitable variable ordering? ◮ Directional path-consistency can change the constraint graph. ◮ Width of contraint graph no longer sufficient. ◮ Use induced width instead.

slide-44
SLIDE 44

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph

Definition (Induced width of a graph) Let G = (V , E) be an undirected graph and d = (v1, . . . , vn) be an

  • rdering of its the nodes.

Obtain graph G ∗

d by processing the node ordering backwards

and adding edges for each to parents of the processed node. The induced width w∗

d of the ordering is the width of G ∗ d .

The induced width w∗ of graph G is the minimal induced width

  • ver all orderings.
slide-45
SLIDE 45

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F

slide-46
SLIDE 46

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-47
SLIDE 47

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-48
SLIDE 48

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-49
SLIDE 49

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-50
SLIDE 50

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-51
SLIDE 51

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-52
SLIDE 52

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-53
SLIDE 53

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-54
SLIDE 54

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-55
SLIDE 55

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A

slide-56
SLIDE 56

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of a Graph: Example

A B C D E F F,E,D,C,B,A: F E D C B A Induced width w∗

(F,E,D,C,B,A): 3

slide-57
SLIDE 57

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of Graph: Algorithm 1

Determining the induced width of a graph is NP-hard Find good ordering in polynomial time

slide-58
SLIDE 58

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of Graph: Algorithm 1

Determining the induced width of a graph is NP-hard Find good ordering in polynomial time function MIN-DEGREE: d ← array of size |V | for i = n, . . . , 1: r ← a node in G with smallest degree d[i] ← r Connect r’s parents: E ← E ∪ {(v, v′) | (v, r), (v′, r) ∈ E} Remove all adjacent edges of r from E Remove r from V Input: Graph G = (V , E) Effect: d contains ordering with small induced width.

slide-59
SLIDE 59

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Induced Width of Graph: Algorithm 2

function MIN-FILL: d ← array of size |V | for i = n, . . . , 1: r ← a node in G with fewest missing edges between parents d[i] ← r Connect r’s parents: E ← E ∪ {(v, v′) | (v, r), (v′, r) ∈ E} Remove all adjacent edges of r from E Remove r from V Input: Graph G = (V , E) Effect: d contains ordering with small induced width.

slide-60
SLIDE 60

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Width of Graph and Directional Arc-Consistency

Theorem Let G be the constraint graph of a binary network R and let d be a variable ordering. If DPC is applied to R with ordering d then the resulting constraint graph is subsumed by the Graph G ∗

d .

slide-61
SLIDE 61

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Width of Graph and Directional Arc-Consistency

Theorem Let G be the constraint graph of a binary network R and let d be a variable ordering. If DPC is applied to R with ordering d then the resulting constraint graph is subsumed by the Graph G ∗

d .

Theorem Given a binary network R and an ordering d, the time complexity

  • f DPC along d is O((w∗

d)2 · n · k3).

slide-62
SLIDE 62

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Width of Graph and Directional Arc-Consistency

Theorem Let G be the constraint graph of a binary network R and let d be a variable ordering. If DPC is applied to R with ordering d then the resulting constraint graph is subsumed by the Graph G ∗

d .

Theorem Given a binary network R and an ordering d, the time complexity

  • f DPC along d is O((w∗

d)2 · n · k3).

Previously: O(n3k3) Lesson learned: Prefer orderings with small induced width

slide-63
SLIDE 63

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Adaptive Consistency

slide-64
SLIDE 64

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Motivation

Concept of directional arc- and path-consistency can be generalized to directional i-consistency. If a network R has induced width i − 1 for ordering d and it is strong directional i-consistent for d then R is backtrack-free along d. Algorithm idea for CSP solving:

1

Select ordering d with small width.

2

Compute its induced width w ∗

d .

3

Apply strong directional w ∗

d + 1-consistency.

4

Determine solution with backtrack-free search.

Idea: Combine steps 2 and 3

slide-65
SLIDE 65

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Motivation

Concept of directional arc- and path-consistency can be generalized to directional i-consistency. If a network R has induced width i − 1 for ordering d and it is strong directional i-consistent for d then R is backtrack-free along d. Algorithm idea for CSP solving:

1

Select ordering d with small width.

2

Compute its induced width w ∗

d .

3

Apply strong directional w ∗

d + 1-consistency.

4

Determine solution with backtrack-free search.

Idea: Combine steps 2 and 3

slide-66
SLIDE 66

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Motivation

Concept of directional arc- and path-consistency can be generalized to directional i-consistency. If a network R has induced width i − 1 for ordering d and it is strong directional i-consistent for d then R is backtrack-free along d. Algorithm idea for CSP solving:

1

Select ordering d with small width.

2

Compute its induced width w ∗

d .

3

Apply strong directional w ∗

d + 1-consistency.

4

Determine solution with backtrack-free search.

Idea: Combine steps 2 and 3

slide-67
SLIDE 67

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Motivation

Concept of directional arc- and path-consistency can be generalized to directional i-consistency. If a network R has induced width i − 1 for ordering d and it is strong directional i-consistent for d then R is backtrack-free along d. Algorithm idea for CSP solving:

1

Select ordering d with small width.

2

Compute its induced width w ∗

d .

3

Apply strong directional w ∗

d + 1-consistency.

4

Determine solution with backtrack-free search.

Idea: Combine steps 2 and 3

slide-68
SLIDE 68

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Motivation

Concept of directional arc- and path-consistency can be generalized to directional i-consistency. If a network R has induced width i − 1 for ordering d and it is strong directional i-consistent for d then R is backtrack-free along d. Algorithm idea for CSP solving:

1

Select ordering d with small width.

2

Compute its induced width w ∗

d .

3

Apply strong directional w ∗

d + 1-consistency.

4

Determine solution with backtrack-free search.

Idea: Combine steps 2 and 3

slide-69
SLIDE 69

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Motivation

Concept of directional arc- and path-consistency can be generalized to directional i-consistency. If a network R has induced width i − 1 for ordering d and it is strong directional i-consistent for d then R is backtrack-free along d. Algorithm idea for CSP solving:

1

Select ordering d with small width.

2

Compute its induced width w ∗

d .

3

Apply strong directional w ∗

d + 1-consistency.

4

Determine solution with backtrack-free search.

Idea: Combine steps 2 and 3

slide-70
SLIDE 70

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Motivation

Concept of directional arc- and path-consistency can be generalized to directional i-consistency. If a network R has induced width i − 1 for ordering d and it is strong directional i-consistent for d then R is backtrack-free along d. Algorithm idea for CSP solving:

1

Select ordering d with small width.

2

Compute its induced width w ∗

d .

3

Apply strong directional w ∗

d + 1-consistency.

4

Determine solution with backtrack-free search.

Idea: Combine steps 2 and 3

slide-71
SLIDE 71

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Motivation

Concept of directional arc- and path-consistency can be generalized to directional i-consistency. If a network R has induced width i − 1 for ordering d and it is strong directional i-consistent for d then R is backtrack-free along d. Algorithm idea for CSP solving:

1

Select ordering d with small width.

2

Compute its induced width w ∗

d .

3

Apply strong directional w ∗

d + 1-consistency.

4

Determine solution with backtrack-free search.

Idea: Combine steps 2 and 3

slide-72
SLIDE 72

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Adaptive Consistency: Function ADC

function ADC: E ′ ← E, C ′ ← C for k = n, . . . , 1: S ← parents of xk w.r.t. E ′ and d RS ← revise(S, xk) C ′ ← C ′ ∪ RS E ′ ← E ′ ∪ {(xi, xj) | xi, xj ∈ S, xi = xj} Input: Constraint network R = (X, D, C) with constraint graph Input: G = (V , E) and variable ordering d = (x1, . . . , xn) Effect: Enforces strong directional w∗

d + 1-consistency and the

Effect: resulting network has width bounded by w∗

d.

Effect: R consistent ⇒ resulting network backtrack-free along d. Time complexity: O(n · (2k)w∗

d +1)

slide-73
SLIDE 73

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Tractable Class of Constraint Satisfaction Problems

If the induced width for a problem is bounded by a constant b, we can efficiently find an ordering d with w∗

d ≤ b.

slide-74
SLIDE 74

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Tractable Class of Constraint Satisfaction Problems

If the induced width for a problem is bounded by a constant b, we can efficiently find an ordering d with w∗

d ≤ b.

Theorem The class of constraint problems whose induced width is bounded by a constant b is solvable in polynomial time and space.

slide-75
SLIDE 75

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Summary

slide-76
SLIDE 76

Directional Arc-consistency Directional Path-consistency Adaptive Consistency Summary

Summary

Directional arc- and path-consistency can be used as preprocessing algorithm or for interleaved reasoning during search. Guarantee backtrack-free search for problems with induced width 1 (for directional arc-consistency) and 2 (for strong directional path-consistency), respectively. Identified a tractable class of constraint satisfaction problems Purely structural criterion: induced width of constraint graph