Advanced Constraint Processing, Fall 2009 An Efficient Consistency Algorithm for the Temporal Constraint Satisfaction Problem Berthe Y. Choueiry & Lin.

Slides:



Advertisements
Similar presentations
Foundations of Constraint Processing Lookahead Schemas 1 Foundations of Constraint Processing CSCE421/821, Spring
Advertisements

Foundations of Constraint Processing Temporal Constraints Networks 1Topic Foundations of Constraint Processing CSCE421/821, Spring
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 Constraint Satisfaction Problems. 2 Intro Example: 8-Queens Generate-and-test: 8 8 combinations.
This lecture topic (two lectures) Chapter 6.1 – 6.4, except 6.3.3
CIS Intro to AI 1 Interpreting Line Drawings & Constraint Satisfaction II Mitch Marcus CIS 391 – Fall 2008.
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
Foundations of Constraint Processing More on Constraint Consistency 1 Foundations of Constraint Processing CSCE421/821, Spring
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
A First Practical Algorithm for High Levels of Relational Consistency Shant Karakashian, Robert Woodward, Christopher Reeson, Berthe Y. Choueiry & Christian.
1 Refining the Basic Constraint Propagation Algorithm Christian Bessière and Jean-Charles Régin Presented by Sricharan Modali.
Foundations of Constraint Processing, Spring 2008 Evaluation to BT SearchApril 16, Foundations of Constraint Processing CSCE421/821, Spring 2008:
An Approximation of Generalized Arc-Consistency for Temporal CSPs Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
Improving Backtrack Search For Solving the TCSP Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science and Engineering.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
Foundations of Constraint Processing Evaluation to BT Search 1 Foundations of Constraint Processing CSCE421/821, Spring
©2007 Tarik Hadzic1 Lecture 11: Consistency Techniques 1. Arc Consistency 2. Directional Consistency 3. Generalized Arc Consistency Efficient AI Programming.
Efficient Techniques for Searching the Temporal CSP Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science and Engineering.
CS460 Fall 2013 Lecture 4 Constraint Satisfaction Problems.
A New Efficient Algorithm for Solving the Simple Temporal Problem Lin Xu & Berthe Y. Choueiry Constraint Systems Laboratory University of Nebraska-Lincoln.
Jean-Charles REGIN Michel RUEHER ILOG Sophia Antipolis Université de Nice – Sophia Antipolis A global constraint combining.
Constraint Satisfaction Problems Russell and Norvig: Chapter 3, Section 3.7 Chapter 4, Pages Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Constraint Propagation (Where a better exploitation of the constraints further reduces the need to make decisions) R&N: Chap. 5 + Chap. 24, p
1 Consistency algorithms Chapter 3. Spring 2007 ICS 275A - Constraint Networks 2 Consistency methods Approximation of inference: Arc, path and i-consistecy.
1.A finer version of PPC. 2.Cheaper than PPC and F-W. 3.Guarantees the minimal network. 4.Automatically decomposes the graph into its bi-connected components:
Chao Chen Wednesday, February 26, Temporal Constraint Networks Chapter 12 Chao Chen CSCE Advanced Constraint Processing.
CS541 Advanced Networking 1 Routing and Shortest Path Algorithms Neil Tang 2/18/2009.
© J. Christopher Beck Lecture 11: Constraint Programming 1.
26 April 2013Lecture 5: Constraint Propagation and Consistency Enforcement1 Constraint Propagation and Consistency Enforcement Jorge Cruz DI/FCT/UNL April.
Chapter 5 Outline Formal definition of CSP CSP Examples
Advanced Constraint Processing, Fall 2009 Temporal Constraints Networks 4/23/20091Topic Advanced Constraint Processing CSCE , Fall 2009:
Consistency Methods for Temporal Reasoning Lin XU Constraint Systems Laboratory Advisor: Dr. B.Y. Choueiry April, 2003 Supported by a grant from NASA-Nebraska,
1 Constraint Programming: An Introduction Adapted by Cristian OLIVA from Peter Stuckey (1998) Ho Chi Minh City.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
On Algorithms for Decomposable Constraints Kostas Stergiou Ian Gent, Patrick Prosser, Toby Walsh A.P.E.S. Research Group.
Advanced Constraint Processing, Spring 2013 Temporal Constraints Networks 1/9/20131Temporal Reasoning Advanced Constraint Processing CSCE 921, Spring 2013:
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
1 CS B551: Elements of Artificial Intelligence Instructor: Kris Hauser
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
Advanced Algorithm Design and Analysis (Lecture 14) SW5 fall 2004 Simonas Šaltenis E1-215b
Chapter 5 Constraint Satisfaction Problems
Chapter 2) CSP solving-An overview Overview of CSP solving techniques: problem reduction, search and solution synthesis Analyses of the characteristics.
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
Constraint Propagation influenced by Dr. Rina Dechter, “Constraint Processing”
1 Constraint Satisfaction Problems: Formulation, Arc Consistency & Propagation 1 Brian C. Williams October 13 th, 2004 Slides adapted from:
Contents 1 Systematic Search Guided by Local Search with Conflict-based Heuristic in N-queen problem Hyoung rae Kim Debasis Mitra Ph.D Florida Institute.
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.
Constraint Propagation CS121 – Winter Constraint Propagation2 Constraint Propagation … … is the process of determining how the possible values of.
Consistency Methods for Temporal Reasoning
A First Practical Algorithm for High Levels of Relational Consistency
Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.
CS B551: Elements of Artificial Intelligence
Constraint Propagation
Path Consistency & Global Consistency Properties
Foundations of Constraint Processing
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
Lookahead Schemas Foundations of Constraint Processing
Evaluation of (Deterministic) BT Search Algorithms
Problem Solving With Constraints
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
Arc Consistency – AC-1 PROCEDURE AC-1(Z, D, C) BEGIN
Constraint Graph Binary CSPs
Consistency algorithms
Presentation transcript:

Advanced Constraint Processing, Fall 2009 An Efficient Consistency Algorithm for the Temporal Constraint Satisfaction Problem Berthe Y. Choueiry & Lin Xu, AI Comm Presented by Shant Karakashian Advanced Constraint Processing CSCE , Fall /8/2009

Advanced Constraint Processing, Fall 2009 Outline Introduction Solving the TCSP Motivation: Constraint Propagation & Fragmentation ∆AC Algorithm Identifying the Triangles ∆AC Initialization Advantages of ∆AC Experiment Results Conclusion 29/8/2009

Advanced Constraint Processing, Fall 2009 Introduction Temporal relations in a problem can be represented & reasoned about by modeling the problem as a Temporal Constraint Satisfaction Problem (TCSP) TCSP can be solved by assigning a value to each time point, such that all the constraints are simultaneously satisfied A TCSP can have exponential number of STPs, where each STP can be solved efficiently 39/8/2009

Advanced Constraint Processing, Fall 2009 Outline Introduction Solving the TCSP Motivation: Constraint Propagation & Fragmentation ∆AC Algorithm Identifying the Triangles ∆AC Initialization Advantages of ∆AC Experiment Results Conclusion 49/8/2009

Advanced Constraint Processing, Fall 2009 Solving TCSP [Dechter et al. 91] Dechter described a backtrack search procedure for determining the consistency of the TCSP. TCSP is modeled as a meta-CSP – With n vertices, e edges, and k intervals per edge – The edges in TCSP are the variables in meta-CSP – The labels of an edge in TCSP form the domain of the corresponding variable – The only constraint is a global constraint, stating that the edge-interval pairs form a consistent STP 59/8/2009

Advanced Constraint Processing, Fall 2009 Outline Introduction Solving TCSP Motivation: Constraint Propagation & Fragmentation ∆AC Algorithm Identifying the Triangles ∆AC Initialization Advantages of ∆AC Experiment Results Conclusion 69/8/2009

Advanced Constraint Processing, Fall 2009 Constraint Propagation by Domain Filtering Constraint propagation effectively enhances the performance of search The single constraint for the meta-CSP has size O(k e ), which makes it unrealistic to apply GAC ∆AC remedies this difficulty by imposing a new ternary constraint over every existing triangle in the TCSP graph 8/25/2009 Topic 7 Arc consistency –Single n-ary constraint –GAC is NP-hard  AC –Works on existing triangles –Poly # of poly constraints

Advanced Constraint Processing, Fall 2009 Fragmentation Algorithms such as NPC-1 and NPC-2 modify intervals, which causes fragmentation  AC removes values that are not supported by the ternary constraint For every interval in the domain of an edge, there must exist intervals in the domains of the 2 other edges such that the 3 intervals verify the triangle inequality rule 8/25/2009 Topic 8 M [1,3] in e 3 has no support in e 1 and e 2  AC removes [1,3] from domain of e 3 ∆AC either keeps an interval as is or removes it, hence avoids fragmentation

Advanced Constraint Processing, Fall 2009 Outline Introduction Solving TCSP Motivation: Constraint Propagation & Fragmentation ∆AC Algorithm Identifying the Triangles ∆AC Initialization Advantages of ∆AC Experiment Results Conclusion 99/8/2009

Advanced Constraint Processing, Fall 2009 ∆AC Algorithm (1) ∆AC keeps support tables (à la AC-4 / AC-2001) – Calls InitializeSupport Initializes the queue of (edge,interval) pairs Builds 2 support tables: Supports, SupportedBy – Loops through the queue, checking if a (edge-interval) pair has a support in all triangles where the edge appears 8/25/2009 Topic 10 A= {a 1, a 2,.., a k }

Advanced Constraint Processing, Fall 2009 ∆AC Algorithm (2) Given the triangle: XYZ R EVISE A={a 1,a, 2,.., a k }, finding a support for each interval For a i in A If F IND S UPPORT (A, a i ) = false Then D ELETE a i from A E NQUEUE the intervals supported by a i F IND S UPPORT (A, a i ) For each interval b j in B, c k in C: If (b j c k )  a i is not empty Then A DD a to list of intervals supported by b j, c k Return true Return false 11 Y XZ C = {c 1,c 2,..,c k } B = {b 1,b 2,..,b k } A= {a 1, a 2,.., a k } 9/8/2009 M [1,3] in e 3 has no support in e 1 and e 2

Advanced Constraint Processing, Fall 2009 Outline Introduction Solving TCSP Motivation Filtering intervals with ∆AC Identifying the Triangles ∆AC Initialization Advantages of ∆AC Experiment Results Conclusion 129/8/2009

Advanced Constraint Processing, Fall 2009 Identifying the Triangles 13 XY ZW A={a 1, a 2 } C={c 1, c 2 } E={e 1, e 2 } D={d 1, d 2 } F = {[-∞,+∞)} The interval i 11 is an absorbing element: (-∞,+∞) (-∞,+∞) composed with any interval is: (-∞,+∞) (-∞,+∞) intersected with any interval x is x, not null B={b 1, b 2 } 9/8/2009

Advanced Constraint Processing, Fall 2009 Outline Introduction Solving TCSP Motivation Filtering intervals with ∆AC Identifying the Triangles ∆AC Initialization Advantages of ∆AC Experiment Results Conclusion 149/8/2009

Advanced Constraint Processing, Fall 2009 ∆AC: Initialization 15 (A, a 1 ) (A,a 2 ) (B,b 1 ) (B,b 2 ) (C,c 1 ) (C,c 2 ) (D,d 1 ) (D,d 2 ) Q XY ZW A={a 1, a 2 } C={c 1, c 2 } B={b 1, b 2 } D={d 1, d 2 } d 2 supports b 1 c 1 supports b 1 B={b 1 } C={c 2 } (B,b 1 ) 9/8/2009 b 1 supported by d 2 b 1 supported by c 1

Advanced Constraint Processing, Fall 2009 Outline Introduction Solving TCSP Motivation Filtering intervals with ∆AC Identifying the Triangles ∆AC Initialization Advantages of ∆AC Experiment Results Conclusion 169/8/2009

Advanced Constraint Processing, Fall 2009 Advantages of  AC Powerful, especially for dense TCSPs Sound and cheap O(n |E| k 3 ) It may be optimal – Uses polynomial-size data-structures: Supports, Supported-by as in AC-4 17 [borrowed from lecture slides] 9/8/2009

Advanced Constraint Processing, Fall 2009 Outline Introduction Solving TCSP Motivation Filtering intervals with ∆AC Identifying the Triangles ∆AC Initialization Advantages of ∆AC Experiment Results Conclusion 189/8/2009

Advanced Constraint Processing, Fall 2009 Reduction of meta-CSP’s size 19 [borrowed from lecture slides] 9/8/2009

Advanced Constraint Processing, Fall 2009 Effect of  AC on #nodes visited 20 [borrowed from lecture slides] 9/8/2009

Advanced Constraint Processing, Fall 2009 Cumulative Improvement 21 Before, after AP, after NewCyc,… … and now (  AC,  STP, NewCyc, EdgeOrd) Max on y-axis Max on y-axis , 2 orders of magnitude improvement [borrowed from lecture slides] 9/8/2009

Advanced Constraint Processing, Fall 2009 Outline Introduction Solving TCSP Motivation Filtering intervals with ∆AC Identifying the Triangles ∆AC Initialization Advantages of ∆AC Experiment Results Conclusion 229/8/2009

Advanced Constraint Processing, Fall 2009 Conclusion The paper proposes ∆AC that: – Defines ternary constraints on a TCSP – Propagates the constraints to filter the intervals in the TCSP that are the domains of the variables in the meta-CSP ∆AC is used as a preprocessing step – Should be also used for look-ahead Experiments show that the algorithm is able to filter the domains tremendously specially as the density of the graph increases 239/8/2009