Advanced consistency methods Chapter 8 ICS-275 Winter 2016 - - PowerPoint PPT Presentation

advanced consistency methods chapter 8
SMART_READER_LITE
LIVE PREVIEW

Advanced consistency methods Chapter 8 ICS-275 Winter 2016 - - PowerPoint PPT Presentation

Advanced consistency methods Chapter 8 ICS-275 Winter 2016 Winter 2016 ICS 275 - Constraint Networks 1 Relational consistency ( Chapter 8 ) Relational arc-consistency Relational path-consistency Relational m-consistency


slide-1
SLIDE 1

1

Advanced consistency methods Chapter 8

ICS-275 Winter 2016

Winter 2016 ICS 275 - Constraint Networks

slide-2
SLIDE 2

Winter 2016 ICS 275 - Constraint Networks 2

Relational consistency (Chapter 8)

 Relational arc-consistency  Relational path-consistency  Relational m-consistency

 Relational consistency for

Boolean and linear constraints:

  • Unit-resolution is relational-arc-consistency
  • Pair-wise resolution is relational path-

consistency

slide-3
SLIDE 3

Winter 2016 ICS 275 - Constraint Networks 3

Example

slide-4
SLIDE 4

Winter 2016 ICS 275 - Constraint Networks 4

Relational arc-consistency

x S x S

D R x S ⊗ ⊆ −

π ρ ) (

slide-5
SLIDE 5

Winter 2016 ICS 275 - Constraint Networks 5

Enforcing relational arc-consistency

 If arc-consistency is not satisfied add: S S x S x S x S

D R R R ⊗ ∩ ←

− − −

π

slide-6
SLIDE 6

Winter 2016 ICS 275 - Constraint Networks 6

Example

 R_{xyz} = {(a,a,a),(a,b,c),(b,b,c)}.  This relation is not relational arc-consistent, but if we

add the projection: R_{xy}= {(a,a),(a,b),(b,b)}, then R_{xyz} will be relational arc-consistent relative to {z}.

 To make this network relational-arc-consistent, we

would have to add all the projections of R_{xyz} with respect to all subsets of its variables.

slide-7
SLIDE 7

Winter 2016 ICS 275 - Constraint Networks 7

Relational path-cosistency

x T S A D R R A

x T S A

− ∪ = ⊗ ⊗ ⊆ π ρ ) (

slide-8
SLIDE 8

Winter 2016 ICS 275 - Constraint Networks 8

 We can assign to x, y, l and t values that are

consistent relative to the relational-arc-consistent network generated in earlier. For example, the assignment

 (x=2, y= -5, t=3, l=15) is consistent, since only

domain restrictions are applicable, but no value of z that satisfies x+y = z and z+t = l.

 To make the two constraints relational path-

consistent relative to z add : x+y+t = l.

Example:

slide-9
SLIDE 9

Winter 2016 ICS 275 - Constraint Networks 10

Enforcing relational arc, path and m- consistency

 If arc-consistency is not satisfied add: S S x S x S x S

D R R R ⊗ ∩ ←

− − −

π

x T S A D R R A

x T S A

− ∪ = ⊗ ⊗ ⊆ π ρ ) (

x S S A D R A

m x S m i A

i

− ∪ = ⊗ ⊗ ⊆

=

... ) (

1 , 1

π ρ

r.a.c r.p.c r.m.c

slide-10
SLIDE 10

Winter 2016 ICS 275 - Constraint Networks 12

Extended composition

) ,..., ( ) ..., (

2 1 , 1 m A m A

R R R R R EC ⊗ ⊗ ⊗ = π

) (

S S x S x S x S

D R R R ⊗ ∩ ←

− − −

π

) (

S S x x x

D R D D ⊗ ∩ ← π

slide-11
SLIDE 11

Winter 2016 ICS 275 - Constraint Networks 16

Example: crossw ord puzzle, DRC_2

slide-12
SLIDE 12

Winter 2016 ICS 275 - Constraint Networks 17

Example: crossw ord puzzle, Directional-relational-2

slide-13
SLIDE 13

Winter 2016 ICS 275 - Constraint Networks 18

Complexity

 Theorem: DRC_2 is exponential in the

induced-width.

 (because sizes of the recorded relations

are exp in w).

 Crossword puzzles can be made

directional backtrack-free by DRC_2

slide-14
SLIDE 14

Winter 2016 ICS 275 - Constraint Networks 20

Domain tightness

 Theorem: a strong relational 2-consistent constraint

network over bi-valued domains is globally consistent.

 Theorem: A strong relational k-consistent constraint network

with at most k values is globally consistent.

slide-15
SLIDE 15

Winter 2016 ICS 275 - Constraint Networks 22

Inference for Boolean theories

slide-16
SLIDE 16

Winter 2016 ICS 275 - Constraint Networks 23

Directional resolution

slide-17
SLIDE 17

Winter 2016 ICS 275 - Constraint Networks 25

DR resolution = adaptive-consistency=directional relational path-consistency

)) exp( ( : space and time DR )) (exp( | |

* *

w n O w O bucketi =

slide-18
SLIDE 18

Winter 2016 ICS 275 - Constraint Networks 26

Directional Resolution  Adaptive Consistency

slide-19
SLIDE 19

Winter 2016 ICS 275 - Constraint Networks 27

slide-20
SLIDE 20

Winter 2016 ICS 275 - Constraint Networks 30

Row convexity

 Functional constraints: A binary relation R_{ij}

expressed as a (0,1)-matrix is functional iff there is at most a single "1" in each row and in each column.

 Monotone constraints: Given ordered domain, a binary

relation R_{ij} is monotone if (a,b) in R_{ij} and if c >= a, then (c,b) in R_{ij}, and if (a,b) in R_{ij} and c <= b, then (a,c) in R_{ij}.

 Row convex constraints: A binary relation R_{ij}

represented as a (0,1)-matrix is row convex if in each row (column) all of the ones are consecutive}

slide-21
SLIDE 21

Winter 2016 ICS 275 - Constraint Networks 31

Example of row convexity

slide-22
SLIDE 22

Winter 2016 ICS 275 - Constraint Networks 33

Theorem:

 Let R be a path-consistent binary constraint

  • network. If there is an ordering of the

domains D_1, …, D_n of R such that the relations of all constraints are row convex, the network is globally consistent and is therefore minimal.

slide-23
SLIDE 23

Winter 2016 ICS 275 - Constraint Networks 38

Linear inequalities

slide-24
SLIDE 24

Winter 2016 ICS 275 - Constraint Networks 39

Linear inequalities

 Gausian elimination with domain constraint is

relational-arc-consistency

 Gausian elimination of 2 inequalities is relational

path-consistency

 Theorem: directional relational path-consistency is

complete for CNFs and for linear inequalities

slide-25
SLIDE 25

Winter 2016 ICS 275 - Constraint Networks 40

Linear inequalities: Fourier elimination

slide-26
SLIDE 26

Winter 2016 ICS 275 - Constraint Networks 41

Directional linear elimination, DLE : generates a backtrack-free representation

slide-27
SLIDE 27

Winter 2016 ICS 275 - Constraint Networks 42

Example