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

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Constraint Satisfaction Problems
Algorithm Design Techniques
Generating Random Spanning Trees Sourav Chatterji Sumit Gulwani EECS Department University of California, Berkeley.
0 - 0.
Addition Facts
1 Column Generation. 2 Outline trim loss problem different formulations column generation the trim loss problem master problem and subproblem in column.
Routing and Congestion Problems in General Networks Presented by Jun Zou CAS 744.
1 Weiren Yu 1,2, Xuemin Lin 1, Wenjie Zhang 1 1 University of New South Wales 2 NICTA, Australia Towards Efficient SimRank Computation over Large Networks.
Scalable and Dynamic Quorum Systems Moni Naor & Udi Wieder The Weizmann Institute of Science.
Problems and Their Classes
Addition 1’s to 20.
Week 1.
Local Search Jim Little UBC CS 322 – CSP October 3, 2014 Textbook §4.8
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) Oct, 5, 2012.
Choosing an Order for Joins
1/22 Worst and Best-Case Coverage in Sensor Networks Seapahn Meguerdichian, Farinaz Koushanfar, Miodrag Potkonjak, and Mani Srivastava IEEE TRANSACTIONS.
1 Today’s class Interleaving backtracking and consistency checking Variable-ordering heuristics Value-ordering heuristics Intelligent backtracking Marie.
Constraint Satisfaction Problems
Interval Graph Test.
Variational Methods for Graphical Models Micheal I. Jordan Zoubin Ghahramani Tommi S. Jaakkola Lawrence K. Saul Presented by: Afsaneh Shirazi.
ALIMENTATION AGRICULTURE ENVIRONNEMENT Max-CSP solver competition 2008 toulbar2 Marti Sanchez 1, Sylvain Bouveret 2, Simon de Givry 1, Federico Heras 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.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
Lauritzen-Spiegelhalter Algorithm
IJCAI Russian Doll Search with Tree Decomposition Martí Sànchez, David Allouche, Simon de Givry, and Thomas Schiex INRA Toulouse, FRANCE.
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.
Optimal Rectangle Packing: A Meta-CSP Approach Chris Reeson Advanced Constraint Processing Fall 2009 By Michael D. Moffitt and Martha E. Pollack, AAAI.
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:
Junction Trees: Motivation Standard algorithms (e.g., variable elimination) are inefficient if the undirected graph underlying the Bayes Net contains cycles.
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.
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:
1 Directional consistency Chapter 4 ICS-275 Spring 2007.
Foundations of Constraint Processing, Fall 2005 October 20, 2005Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Belief Propagation, Junction Trees, and Factor Graphs
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.
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.
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.
1 Variable Elimination Graphical Models – Carlos Guestrin Carnegie Mellon University October 11 th, 2006 Readings: K&F: 8.1, 8.2, 8.3,
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
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 5 Constraint Satisfaction Problems
Foundations of Constraint Processing Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Spring
R-Trees: A Dynamic Index Structure For Spatial Searching Antonin Guttman.
Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction 1 Foundations of Constraint Processing CSCE421/821, Spring 2009.
1 Variable Elimination Graphical Models – Carlos Guestrin Carnegie Mellon University October 15 th, 2008 Readings: K&F: 8.1, 8.2, 8.3,
Structure-Based Methods Foundations of Constraint Processing
Consistency Methods for Temporal Reasoning
Lectures on Network Flows
Foundations of Constraint Processing
Structure-Based Methods Foundations of Constraint Processing
Structure-Based Methods Foundations of Constraint Processing
Structure-Based Methods Foundations of Constraint Processing
Constraints and Search
Variable Elimination Graphical Models – Carlos Guestrin
Improving the Performance of Consistency Algorithms by Localizing and Bolstering Propagation in a Tree Decomposition Shant Karakashian, Robert J. Woodward.
Directional consistency Chapter 4
Structure-Based Methods Foundations of Constraint Processing
An Introduction Structure-Based Methods
Structure-Based Methods Foundations of Constraint Processing
Presentation transcript:

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

Overview Contributions of the Paper Context of the Paper Algorithms – Tree Clustering – Adaptive Consistency Relative Merits Conclusion Related algorithms 2

Contributions of the Paper Introduces Tree Clustering (T-C) for backtrack- free search Introduces the Adaptive Consistency (A-C) algorithm Compares the two algorithms 3

Context Two ways to restrict CSPs to make finding the minimal CSP efficient – Topology of constraint graph – Types of constraints T-C & A-C – Target the topology: tree – Are applicable to binary & non-binary CSPs Two ways to transform a constraint graph into a tree – Remove redundant arcs in dual graphs (join tree) – Form larger clusters of c-variables (simulates a join tree) 4

Definitions Hyper, dual, and primal graphs 5 h8 h7 h1 h5 h3 h4 h6 h HypergraphDual graphPrimal graph h3 h2 h4 h7 h6 h8 h5 The discussion focuses on primal graphs for simplicity

From Join Graph to Join Tree Join Graph – Start w/ the dual graph, remove redundant edges while maintaining the connectedness property – Connectedness property: For each two nodes sharing a variable, there is at least one path of labeled arcs containing the shared variable Join Tree – When the join graph is a tree, the dual CSP can be solved BT free w/ directional arc consistency – What if there isn’t a join tree?  The idea for Tree Clustering ACECDE AEFABC A CE EAC C AE ACECDE AEFABC CE AE AC

Motivating Problem 7 Constraint Graph D BA C E F G Domains: {1, 2, 3, 4, 5} A solution G > F C ≠ D C < A C < BD < A D < B F > BE > B G > E A ≠ B

Overview Contributions of the Paper Context of the Paper Algorithms – Tree Clustering (T-C) – Adaptive Consistency (A-C) Relative Merits Conclusion Related Algorithms 8

Tree Clustering (T-C): Idea A CSP organized as a join tree can be solved efficiently Tree Clustering Algorithm – Solves a CSP by breaking it into subproblems – Triangulates the primal graph – Solves subproblems & combines the solutions 9 D BA C E F G DB AC EF G ABCD BED DFE EFG BD DE EF

ABCD BED DFE EFG BD DE EF 4312, 5312, 5432, … 342, 351, 221, … 234, 415, 153, … 435, 123, 112, … Tree Clustering (T-C): Algorithm 1.Triangulate the primal graph 2.Identify all the maximal cliques in the primal chordal graph 3.Form a join tree 4.Solve the subproblems – Each cluster becomes single variable 5.Solve the tree problem – Perform DAC from leaves to root – Instantiate BT-free from root to leaves 10 DB AC EF G

Tree Clustering (T-C): Costs 1.Given a CSP and its primal graph generate a chordal primal graph: O(n 2 ) 2.Identify all the maximal cliques in the primal chordal graph: O(|E’|) 3.Form the dual graph: O(n) 4.Solve the sub problems: O(k r ) where k=domain size 5.Solve the tree problem: O(n ∙ t log t)… 11 DB AC EF G ABCD BED DFE EFG BD DE EF 4312, 5312, 5432, … 342, 351, 221, … 234, 415, 153, … 435, 123, 112, …

Tree Clustering (T-C): Total Cost Dominated by O(n ∙ t log t) – t is the largest number of solutions in a cluster, t ≤ k r – Time: O(n ∙ k r ∙ r log k) = O(nr ∙ k r ) – Space: O(n ∙ k r ) 12

Overview Contributions of the Paper Context of the Paper Algorithms – Tree Clustering (T-C) – Adaptive Consistency (A-C) Relative Merits Conclusion Related Algorithms 13

Adaptive Consistency (A-C) An ordered constraint graph is backtrack-free if the level of directional strong consistency along this order is greater than the width of the ordered graph Beware – Enforcing i-consistency for i > 2 often requires the addition of constraints which increase the width 14

Adaptive Consistency (A-C): Idea Given an ordering d, – d-i-consistency is defined recursively – letting i change dynamically from node to node (A-C later redefined as bucket elimination) 15

Adaptive Consistency: Algorithm 1.For i=n downto 1 do Steps Compute PARENTS(X i ) 3.Connect all PARENTS(X i ) 4.Perform Consistency(X i, PARENTS(X i ))  joining the constraints between X i & its parents 5.Build a solution BT-free in the ordering (X 1, …, X n ) 16 DB AC EF G C B D E F G A C B D E F G A tighten A by 2 consist ACB join CB join AC to tighten AC by 3c BE join CB join AC to tighten ACB by 4c tighten D by 2 consist EF join DE to tighten DE by 3 consist GF join GE to tighten EF by 3 consist

Adaptive Consistency: Cost Time: O(n ∙ exp(W*(d) + 1)), see Dechter page 109 Space: O(n ∙ k W*(d) ) 17

Overview Contributions of the Paper Context of the Paper Algorithms – Tree Clustering (T-C) – Adaptive Consistency (A-C) Relative Merits Conclusion Related Algorithms 18

Relative Merits Arcs resulting from triangulation match arcs added by adaptive consistency, for the same ordering Every cluster in T-C is represented in A- C by a series of smaller constraints Similar bounds – W*(d) + 1 = the size of the largest clique A-C eliminates the redundancy of generated solutions T-C enumerates all solutions that A-C represents via constraints. 19 DB AC EF G C B D E F G A DB AC EF G C B D E F G A

Conclusions Tree clustering groups c-nodes into a tree capable of supporting query answering backtrack-free Useful in systems that need to answer many questions about a dataset and where the environmental conditions undergo local changes Recently, researchers have started looking at T-C for solving the CSP, see BTD by Jégou & Terrioux (and others in soft CSPs) 20

Note On Triangulation Find the triangulated graph w/ smallest maximum clique: NP-hard Heuristics – Operation: when eliminating a node, connect all its neighbors, to form a clique (fill edges) – H1: choose the node w/ smallest degree – H2: choose the node that, after elimination, yields the smallest number of fill edges – H3: Given any ordering (e.g., maximal cardinality ordering), moralize the graph Elimination order is the reverse of instantiation order Elimination order of a triangulated graph is called a perfect elimination scheme – In this ordering, every node is simplicial: forms a clique w/ its neighbors – If you follow elimination order, no fill edges need to be added

Maximal Cardinality Ordering An approximation of min. width ordering Choose a node arbitrarily a simplicial node Among the remaining nodes, choose the one that is connected to the maximum number of already chosen nodes, break ties arbitrarily Repeat… Reverse the final order Tsang Dechter Fig 4.5

Two Additional Algorithms Maximal Cliques of the triangulated graph Join Tree of the triangulated graph