Consistency Methods for Temporal Reasoning Lin XU Constraint Systems Laboratory Advisor: Dr. B.Y. Choueiry April, 2003 Supported by a grant from NASA-Nebraska,

Slides:



Advertisements
Similar presentations
Heuristic Search techniques
Advertisements

A* Search. 2 Tree search algorithms Basic idea: Exploration of state space by generating successors of already-explored states (a.k.a.~expanding states).
Foundations of Constraint Processing Temporal Constraints Networks 1Topic Foundations of Constraint Processing CSCE421/821, Spring
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Constraint Propagation Algorithms for Temporal Reasoning Marc Vilain, Henry Kautz (AAAI 1986) Presentation by Lin XU March 4, 2002.
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.
Optimal Rectangle Packing: A Meta-CSP Approach Chris Reeson Advanced Constraint Processing Fall 2009 By Michael D. Moffitt and Martha E. Pollack, AAAI.
Foundations of Constraint Processing More on Constraint Consistency 1 Foundations of Constraint Processing CSCE421/821, Spring
Technology to Support Individuals with Cognitive Impairment Martha E. Pollack Computer Science & Engineering University of Michigan.
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
Foundations of Constraint Processing, Spring 2008 April 16, 2008 Tree-Structured CSPs1 Foundations of Constraint Processing CSCE421/821, Spring 2008:
Algorithm Strategies Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
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.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
 i may require adding new constraints, except for… o i =1  domain filtering o i =   constraint filtering Robert Woodward & Berthe Y. Choueiry Constraint.
Foundations of Constraint Processing Evaluation to BT Search 1 Foundations of Constraint Processing CSCE421/821, Spring
Solvable problem Deviation from best known solution [%] Percentage of test runs ERA RDGR RGR LS Over-constrained.
Efficient Techniques for Searching the Temporal CSP Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science and Engineering.
Foundations of Constraint Processing, Fall 2005 Sep 20, 2005BT: A Theoretical Evaluation1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Hierarchical Constraint Satisfaction in Spatial Database Dimitris Papadias, Panos Kalnis And Nikos Mamoulis.
A New Efficient Algorithm for Solving the Simple Temporal Problem Lin Xu & Berthe Y. Choueiry Constraint Systems Laboratory University of Nebraska-Lincoln.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
Jean-Charles REGIN Michel RUEHER ILOG Sophia Antipolis Université de Nice – Sophia Antipolis A global constraint combining.
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:
Solving the Protein Threading Problem in Parallel Nocola Yanev, Rumen Andonov Indrajit Bhattacharya CMSC 838T Presentation.
WiOpt’04: Modeling and Optimization in Mobile, Ad Hoc and Wireless Networks March 24-26, 2004, University of Cambridge, UK Session 2 : Energy Management.
Cut-and-Traverse: A new Structural Decomposition Method for CSPs Yaling Zheng and Berthe Y. Choueiry Constraint Systems Laboratory Computer Science & Engineering.
Developing a Deterministic Patrolling Strategy for Security Agents Nicola Basilico, Nicola Gatti, Francesco Amigoni.
Chao Chen Wednesday, February 26, Temporal Constraint Networks Chapter 12 Chao Chen CSCE Advanced Constraint Processing.
Constraint Systems Laboratory March 26, 2007Reeson–Undergraduate Thesis1 Using Constraint Processing to Model, Solve, and Support Interactive Solving of.
CS121 Heuristic Search Planning CSPs Adversarial Search Probabilistic Reasoning Probabilistic Belief Learning.
1 Bandwidth Allocation Planning in Communication Networks Christian Frei & Boi Faltings Globecom 1999 Ashok Janardhanan.
Two Discrete Optimization Problems Problem #2: The Minimum Cost Spanning Tree Problem.
Advanced Constraint Processing, Fall 2009 Temporal Constraints Networks 4/23/20091Topic Advanced Constraint Processing CSCE , Fall 2009:
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 2 Ryan Kinworthy CSCE Advanced Constraint Processing.
Advanced Constraint Processing, Fall 2009 An Efficient Consistency Algorithm for the Temporal Constraint Satisfaction Problem Berthe Y. Choueiry & Lin.
Distributed Constraint Optimization * some slides courtesy of P. Modi
Copyright R. Weber Search in Problem Solving Search in Problem Solving INFO 629 Dr. R. Weber.
Tractable Symmetry Breaking Using Restricted Search Trees Colva M. Roney-Dougal, Ian P. Gent, Tom Kelsey, Steve Linton Presented by: Shant Karakashian.
CONSTRAINT PROGRAMMING Computer Science Seminar April 9 th, 2004 Kerem Kacel.
Because the localized R(*,m)C does not consider combinations of relations across clusters, propagation between clusters is hindered. Synthesizing a global.
Advanced Constraint Processing, Spring 2013 Temporal Constraints Networks 1/9/20131Temporal Reasoning Advanced Constraint Processing CSCE 921, Spring 2013:
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
1 CS B551: Elements of Artificial Intelligence Instructor: Kris Hauser
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Wednesday, January 29, 2003CSCE Spring 2003 B.Y. Choueiry Directional Consistency Chapter 4.
Path Consistency for 1- General CSPs 2- STPs Peter Schlette Wesley Botham CSCE990 Advanced CP, Fall 2009.
Chapter 2) CSP solving-An overview Overview of CSP solving techniques: problem reduction, search and solution synthesis Analyses of the characteristics.
Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction 1 Foundations of Constraint Processing CSCE421/821, Spring 2009.
Eliminating non- binary constraints Toby Walsh Cork Constraint Computation Center.
Foundations of Constraint Processing, Spring 2009 February 20, 2009 Basic Consistency Methods 1 Foundations of Constraint Processing CSCE421/821, Spring.
Models of Greedy Algorithms for Graph Problems Sashka Davis, UCSD Russell Impagliazzo, UCSD SIAM SODA 2004.
1 Intro to AI Local Search. 2 Intro to AI Local search and optimization Local search: –use single current state & move to neighboring states Idea: –start.
Wolfgang Runte Slide University of Osnabrueck, Software Engineering Research Group Wolfgang Runte Software Engineering Research Group Institute.
Consistency Methods for Temporal Reasoning
A First Practical Algorithm for High Levels of Relational Consistency
An Empirical Study of the Performance
Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.
Path Consistency & Global Consistency Properties
Evaluation of (Deterministic) BT Search Algorithms
Evaluation of (Deterministic) BT Search Algorithms
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Evaluation of (Deterministic) BT Search Algorithms
Presentation transcript:

Consistency Methods for Temporal Reasoning Lin XU Constraint Systems Laboratory Advisor: Dr. B.Y. Choueiry April, 2003 Supported by a grant from NASA-Nebraska, CAREER Award # , and a gift from Honeywell Laboratories.

Lin Xu Tuesday, April 15, Outline Temporal Reasoning motivation & background Simple Temporal Problem (STP) & Temporal Constraint Satisfaction Problem (TCSP) what are they & how to solve them Contribution: 3 research questions their solutions empirical evidence Summary & future directions for research

Lin Xu Tuesday, April 15, Time, always time! Tom wants to serve tea Clear tea pot 3 min Clear tea cups 10 min Boil water 15 min With little reasoning, the task takes 18 min instead of 28 min

Lin Xu Tuesday, April 15, Temporal Reasoning in AI Temporal Logic Temporal Networks Qualitative: interval algebra, point algebra Before, after, during, etc. Quantitative: temporal constraint networks Metric: 10 min before, during 15 min, etc. Simple TP (STP) & Temporal CSP (TCSP)

Lin Xu Tuesday, April 15, Temporal Network: example Tom has class at 8:00 a.m. Today, he gets up between 7:30 and 7:40 a.m. He prepares his breakfast (10-15 min). After breakfast (5-10 min), he goes to school by car (20-30 min). Will he be on time for class?

Lin Xu Tuesday, April 15, Simple Temporal Network (STP ) Variable: Time point for an event Domain: A set of real numbers Constraint: distance between time points ( [5, 10]  5  P b -P a  10 ) Solution: A value for each variable such that all temporal constraints are satisfied

Lin Xu Tuesday, April 15, More complex example Tom has class at 8:00 a.m. Today, he gets up between 7:30 and 7:40 a.m. He either makes his breakfast himself (10-15 min), or gets something from a local store (less than 5 min). After breakfast (5-10 min), he goes to school either by car (20-30 min) or by bus (at least 45 min).

Lin Xu Tuesday, April 15, Possible questions Can Tom arrive school in time for class? Is it possible for Tom to take the bus? If Tom wanted to save money by making breakfast for himself and taking the bus, when should he get up?

Lin Xu Tuesday, April 15, Temporal CSP Constraint: a disjunction of intervals [10, 15]  [0, 5] Rest, same as STP Variable: Time point for an event Domain: A set of real numbers Solution: Each variable has a value that satisfies all temporal constraints

Lin Xu Tuesday, April 15, Temporal Networks: STP & TCSP Simple temporal problem (STP) One interval per constraint Can be solved in polynomial time Floyd-Warshall F-W algorithm (all-pairs shortest-paths) Temporal Constraint Satisfaction Problem (TCSP) A disjunction of intervals per constraint is NP-hard Solved with Backtrack search (BT-TCSP) [Dechter]

Lin Xu Tuesday, April 15, Solving the TCSP Formulate TCSP as a meta-CSP: Given Variables: Edges in constraint network Domains of variables: edge labels in constraint network A unique global constraint (  checking consistency of an STP) Find all solutions to the meta-CSP

Lin Xu Tuesday, April 15, BT search for meta-CSP big

Lin Xu Tuesday, April 15, Solving the TCSP Requires finding all solutions to the meta-CSP Every node in the search tree is an STP to be solved  An exponential number of STPs to be solved 

Lin Xu Tuesday, April 15, Questions addressed Is there a better algorithm for STP than F-W ? exploiting topology of the constraint graph exploiting semantic properties of the temporal constraints Is there a consistency filtering algorithm for reducing the size of TCSP? Can we improve performance of BT-TCSP By using a better STP solver? By avoiding to check STP consistency at every node? By exploiting the topology of the constraint graph?  again! By finding a ‘ good ’ variable ordering heuristic?

Lin Xu Tuesday, April 15, Contributions Two new algorithms for solving STP Partial Path Consistency [adapted from Bliek & Sam-Haroud]  STP [Xu & Choueiry, TIME 03] A new algorithm for filtering TCSP  AC [Xu & Choueiry, submitted] Three heuristics to improve search Articulation points (AP) [classical, never tested] New cycle check (NewCyc) [Xu & Choueiry, submitted] Edge ordering (EdgeOrd) [Xu & Choueiry, submitted]  Random generators: 2 for STP & 2 for TCSP

Lin Xu Tuesday, April 15, Contributions Two new algorithms for solving STP Partial Path Consistency [adapted from Bliek & Sam-Haroud]  STP [Xu & Choueiry, TIME 03] A new algorithm for filtering TCSP  AC [Xu & Choueiry, submitted] Three heuristics to improve search Articulation points (AP) [classical, never tested] New cycle check (NewCyc) [Xu & Choueiry, submitted] Edge ordering (EdgeOrd) [Xu & Choueiry, submitted]  Random generators: 2 for STP & 2 for TCSP

Lin Xu Tuesday, April 15, Algorithms for solving the STP GraphCostConsistencyMinimality F-W/PC Complete  (n 3 ) Yes DPC Not necessarily O (nW * (d) 2 ) very cheap YesNo PPC Triangulated O (n 3 ) usually cheaper than F-W/PC Yes  STP Triangulated Always cheaper than PPC Yes  Our approach requires triangulation of the constraint graph

Lin Xu Tuesday, April 15, Partial Path Consistency ( PPC ) Known features of PPC [Bliek & Sam-Haroud, 99] Applicable to general CSPs Triangulates the constraint graph In general, resulting network is not minimal For convex constraints, guarantees minimality (same as F-W, but much cheaper in practice) Adaptation of PPC to STP [this thesis] Constraints in STP are bounded difference, thus convex, PPC results in the minimal network

Lin Xu Tuesday, April 15,  STP [TIME 03]  STP considers the temporal graph as composed by triangles instead of edges Temporal graph F-W  STP PPC

Lin Xu Tuesday, April 15, Advantages of  STP A finer version of PPC Cheaper than PPC and F-W Guarantees the minimal network Automatically decomposes the graph into its bi-connected components binds effort in size of largest component allows parallellization Ø Best known algorithm for solving STP  use it in BT-TCSP where it is applied an exponential number of times

Lin Xu Tuesday, April 15, Finding the minimal STP

Lin Xu Tuesday, April 15, Determining consistency of STP

Lin Xu Tuesday, April 15, Contributions Two new algorithms for solving STP Partial Path Consistency [adapted from Bliek & Sam-Haroud]  STP [Xu & Choueiry, TIME 03] A new algorithm for filtering TCSP  AC [Xu & Choueiry, submitted] Three heuristics to improve search Articulation points (AP) [classical, never tested] New cycle check (NewCyc) [Xu & Choueiry, submitted] Edge ordering (EdgeOrd) [Xu & Choueiry, submitted]  Random generators: 2 for STP & 2 for TCSP

Lin Xu Tuesday, April 15, Filtering algorithm:  AC Remove inconsistent intervals from the label of edge before search. One global, exponential size constraint Polynomial number of polynomial-size ternary constraints

Lin Xu Tuesday, April 15,  AC reduces size of TCSP

Lin Xu Tuesday, April 15, It is powerful, especially under high density It uses special, poly-size data structures It is sound, effective, and cheap O (n |E |k 3 ) We show how to make it optimal [to be proved] It uncovers a phase transition in TCSP Advantages of  AC

Lin Xu Tuesday, April 15, Contributions Two new algorithms for solving STP Partial Path Consistency [adapted from Bliek & Sam-Haroud]  STP [Xu & Choueiry, TIME 03] A new algorithm for filtering TCSP  AC [Xu & Choueiry, submitted] Three heuristics to improve search Articulation points (AP) [classical, never tested] New cycle check (NewCyc) [Xu & Choueiry, submitted] Edge ordering (EdgeOrd) [Xu & Choueiry, submitted]  Random generators: 2 for STP & 2 for TCSP

Lin Xu Tuesday, April 15, Articulation points (AP) Decompose the graph into bi-connected components Solve each of them independently Binds the total cost by the size of largest component Classical solution, never implemented or tested

Lin Xu Tuesday, April 15, New cycle check (NewCyc) Checks presence of new cycles O (|E |) Checks consistency only if a new cycle is added

Lin Xu Tuesday, April 15, Advantages of NewCyc Reduces effort of consistency checking Does not affect # of nodes visited in BT-TCSP Restricts effort to new bi-connected component

Lin Xu Tuesday, April 15, Edge Ordering in BT-TCSP Repeat your graph

Lin Xu Tuesday, April 15, EdgeOrd Heuristic Order the edges using ‘ triangle adjacency ’ Priority list is a by-product of triangulation

Lin Xu Tuesday, April 15, Localized backtracking Automatic decomposition of the constraint graph  no need for AP Advantages of EdgeOrd

Lin Xu Tuesday, April 15, Experimental evaluations With/without:  AC, AP, NewCyc, EdgeOrd

Lin Xu Tuesday, April 15, Number of solutions

Lin Xu Tuesday, April 15, Nodes visited (without  AC)

Lin Xu Tuesday, April 15, Nodes visited (after  AC)

Lin Xu Tuesday, April 15, CC for DPC-TCSP (without  AC)

Lin Xu Tuesday, April 15, CC for DPC-TCSP (after  AC)

Lin Xu Tuesday, April 15, CC for PPC-A-TCSP (without  AC)

Lin Xu Tuesday, April 15, CC for PPC-A-TCSP (after  AC)

Lin Xu Tuesday, April 15, CC for  STP-TCSP BEST

Lin Xu Tuesday, April 15, Random generators STP generators Implemented two new Tested three GenSTP-1 [Xu & Choueiry, submitted] GenSTP-2 [Courtesy of Ioannis Tsamardinos] SPRAND (sub-class of SPLIB) [Public domain] TCSP generator Implemented two new Tested 1: GenTCSP-1 [Xu & Choueiry, submitted]

Lin Xu Tuesday, April 15, Output from thesis 1 paper accepted in TIME-ICTL papers submitted to CP papers submitted to IJCAI 2003 workshop on Spatial & Temporal Reasoning

Lin Xu Tuesday, April 15, Answers to Question I Is there a better algorithm for STP than F-W ? Exploiting topology: AP improves any STP solver Constraint semantic: convexity  STP is more efficient than F-W and PPC

Lin Xu Tuesday, April 15, Answer to Question II Is there a consistency filtering algorithm for reducing the size of TCSP?  AC reduces the size of meta-CSP by eliminating intervals from the domain of edge Effective, cheap, almost optimal

Lin Xu Tuesday, April 15, Answers to Question III Can we improve the performance of BT-TCSP by using a better STP solver? Yes,  STP is better than DPC to reduce cost of BT By avoiding to check STP consistency at every node? Yes, NewCyc avoids unnecessary checks & localizes updates By exploiting the topology of the constraint graph? Yes, using articulation points By finding a good variable ordering heuristic We propose EdgeOrd, significantly reduces cost of search

Lin Xu Tuesday, April 15, Future work Improve  AC, establish optimality Integrate  AC with ULT (a closure algorithm) with search, as in forward-checking Exploit interchangeability in BT-TCSP, best method for finding all solution

Lin Xu Tuesday, April 15, The End  Thank you for your attention  Questions & comments are welcome