M. HardojoFriday, February 14, 2003 Directional Consistency Dechter, Chapter 4 1.Section 4.4: Width vs. Local Consistency Width-1 problems: DAC Width-2.

Slides:



Advertisements
Similar presentations
Tree Clustering for Constraint Networks 1 Chris Reeson Advanced Constraint Processing Fall 2009 By Rina Dechter & Judea Pearl Artificial Intelligence,
Advertisements

Constraint Satisfaction Problems
Interactive Configuration
This lecture topic (two lectures) Chapter 6.1 – 6.4, except 6.3.3
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Wednesday, January 29, 2003CSCE Spring 2003 B.Y. Choueiry Constraint Consistency Chapter 3.
Anagh Lal Tuesday, April 08, Chapter 9 – Tree Decomposition Methods- Part II Anagh Lal CSCE Advanced Constraint Processing.
Constraint Optimization Presentation by Nathan Stender Chapter 13 of Constraint Processing by Rina Dechter 3/25/20131Constraint Optimization.
Foundations of Constraint Processing More on Constraint Consistency 1 Foundations of Constraint Processing CSCE421/821, Spring
Nov Properties of Tree Convex Constraints Authors: Yuanlin Zhang & Eugene C. Freuder Presentation by Robert J. Woodward CSCE990 ACP, Fall 2009.
Foundations of Constraint Processing, Spring 2008 April 16, 2008 Tree-Structured CSPs1 Foundations of Constraint Processing CSCE421/821, Spring 2008:
1 Directional consistency Chapter 4 ICS-179 Spring 2010 ICS Graphical models.
Anagh Lal Monday, April 14, Chapter 9 – Tree Decomposition Methods Anagh Lal CSCE Advanced Constraint Processing.
1 Advanced consistency methods Chapter 8 ICS-275 Spring 2007.
CPSC 322, Lecture 13Slide 1 CSPs: Arc Consistency & Domain Splitting Computer Science cpsc322, Lecture 13 (Textbook Chpt 4.5,4.8) February, 02, 2009.
1 Directional consistency Chapter 4 ICS-275 Spring 2007.
©2007 Tarik Hadzic1 Lecture 11: Consistency Techniques 1. Arc Consistency 2. Directional Consistency 3. Generalized Arc Consistency Efficient AI Programming.
Constraint Satisfaction Problems
Resolution versus Search: Two Strategies for SAT Brad Dunbar Shamik Roy Chowdhury.
1 Consistency algorithms Chapter 3. Spring 2007 ICS 275A - Constraint Networks 2 Consistency methods Approximation of inference: Arc, path and i-consistecy.
Constraint Networks ( slides courtesy of Natalia Flerova, based on slides courtesy of Rina Dechter)
Tutorial #9 by Ma’ayan Fishelson
General search strategies: Look-ahead Chapter 5 Chapter 5.
1 Hybrid of search and inference: time- space tradeoffs chapter 10 ICS-275A Fall 2003.
Branch and Bound Algorithm for Solving Integer Linear Programming
26 April 2013Lecture 5: Constraint Propagation and Consistency Enforcement1 Constraint Propagation and Consistency Enforcement Jorge Cruz DI/FCT/UNL April.
Lesson 6. Refinement of the Operator Model This page describes formally how we refine Figure 2.5 into a more detailed model so that we can connect it.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 2 Ryan Kinworthy CSCE Advanced Constraint Processing.
1 Chapter 8 Advanced Consistency Methods Yaling Zheng CSCE : Advanced Constraint Processing.
1 Book: Constraint Processing Author: Rina Dechter Chapter 10: Hybrids of Search and Inference Time-Space Tradeoffs Zheying Jane Yang Instructor: Dr. Berthe.
Slide 1 CSPs: Arc Consistency & Domain Splitting Jim Little UBC CS 322 – Search 7 October 1, 2014 Textbook §
Relaxation and Hybrid constraint processing Different relaxation techniques Some popular hybrid techniques.
Constraint Satisfaction Read Chapter 5. Model Finite set of variables: X1,…Xn Variable Xi has values in domain Di. Constraints C1…Cm. A constraint specifies.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
Computer Science CPSC 322 Lecture 13 Arc Consistency (4.5, 4.6 ) Slide 1.
Daphne Koller Variable Elimination Graph-Based Perspective Probabilistic Graphical Models Inference.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
Probabilistic Networks Chapter 14 of Dechter’s CP textbook Speaker: Daniel Geschwender April 1, 2013 April 1&3, 2013DanielG--Probabilistic Networks1.
1 Directional consistency Chapter 4 ICS-275 Spring 2009 ICS Constraint Networks.
Wednesday, January 29, 2003CSCE Spring 2003 B.Y. Choueiry Directional Consistency Chapter 4.
Chapter 2) CSP solving-An overview Overview of CSP solving techniques: problem reduction, search and solution synthesis Analyses of the characteristics.
An Introduction to Artificial Intelligence Lecture 5: Constraint Satisfaction Problems Ramin Halavati In which we see how treating.
Branch and Bound Algorithms Present by Tina Yang Qianmei Feng.
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
Constraint Propagation influenced by Dr. Rina Dechter, “Constraint Processing”
Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction 1 Foundations of Constraint Processing CSCE421/821, Spring 2009.
1 Tutorial #9 by Ma’ayan Fishelson. 2 Bucket Elimination Algorithm An algorithm for performing inference in a Bayesian network. Similar algorithms can.
Chapter 13 Backtracking Introduction The 3-coloring problem
Arc Consistency and Domain Splitting in CSPs CPSC 322 – CSP 3 Textbook Poole and Mackworth: § 4.5 and 4.6 Lecturer: Alan Mackworth October 3, 2012.
Lecture 5: Constraint Satisfaction Problems
Integer Programming An integer linear program (ILP) is defined exactly as a linear program except that values of variables in a feasible solution have.
Computer Science cpsc322, Lecture 13
Structure-Based Methods Foundations of Constraint Processing
Directional Resolution: The Davis-Putnam Procedure, Revisited
Constraint Propagation
Computer Science cpsc322, Lecture 13
Structure-Based Methods Foundations of Constraint Processing
Structure-Based Methods Foundations of Constraint Processing
Running example The 4-houses puzzle:
Structure-Based Methods Foundations of Constraint Processing
More on Constraint Consistency
Chapter 5: General search strategies: Look-ahead
Advanced consistency methods Chapter 8
Directional consistency Chapter 4
Structure-Based Methods Foundations of Constraint Processing
An Introduction Structure-Based Methods
Constraint Graph Binary CSPs
Structure-Based Methods Foundations of Constraint Processing
Presentation transcript:

M. HardojoFriday, February 14, 2003 Directional Consistency Dechter, Chapter 4 1.Section 4.4: Width vs. Local Consistency Width-1 problems: DAC Width-2 problems: DAC & DPC (strong DPC) Width-i problems: strong DIC (i.e., i+1) 2.Section 4.5: Adaptive Consistency  Bucket Elimination Madeline Hardojo CSCE Advanced Constraint Processing

M. HardojoFriday, February 14, Width vs. Local Consistency Goal: –backtrack-free (BT-free) search Approach: –link level of consistency with the shape of the graph sufficient to guarantee BT-free search Known result: –(width+1)  consistency level  BT-free Caveat: –Shape  width  consistency  adds constraints  changes shape  increases width  higher consistency Solution: –Don’t use width, use induced width

M. HardojoFriday, February 14, Trees: width=1 Fig 4.5  width = 1  Directional AC yields BT-free search Add constraint between x 2 and x 4  width =2  Directional AC no longer yields BT-free search Tree-structured binary CSP  (any) ordering w=1  AC  BT-free search Dechter: AC is an overkill, Directional AC is sufficient DAC achieved with Revise (node, one parent) Tree-structured binary CSP  (any) ordering w=1  DAC  BT-free search. Why?

M. HardojoFriday, February 14, 2003 Theorem 4.4.1: width-1 & DAC Given –a constraint tree T –d, an ordering with w=1 If T is directional AC relative to d, Then network is BT-free along d

M. HardojoFriday, February 14, 2003 Theorem 4.4.1: width-1 & DAC Proof: x 1,…, x i was instantiated consistently Want to instantiate x i+1 Since w = 1, x i+1 only has at most 1 parent that constrained x i+1, say x j Since x j is relatively arc-consistent to x i+1, x i+1 must have a support for x j. Provides consistent extension  BT-free

M. HardojoFriday, February 14, 2003 Algorithm: Tree Solving (Fig 4.11) Input: T = (X, D, C) Output: A BT-free network along an ordering d 1.Generate a width-1 ordering, d = x 1, …, x n 2.Let x p(i) denote the parent of x i, in the rooted ordered tree 3.For i = n to 1 do 4. Revise ((x p(i) ), x i ); 5. if the domain of x p(i) is empty, exit (no solution) 6.endfor

M. HardojoFriday, February 14, 2003 Interesting note Complexity of Tree Solving Algorithm is the same as the complexity of DAC (when induced width =1), i.e. O(nk 2 ) Achieving full arc-consistency in O(nk 2 ): –apply DAC relative to a width-1 order d, then –apply DAC relative to the reverse order of d Compare with: –AC-3 : O(nk 3 ) –AC-4 : O(nk 2 ), requires special data structures

M. HardojoFriday, February 14, 2003 Theorem 4.4.2: width-2 & DPC Given a network R  d, an ordering with w=2 If R is directional AC  directional PC relative to ordering d, Then network is BT-free along d

M. HardojoFriday, February 14, Solving width-2 problems Enforce directional PC using DPC algorithm (Fig. 4.8) Applying DPC may create an induced graph with a width > original width Even though we start with a graph of width-2, if the resulting graph after using DPC has width > 2, DPC no longer guarantees BT-free search

M. HardojoFriday, February 14, 2003 Induced width? How to find that a graph has an ordering with induced width = 2? Use MIW algorithm (Fig 4.3) –Selects node with smallest degree –Puts it last in ordering –Connects its parents  not in MW –Removes it from graph –Repeat… Max degree of node removed gives induced width of ordering

M. HardojoFriday, February 14, 2003 Theorem 4.4.3: Complexity of DPC Given: –A binary constraint network R –induced width (w*) = 2 R can be solved by DPC in linear time in the number of variables O(nk 3 )

M. HardojoFriday, February 14, 2003 Theorem 4.4.4: width-i & DIC(i+1) Given –a general network R –d, an ordering (necessarily w = i) If R is strong directional i+1-consistent to d, Then network is BT-free along d

M. HardojoFriday, February 14, 2003 Consistency as inference DAC, DPC, DIC are not complete inference procedures –Network can be inconsistent without us finding it, in general Dechter introduces: Adaptive Consistency –A general and complete procedure for inferring (network) consistency consistent network  solvable problem, guarantees the existence of a solution

M. HardojoFriday, February 14, Adaptive consistency: Motivation Goal: –Want to make any problem BT-free relative to a given variable ordering. –A complete inference algorithm Approach: Adaptive-consistency –ADC1 (Fig. 4.13) and –Adaptive-C (Fig. 4.14) ADC1 and Adaptive-C apply strong directional (i+1)-consistency and the resulting graph has is BT-free along the ordering d

M. HardojoFriday, February 14, 2003 Proposition Given an ordering of induced width i 1.Adaptive consistency  strong directional (i+1) consistency 2.Resulting network has width bounded by i

M. HardojoFriday, February 14, 2003 Algorithm: Adaptive-Consistency (ADC1) Given a constraint network R and an ordering d Find the width i of the current node Establishes DIC depending on the width of the node at the time of processing Enforce i+1 consistency –May tighten constraints –May impose new constraints –We only need to test the consistency of past and current variables DIC i : adaptive directional AC

M. HardojoFriday, February 14, 2003 Algorithm: Adaptive-Consistency (Adaptive-C) Variable-elimination algorithm: –At each step: Revise(parents of x j, x j ) Solve one variable and all its related constraints Inferred constraint on all the rest of the variables in the scope –Solved = generate all partial solutions over the parents that can extend to x j –Bucket elimination: an alternative description of adaptive consistency

M. HardojoFriday, February 14, 2003 Bucket Elimination Use data-structure: buckets Bucket-elimination: –One bucket per variable –Given an ordering, put constraint of the variable that appears latest in its scope to the bucket –In the same bucket: all constraints that have the same latest variable in their scope –Process bucket in reverse order and record its solution as a new constraint

M. HardojoFriday, February 14, 2003 Processing a bucket Solving a subproblem and recording its solutions as a new constraint –Corresponds to Revise(parents of x j, x j ) Place the new constraint in the bucket of its latest variable

M. HardojoFriday, February 14, 2003 Algorithm: Adaptive-C Given an ordering d Generates buckets and fill them with the constraints Process buckets in reverse order of ordering –Generate the join of all the constraints in the bucket –Project in a way to exclude the variable of the bucket

M. HardojoFriday, February 14, 2003 Algorithm: Adaptive-C (Example) Figure 4.15 d 1 = (E, B, C, D, A) Step 1 –n = 5 (x 5 = A) – bucket A = R AD, R AB –n = 4 (x 4 = D) – bucket D = R DE –… –n = 1 (x 1 = E) – bucket E = empty

M. HardojoFriday, February 14, 2003 Algorithm: Adaptive-Consistency (AC) - Example Step 2 –n = 5 A = {A,B,D}\{A} = {B,D} R BD = {(1,1), (2,2)}  bucket D –n = 4 A = {B,D,E}\{D} = {B,E} R BE = {(1,2),(2,1)}  bucket B –n = 3 A = {B,E,C}\{C}= {B,E} R BE  bucket B

M. HardojoFriday, February 14, 2003 Algorithm: Adaptive-Consistency (AC) - Example –n = 2 A = {B,E}\{B} = {E} R E = {1,2}  bucket E Induced graph: Fig 4.17

M. HardojoFriday, February 14, 2003 Adaptive-C Constraints are generated in reverse order of of d A solution is generated, backtrack free, in the direction of the ordering d

M. HardojoFriday, February 14, 2003 Adaptive-C for w* Ordering with induced width (w*) = 1 (tree), Adaptive-C generates only unary constraints (i.e., updates domains) Ordering with w* = 2, Adaptive-C generates only binary constraints The number of constraints in a bucket is bounded by the number of parents of the corresponding variable (owner of the bucket), i.e., induced width

M. HardojoFriday, February 14, 2003 Theorem 4.5.2: Output of Adaptive-C Given: –A network R –An ordering d Adaptive-consistency determines the consistency of R R is consistent  E d (R) is a backtrack-free network along d

M. HardojoFriday, February 14, 2003 Theorem 4.5.4: Complexity of Adaptive-C Time complexity of Adaptive-Consistency: O(n. (2k) w*+1 ) Space complexity of Adaptive-Consistency: O(n. (k) w* ) n = number of variables k = domain size w* = induced-width given an ordering

M. HardojoFriday, February 14, 2003 Lesson of Chapter 4 A class of tractable problems based on the induced width w*-based tractability Adaptive-consistency transforms a network into an equivalent one from which every solution can be generated BT-free –Technique to generate a solution –Technique of problem compilation –Governed by induced-width, w*