Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction 1 Foundations of Constraint Processing CSCE421/821, Spring 2009.

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
Greedy Algorithms Greed is good. (Some of the time)
Wednesday, January 29, 2003CSCE Spring 2003 B.Y. Choueiry Constraint Consistency Chapter 3.
Statistical Methods in AI/ML Bucket elimination Vibhav Gogate.
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
Junction Trees And Belief Propagation. Junction Trees: Motivation What if we want to compute all marginals, not just one? Doing variable elimination for.
Foundations of Constraint Processing, Spring 2008 April 16, 2008 Tree-Structured CSPs1 Foundations of Constraint Processing CSCE421/821, Spring 2008:
A First Practical Algorithm for High Levels of Relational Consistency Shant Karakashian, Robert Woodward, Christopher Reeson, Berthe Y. Choueiry & Christian.
1 Directional consistency Chapter 4 ICS-179 Spring 2010 ICS Graphical models.
Problem Solving with Constraints, Fall 2011 Odds and Ends: Modeling Examples & Graphical Representations 1Odds & Ends Problem Solving with Constraints.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables {A,B,C,…}, a set of domain values for these variables,
Foundations of Constraint Processing, Fall 2005 October 21, 2005CSPs and Relational DBs1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Foundations of Constraint Processing, Spring 2008 Evaluation to BT SearchApril 16, Foundations of Constraint Processing CSCE421/821, Spring 2008:
Anagh Lal Monday, April 14, Chapter 9 – Tree Decomposition Methods Anagh Lal CSCE Advanced Constraint Processing.
Foundations of Constraint Processing, Fall 2004 November 8, 2004Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Foundations of Constraint Processing, Fall 2005 November 16, 2005nFCi1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
1 Directional consistency Chapter 4 ICS-275 Spring 2007.
Foundations of Constraint Processing Evaluation to BT Search 1 Foundations of Constraint Processing CSCE421/821, Spring
Foundations of Constraint Processing, Fall 2005 October 20, 2005Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Foundations of Constraint Processing, Fall 2005 Sep 20, 2005BT: A Theoretical Evaluation1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Constraint Systems Laboratory October 2 nd, 2005Zheng – DocProg CP’051 Applying Structural Decomposition Methods to Crossword Puzzle Problems Student:
1 Hybrid of search and inference: time- space tradeoffs chapter 10 ICS-275 Spring 2007.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
Cut-and-Traverse: A new Structural Decomposition Method for CSPs Yaling Zheng and Berthe Y. Choueiry Constraint Systems Laboratory Computer Science & Engineering.
M. HardojoFriday, February 14, 2003 Directional Consistency Dechter, Chapter 4 1.Section 4.4: Width vs. Local Consistency Width-1 problems: DAC Width-2.
Tree Decomposition methods Chapter 9 ICS-275 Spring 2007.
General search strategies: Look-ahead Chapter 5 Chapter 5.
1 Hybrid of search and inference: time- space tradeoffs chapter 10 ICS-275A Fall 2003.
Stochastic greedy local search Chapter 7 ICS-275 Spring 2007.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 2 Ryan Kinworthy CSCE Advanced Constraint Processing.
Foundations of Constraint Processing, Fall 2004 November 18, 2004More on BT search1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
1 Book: Constraint Processing Author: Rina Dechter Chapter 10: Hybrids of Search and Inference Time-Space Tradeoffs Zheying Jane Yang Instructor: Dr. Berthe.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Problem Solving with Constraints Ordering heuristics1 Foundations of Constraint Processing CSCE496/896, Fall
Because the localized R(*,m)C does not consider combinations of relations across clusters, propagation between clusters is hindered. Synthesizing a global.
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
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.
Constraint Systems Laboratory R.J. Woodward 1, S. Karakashian 1, B.Y. Choueiry 1 & C. Bessiere 2 1 Constraint Systems Laboratory, University of Nebraska-Lincoln.
Foundations of Constraint Processing Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Spring
Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Foundations of Constraint Processing, Fall 2012 Odds and Ends: Modeling Examples & Graphical Representations 1Odds & Ends Foundations of Constraint Processing.
Foundations of Constraint Processing, Spring 2008 Feb 11, 2008 Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Spring 2008:
Foundations of Constraint Processing Constraint Graphical Models 1Odds & Ends Foundations of Constraint Processing CSCE421/821, Fall
Tree Decomposition methods Chapter 9 ICS-275 Spring 2009.
Problem Solving with Constraints CSPs and Relational DBs1 Problem Solving with Constraints CSCE496/896, Fall
Structure-Based Methods Foundations of Constraint Processing
Consistency Methods for Temporal Reasoning
A First Practical Algorithm for High Levels of Relational Consistency
Structure-Based Methods Foundations of Constraint Processing
CSPs and Relational DBs
Foundations of Constraint Processing
More on Constraint Consistency
Structure-Based Methods Foundations of Constraint Processing
Boi Faltings and Martin Charles Golumbic
Problem Solving with Constraints
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Structure-Based Methods Foundations of Constraint Processing
Foundations of Constraint Processing All questions to Piazza
More on Constraint Consistency
Boi Faltings and Martin Charles Golumbic
Chapter 5: General search strategies: Look-ahead
Foundations of Constraint Processing All questions to Piazza
Problem Solving with Constraints
Structure-Based Methods Foundations of Constraint Processing
An Introduction Structure-Based Methods
Structure-Based Methods Foundations of Constraint Processing
Presentation transcript:

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction 1 Foundations of Constraint Processing CSCE421/821, Spring All questions: Berthe Y. Choueiry (Shu-we-ri) Avery Hall, Room 360 Tel: +1(402) Structure-Based Methods An Introduction

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Motivation CSPs are represented by a network –For binary CSPs, it is a graph –For general CSPs, it is a hypergraph Exploit the structure of the network to solve the CSP –During search –For inference: adapative consistency h1 h8 h3 h2 h4 h7 h14 h12 h13 h15 h9 h11 h10 a b c d e f

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Constraint Networks Dechter§2.1.3 Binary CSPs –Macrostructure –Microstructure –Co-microstructure Non-Binary CSPs –Hypergraph –Dual –Primal h1 h5 h3 h2 h4 h7 h6 h8 h7 h1 h5 h3 h4 h6 h

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Outline Binary CSPs –Tree-Structured CSP graphs Dechter§5.1.2 [Freuder, 82] –Cycle-Cutset Method Dechter§ [Dechter, 90] –Dynamic Dangle-Identification (GRED) [Zheng] –Decomp. into bi-connected components [Freuder, 82] –Tree Clustering Dechter§9.2 [Dechter & Pearl, 89] Non-Binary CSPs –Bucket Elimination Dechter§4.4 [Dechter, 97] –Tree Decomposition Dechter§9.2.2 [DB Theory] 4

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Tree-Structured CSPs Dechter§5.1.2 Tree-structured CSPs can be solved in polynomial time –Apply Revise (V i,V j ) for all nodes from leaves to root –Instantiate variables from root to leaves Note: later, we will follow the ‘general’ strategy –Directional consistency from leaves to root –Solution building from root to leaves 5 a, b, c, d

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Cycle-Cutset Method (1) Dechter§ Identify a cycle cutset S in the CSP (nodes when removed yield a tree) Decompose the CSP into 2 partitions –The nodes in S –The nodes in T, forming a tree Idea: Iterate until a solution is found –Solve the nodes in S –Try to extend the solution to nodes in T 6

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Cycle-Cutset Method (2) Dechter§ Find a solution to nodes in S (S is smaller than initial problem) Repeat until you find a solution –For every solution to S Apply DAC from S to T If no domain is wiped-out, solve T (quick) If |S|=c, time is O(d c.(n-c)d 2 )=O(nd c+2 ) Finding the smallest cutset is NP-hard  7

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Dynamic Dangle-Identification (GRED) After each step of var assignment and FC/MAC –Check the connectivity of the remaining CSP – Identify “dangling trees” using Graham’s graph reduction operator For each dangling tree –Do DAC from leaf to root –Domain wipe-out indicates unsolvability Restrict search to nodes outside the identified dangling trees (Unpublished work by Y. Zheng, 2005) 8

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Outline Binary CSPs –Tree-Structured CSP graphs [Freuder, 82] –Cycle-Cutset Method Dechter§ [Dechter, 90] –Dynamic Dangle-Identification (GRED) [Zheng] –Decomp. into bi-connected components [Freuder, 82] –Tree Clustering Dechter§9.2 [Dechter & Pearl, 89] Non-Binary CSPs –Bucket Elimination Dechter§4.4 [Dechter, 97] –Tree Decomposition Dechter§9.2.2 [DB Theory] 9

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Biconnected components [Freuder 82] Aka, Decomposition into Separable Graphs Consider a CSP whose graph has articulation nodes Assume that the largest biconnected component has size b Build a tree whose nodes are the biconnected components, considering that the articulation node belong to the parent Build an ordering using a preorder traversal of the tree The complexity is bound by the size of the largest biconnected component 10

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Tree Clustering Triangulate the graph –MinFill, Fig 4.4, page 89 Find maximal cliques –Max-Cardinality, Fig 4.5, page 90 Create a tree structure of cliques Repeat –Solve a clique (all solutions), at each node in tree –Apply DAC from leaves to root –Generate solutions in a BT-free manner 11 Dechter§9.2 [Dechter & Pearl, 89] a b c d e f d,f a,b,c b,c,d b,d,e

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction n: number of variables Triangulation: O(n 2 ) –MinFill and MaxCardinality: O(n+e) Finding cliques: linear in n Solving clusters: O(k r ), k is domain size, r is size of largest clique Generating a solution O(n t log t) –t is #tuples in each cluster, (sorted) domain of a ‘super’ variable –in best case, we have n cliques Complexity bounded by size of largest clique: –O(n 2 )+O(k r )+O(n t log t)=O(n k r log k r )=O(n r k r ) 12 Tree Clustering: Complexity Dechter§9.2 [Dechter & Pearl, 89] d,f a,b,c b,c,d b,d,e

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Outline Binary CSPs –Tree-Structured CSP graphs [Freuder, 82] –Cycle-Cutset Method Dechter§ [Dechter, 90] –Dynamic Dangle-Identification (GRED) [Zheng] –Decomp. into bi-connected components [Freuder, 82] –Tree Clustering Dechter§9.2 [Dechter & Pearl, 89] Non-Binary CSPs –Bucket Elimination Dechter§4.4 [Dechter, 97] –Tree Decomposition Dechter§9.2.2, [DB Theory] 13

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Bucket Elimination Dechter§4.4 Choose a variable ordering Create buckets for each variable –Place each constraint in the bucket of the deepest variable in its scope Create a tree node for each bucket Bottom up to root –Join relations in bucket –Project join on deepest bucket with common variables Top down: create solution BT-free 14 a b c d e f fd eb ed dc ba d bd cb ba a c | abc d | bdc e | bde f | fd ca b | ab a | a

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Outline Binary CSPs Non-Binary CSPs –Bucket Elimination [Dechter, 97] –Tree Decomposition Dechter§9.2.2, DB Theory Idea Definition Examples Parameters Usefulness 15

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Tree Decomposition Inspired from Database Theory (join tree, acyclic DBs) Organize the constraint network in a tree structure called join tree Label the tree nodes with –CSP variables (variable labeling) –CSP constraints (relation labeling) –Labels must obey rules Solving the CSP –Bottom up: joining relations & projecting them on parent –Top down: Generating the solution Complexity of solving the CSP is bound by width –Width: Max number of variables in a tree node - 1 –Hyperwidth: Max number of constraints in a tree node 16 {h8, h15} {1, 11, 17, 19} {h1, h2} {1, 2, 3, 4, 5, 6}{h9, h15} {11, 12, 17, 18, 19} {h2, h3} {3, 4, 5, 6, 7, 8}{h10, h14} {12, 16, 17, 18, 19} {h4, h5} {5, 6, 7, 8, 9}{h9, h13} {12, 15, 16, 18, 19} {h6} {7, 9, 10} {h10, h12} {12, 13, 14, 15, 18, 19} h1 h8 h3 h2 h6 h4 h7 h14 h12 h13 h15 h9 h11 h10

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Tree Decomposition: Definition A tree decomposition (T, ,  ) of a CSP P=(X,D,C) where T=(V,E),  = chi variable labeling function:  (v)  X  =psi relation labeling function:  (v)  C 1.Each constraint appears in at least on node in the tree, and all its variables are in that node 2.Nodes where any variable appears induce a single connected subtree (connectedness property) 17 Dechter§9.2.2 Definition 9.4 Page h1 h8 h3 h2 h6 h4 h7 h14 h12 h13 h15 h9 h11 h10 {h8, h15} {1, 11, 17, 19} {h1, h2} {1, 2, 3, 4, 5, 6}{h9, h15} {11, 12, 17, 18, 19} {h2, h3} {3, 4, 5, 6, 7, 8}{h10, h14} {12, 16, 17, 18, 19} {h4, h5} {5, 6, 7, 8, 9}{h9, h13} {12, 15, 16, 18, 19} {h6} {7, 9, 10} {h10, h12} {12, 13, 14, 15, 18, 19}

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Tree Decomposition: Examples 18 HINGE TCLUSTER Gyssens et al., 1994 HYPERCUTSET Gottlob et al., 2000 TCLUSTER Dechter & Pearl, 1989 BICOMP Freuder, 1985 HYPERTREE Gottlob et al., 2002 HINGE Gyssens et al., 1994 CaT CUT HINGE + TRAVERSE CUTSET Dechter, 1987 Heuristics proposed by Yaling Zheng in 2005

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Tree Decomposition: Parameters For a given decomposition –Treewidth (tw) Maximum number of variables in any node in tree - 1 –Hyperwidth (hw) Maximum number of constraints in any node in tree For a given hypergraph –Treewidth (tw) Minimum tw of all possible decompositions –Hyperwidth (hw) Minimum hw of all possible decompositions 19

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Tree Decompostion: Usefulness Theory: Characterize tractable CSPs –Complexity is bounded tree/hyper width –Fixed parameter complexity: independent of number of variables Practice: Use structure to solve CSPs –Bottom up: join relations & project on parents –Top down: generating solution BT-free 20

Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction Summary Constraint networks –Hypergraph, dual graph, primal graph Binary CSPs –Tree-Structured CSP graphs [Freuder, 82] –Cycle-Cutset Method Dechter§ [Dechter, 90] –Dynamic Dangle-Identification (GRED) [Zheng] –Decomp. into bi-connected components [Freuder, 82] –Tree Clustering Dechter§9.2 [Dechter & Pearl, 89] Non-Binary CSPs –Bucket Elimination [Dechter, 97] –Tree Decomposition Dechter§9.2.2 [DB Theory] 21