Advanced Constraint Processing, Spring 2013 Temporal Constraints Networks 1/9/20131Temporal Reasoning Advanced Constraint Processing CSCE 921, Spring 2013:

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Foundations of Constraint Processing Temporal Constraints Networks 1Topic Foundations of Constraint Processing CSCE421/821, Spring
1 CMSC 471 Fall 2002 Class #6 – Wednesday, September 18.
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.
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.
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
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.
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.
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.
10/27 Exam post-mortem Phased-relaxation approach Order generalization (Partialization) Temporal Networks.
Foundations of Constraint Processing Evaluation to BT Search 1 Foundations of Constraint Processing CSCE421/821, Spring
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:
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.
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.
NP and NP- Completeness Bryan Pearsaul. Outline Decision and Optimization Problems Decision and Optimization Problems P and NP P and NP Polynomial-Time.
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,
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.
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
Data Structures & Algorithms Graphs
Chapter 3 Algorithms Complexity Analysis Search and Flow Decomposition Algorithms.
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 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.
Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
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.
Problem Solving with Constraints CSPs and Relational DBs1 Problem Solving with Constraints CSCE496/896, Fall
Temporal Plan Execution: Dynamic Scheduling and Simple Temporal Networks Brian C. Williams J/6.834J December 2nd,
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.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Foundations of Constraint Processing
CSPs and Relational DBs
Path Consistency & Global Consistency Properties
Foundations of Constraint Processing
Temporal Planning, Scheduling and Execution
More on Constraint Consistency
Problem Solving with Constraints
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
More on Constraint Consistency
Evaluation of (Deterministic) BT Search Algorithms
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
Problem Solving with Constraints
Directional consistency Chapter 4
Constraint Satisfaction Problems
Structure-Based Methods Foundations of Constraint Processing
Consistency algorithms
Presentation transcript:

Advanced Constraint Processing, Spring 2013 Temporal Constraints Networks 1/9/20131Temporal Reasoning Advanced Constraint Processing CSCE 921, Spring 2013: Berthe Y. Choueiry (Shu-we-ri) Avery Hall, Room 360 Tel: +1(402)

Advanced Constraint Processing, Spring 2013 Reading Required – Dechter’s book Chapter 12 Recommended – Most comprehensive review: Manolis Koubarakis, Temporal CSPs, Chapter 19 in the Handbook of CP – Excellent literature survey STP/TCSP/DTP by Planken (2007) Excellent literature survey STP/TCSP/DTP by Planken (2007) Main Papers – R. Dechter, I. Meiri, and J. Pearl, Temporal constraint networks. AIJ, Vol. 49, pp , 1991 – I. Meiri, Combining Qualitative and Quantitative Constraints in Temporal Reasoning, 1995 – Shapiro, Feldman, & Dechter, On the Complexity of Interval-based Constraint Networks, 1999 – L. Xu & B.Y. Choueiry, Improving Backtrack Search for Solving the TCSP, CP 2003, pp – L. Xu & B.Y. Choueiry, A New Efficient Algorithm for Solving the Simple Temporal Problem, TIME 2003, pp – B.Y. Choueiry & L. Xu, An Efficient Consistency Algorithm for the Temporal Constraint Satisfaction Problem, AI Comm. pp – Many more papers by A. Cesta, A. Oddi, P. van Beek, Golumbic & Shamir, M. Pollack, I. Tsamardinos, P. Morris,L. Planken etc. Acknowledgements : Chen Chao of Class of 2003, Xu Lin (MS 2003) 1/9/2013Temporal Reasoning2

Advanced Constraint Processing, Spring 2013 Outline Background Qualitative Temporal Networks 1.Interval Algebra 2.Point Algebra Quantitative Temporal Networks 1.Simple Temporal Problem (STP) 2.Temporal CSP 1/9/2013Temporal Reasoning3

Advanced Constraint Processing, Spring 2013 Usefulness of Temporal Reasoning Many application areas – Planning, scheduling, robotics, plan recognition, verification.. Reasoning about time requires – A mathematical representation of time Qualitative (before, after, not during) Quantitative (10 minutes before, ‘no less than 2 no more than 3 hours’, etc.) – Design of algorithms. In CP, it is search & propagation Approaches in AI – Temporal Logics – Temporal Networks (using CSPs) 1/9/2013Temporal Reasoning4

Advanced Constraint Processing, Spring 2013 Vocabulary for Temporal Reasoning in CSPs Temporal objects – Points, beginning and ending of some landmark events: BC/AD – Intervals, time period during which events occur or propositions hold: during class, a.m., p.m. Constraints: Qualitative & Quantitative – Qualitative: Relation between intervals / time points Interval algebra: before, during, starts, etc. Point algebra: – Quantitative: duration of an event in a numerical fashion Intensional relations: x – y < 10 Constraints of bounded differences: 5 < x – y < 10, (5,10) Domain of variables: continuous intervals in R 1/9/2013Temporal Reasoning5

Advanced Constraint Processing, Spring 2013 Reminders Minimality Path Consistency – Property & algorithms When PC guarantees minimality Dual graph 1/9/2013Temporal Reasoning6

Advanced Constraint Processing, Spring 2013 Outline Background Qualitative Temporal Networks 1.Interval Algebra 2.Point Algebra Quantitative Temporal Networks 1.Simple Temporal Problem (STP) 2.Temporal CSP 1/9/2013Temporal Reasoning7

Advanced Constraint Processing, Spring 2013 Interval Algebra (aka Allen Algebra) [Allen 83] RelationSymbolInverseIllustration X before Ybbi X equal Y= X meets Ymmi X overlaps Yooi X during Yddi X starts Yssi X finishes Yffi 1/9/2013Temporal Reasoning8 xy x y xy x y x y y x x y

Advanced Constraint Processing, Spring 2013 Interval Algebra: Qualitative TN Variables – An interval represent an event with some duration Constraints – Intervals I, J are related by a binary constraint – The constraint is a subset of the 13 basic relations r = { b, m, o, s, d, f, bi, mi, oi, si, di, fi, = } – Example: I {r 1,r 2,…,r k } J  (I r 1 J)  (I r 2 J)  …  (I r k J) – Enumerate atomic relations between two variables – We are not interested in The domains of the variables Explicit relations between the domains of variables 1/9/2013Temporal Reasoning9

Advanced Constraint Processing, Spring 2013 Interval Algebra Constraint Network See Definition 12.1, page 336 Variables: temporal intervals I and J Domain: set of ordered pairs of real numbers Constraints are subsets of the 13 relations –How many distinct relations? A solution is an assignment of a pair of numbers to each variable such that no constraint is violated 1/9/2013Temporal Reasoning10

Advanced Constraint Processing, Spring 2013 Interval Algebra: Example Story: John was not in the room when I touched the switch to turn on the light but John was in the room later when the light was on. CSP model: Variables: Switch – the time of touching the switch Light – the light was on Room – the time that John was in the room Constraints: Switch overlaps or meets Light: S {o, m} L Switch is before, meets, is met by or after Room: S {b, m, mi, bi} R Light overlaps, starts or is during Room: L {o, s, d} R 1/9/2013Temporal Reasoning11 Light RoomSwitch {o, m} {b, m, mi, a} {o, s, d}

Advanced Constraint Processing, Spring 2013 The Task: Get the Minimal Network 1/9/2013Temporal Reasoning12 Light RoomSwitch {o, m} {b, m} {o, s} Constraint Tightening A unique network equivalent to original network All constraints are subsets of original constraints Provides a more explicit representation Useful in answering many types of queries Light RoomSwitch {o, m} {b, m, mi, a} {o, s, d}

Advanced Constraint Processing, Spring 2013 Path Consistency in Interval Algebra (1) Intersection Composition computed using Table 12.2 page 339 1/9/2013Temporal Reasoning13 bsdom bbbb o m d sbb sbsdb o mb dbddb o m d sb oboo d sb o mb mbmo d sbb

Advanced Constraint Processing, Spring 2013 Path Consistency in Interval Algebra (2) Intersection Composition computed using Table 12.2 page 339 Qualitative Path Consistency (QPC-1 page 340) – Tighten every pair of constraints using – Until quiescence or inconsistency detected 1/9/2013Temporal Reasoning14

Advanced Constraint Processing, Spring 2013 Path Consistency in Interval Algebra (3) QPC-1 is sometimes guaranteed to generate minimal network, but not always – Because composing with d or o introduces disjunctions Solution – Use a backtracking scheme – With path-consistency as a look-ahead schema We cannot search on the variables – The variables are the intervals – So, the domains are continuous – We build and search the dual of the IA network 1/9/2013Temporal Reasoning15

Advanced Constraint Processing, Spring 2013 BT Search with QPC as Lookahead Dual graph representation Use constraints as variables Use common variables as edges 1/9/2013Temporal Reasoning16 {o, m} {o, s, d}{b, m, mi, a} Light Room Switch A minimal network Search with QPC as look-ahead Light Room Switch {o, m} {o, s} {b, m}

Advanced Constraint Processing, Spring 2013 Outline Background Qualitative Temporal Networks 1.Interval Algebra 2.Point Algebra Quantitative Temporal Networks 1.Simple Temporal Problem (STP) 2.Temporal CSP 1/9/2013Temporal Reasoning17

Advanced Constraint Processing, Spring 2013 Point Algebra (PA) [Vilain & Kautz 86] Each variable represents a time point Domain are real numbers Constraints – Express relative positions of 2 points – Three basic relations: P Q – Constraints are PA elements, subset of {, =} – How many possible distinct relations? Cheaper than IA: – 3 or 4-consistency guarantee minimal network – Reasoning tasks are polynomial O(n 3 ) 1/9/2013Temporal Reasoning18

Advanced Constraint Processing, Spring 2013 Point Algebra: Example Story: Fred put the paper down and drank the last of his coffee Modeling – IA: Paper {s,d,f,=} Coffee – PA: Paper : [x, y], Coffee:[z, t] Constraints: x z Alert: Conversion from IA to PA not always possible 1/9/2013Temporal Reasoning19 Coffee paper

Advanced Constraint Processing, Spring 2013 Path Consistency for Point Algebra Algorithm is basically the same as for IA Composition table ? means universal constraint Minimal network – Path consistency is sufficient for Convex PA (CPA) network Only have { } Exclude  – 4 consistency is needed for general PA (including  ) 1/9/2013Temporal Reasoning20 <=> <<<? =<=> >?>>

Advanced Constraint Processing, Spring 2013 Limitations of Point Algebra In some cases, PA cannot fully express the constraints Example: IA: Paper {b, a} Coffee 1/9/2013Temporal Reasoning21 paper coffeepaper coffee xyztxyzt y<z and t<x cannot exist simultaneously ztxyztxy

Advanced Constraint Processing, Spring 2013 Interval Algebra vs. Point Algebra Determining consistency of a statement in IA is NP-hard – Polynomial-time algorithm (Allen’s) sound but not complete PA constraint propagation is sound & complete – Time: O(n 3 ) and space: O(n 2 ) – PA trades off expressiveness with tractability – PA is a restricted form of IA – PA can be used to identify classes of easy case of IA Solution: Transform IA to PA – Solve IA as PA and – Translate back to IA, cost= O(n 2 ) 1/9/2013Temporal Reasoning22

Advanced Constraint Processing, Spring 2013 Outline Background Qualitative Temporal Networks 1.Interval Algebra 2.Point Algebra Quantitative Temporal Networks 1.Simple Temporal Problem (STP) 2.Temporal CSP 1/9/2013Temporal Reasoning23

Advanced Constraint Processing, Spring 2013 Quantitative Temporal Networks Constraints express metrics, distances between time points Express the duration of time – Starting point x 1 – End point x 2 – Duration = x 2 -x 1 Example – John’s travel by car from home to work takes him 30 to 40 minutes – or if he travels by bus, it takes him at least 60 minutes 30  x 2 - x 1  40 or 60  x 2 - x 1 1/9/2013Temporal Reasoning24

Advanced Constraint Processing, Spring 2013 Quantitative Network: Example 1/9/2013Temporal Reasoning25 Simple Temporal Problem Example 12.7 (page 345) x0 x4 x3 x2x1 [10,20] [30,40] [10,20] [20,30] [60,70] x0 =7:00am x1 John left home between 7:10 to 7:20 x2 John arrive work in 30 to 40 minutes x3 Fred left home 10 to 20 minutes before x2 x4 Fred arrive work between 8:00 to 8:10 Fred travel from home to work in 20 to 30 minutes

Advanced Constraint Processing, Spring 2013 Temporal networks: STP  TCSP  DTP 1/9/2013Temporal Reasoning26 Simple Temporal Problem (STP) Each edge has a unique (convex) interval Disjunctive Temporal Problem (DTP) Each constraint is a disjunction of edges TCSP  DTP[Stergiou & Koubarakis, 00] Temporal CSP (TCSP) Each edge has a disjunction of intervals STP  TCSP[Dechter+, 91]

Advanced Constraint Processing, Spring 2013 Outline Background Qualitative Temporal Networks 1.Interval Algebra 2.Point Algebra Quantitative Temporal Networks 1.Simple Temporal Problem (STP) 2.Temporal CSP 1/9/2013Temporal Reasoning27

Advanced Constraint Processing, Spring 2013 Simple Temporal Network (STP) A special class of temporal problems Can be solved in polynomial time An edge e ij : i  j is labeled by a single interval [a ij, b ij ] Constraint (a ij  x j - x i  b ij ) expressed by (x j - x i  b ij )  ( x i - x j  -a ij ) Example (x j - x i  20)  ( x i - x j  -10) 1/9/2013Temporal Reasoning28 i j [10, 20]

Advanced Constraint Processing, Spring 2013 Distance Graph of an STP The STP is transformed into an all-pairs- shortest-paths problem on a distance graph Each constraint is replaced by two edges: one + and one - Constraint graph  directed cyclic graph 1/9/2013Temporal Reasoning29 i j

Advanced Constraint Processing, Spring 2013 Solving the Distance Graph of the STP Run F-W all pairs shortest path (A special case of PC!) If any pair of nodes has a negative cycle  inconsistency If consistent after F-W  minimal & decomposable Once d-graph formed, assembling a solution by checking against the previous labelling Total time: F-W O(n 3 ) + Assembling O(n 2 ) = O(n 3 ). 1/9/2013Temporal Reasoning30 x4 x3 x2 x0 x

Advanced Constraint Processing, Spring 2013 Algorithms for solving the STP Consistency: Determine whether a solution exists Minimal network: Make intervals as tight as possible 1/9/2013Temporal Reasoning31 GraphComplexityConsistencyMinimality F-W Complete  (n 3 ) Yes DPC [Dechter+, 91] TriangulatedO (nW * (d) 2 ) very cheap YesNo PPC [Bliek & S-H 99] TriangulatedO (n 3 ) Usually cheaper than F-W/PC Yes  STP TriangulatedAlways cheaper than PPC Yes BF/incBF [Cesta & Oddi, 96] Source point is added O (en)YesNo

Advanced Constraint Processing, Spring 2013 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 Adaptation of PPC to STP – Constraints in STP are bounded difference, thus convex, PPC results in the minimal network 1/9/2013Temporal Reasoning32

Advanced Constraint Processing, Spring 2013  STP [Xu & Choueiry, 03]  STP is a refinement of PPC – Simultaneously update all edges in a triangle – Propagate updates through adjacent triangles 1/9/2013Temporal Reasoning33 Temporal graph F-W  STP PPC

Advanced Constraint Processing, Spring 2013 Advantages of  STP 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 Sweep through forth and back – Observed empirically, 2003 – Explained by Nic 4C, 2005 – Proved by Neil SRI, /9/2013Temporal Reasoning34

Advanced Constraint Processing, Spring 2013 Finding the minimal STP 1/9/2013Temporal Reasoning35

Advanced Constraint Processing, Spring 2013 Determining consistency of the STP 1/9/2013Temporal Reasoning36

Advanced Constraint Processing, Spring 2013 Recent Advances in STP [Planken+] Exploit structure: – Order variables linearly – Use a PEO or Max Cardinality ordering Apply Directional Path Consistency – Determines consistency Propagate down – Provides minimal network 1/9/2013Temporal Reasoning37

Advanced Constraint Processing, Spring 2013 Outline Background Qualitative Temporal Networks 1.Interval Algebra 2.Point Algebra Quantitative Temporal Networks 1.Simple Temporal Problem (STP) 2.Temporal CSP 1/9/2013Temporal Reasoning38

Advanced Constraint Processing, Spring 2013 Temporal CSP (TCSP) Variables – A set of variables with continuous domain – Each variable represents a time point Constraints – Each constraint is represented by a set of intervals { [1, 4], [6, 9], …, [20, 43] } – Unary constraint: a 1  x i  b 1 … – Binary constraint: a 1  x j - x i  b 1 … Solutions – A tuple x=  a 1, …, a n  is a solution if x 1 =a 1, x 2 =a 2,…, x n =a n do not violate any constraints 1/9/2013Temporal Reasoning39 x0 x4 x3 x2 x1 [10,20] [30,40]U [60,oo] [10,20] [20,30] U [40,50] [60,70]

Advanced Constraint Processing, Spring 2013 Temporal CSP We are interested in the following questions 1.Is it consistent?  consistency problem) 2.What are the possible time at which X i could occur?  Find the minimal domain problem) 3.What are all possible relationship between X i and X j ?  Find the minimal constraint problem 1/9/2013Temporal Reasoning40 x0 x4 x3 x2 x1 [10,20] [30,40]U [60,oo] [10,20] [20,30] U [40,50] [60,70]

Advanced Constraint Processing, Spring 2013 Solving the TCSP [Dechter+, 00] Formulate TCSP as a meta-CSP Find all the solutions to the meta-CSP Use  STP to solve the individual STPs efficiently But first, can we use some constraint propagation on the meta-CSP? 1/9/2013Temporal Reasoning41

Advanced Constraint Processing, Spring 2013 Preprocessing the TCSP 1/9/2013Temporal Reasoning42 Arc consistency –Single n-ary constraint –GAC is NP-hard  AC –Works on existing triangles –Poly # of poly constraints

Advanced Constraint Processing, Spring 2013  AC filters domains of TCSP  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 1/9/2013Temporal Reasoning43 M[1,3] in e 3 has no support in e 1 and e 2  AC removes [1,3] from domain of e 3

Advanced Constraint Processing, Spring 2013 Reduction of meta-CSP’s size 1/9/2013Temporal Reasoning44

Advanced Constraint Processing, Spring 2013 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 1/9/2013Temporal Reasoning45

Advanced Constraint Processing, Spring 2013 Improving search for the TCSP 1/9/2013Temporal Reasoning46 1.New cycle check 2.Edge Ordering

Advanced Constraint Processing, Spring 2013 Checking new cycles: NewCyc 1/9/2013Temporal Reasoning47 As a new edge is added at each step in search: Check the formation of new cycles O(|E|) Run  STP only when a new cycle is formed

Advanced Constraint Processing, Spring 2013 Advantages of NewCyc Fewer calls to  STP Operations restricted to new bi-connected component Does not affect # of nodes visited in search 1/9/2013Temporal Reasoning48

Advanced Constraint Processing, Spring 2013 Edge ordering during search Order edges using triangle adjacency Priority list is a by product of triangulation 1/9/2013Temporal Reasoning49

Advanced Constraint Processing, Spring 2013 Advantages of EdgeOrd 1/9/2013Temporal Reasoning50 Localized backtracking Automatic decomposition of the constraint graph  no need for explicit detection of articulation points

Advanced Constraint Processing, Spring 2013 Experimental evaluations 1/9/2013Temporal Reasoning51 New random generator for TCSPs Guarantees 80% existence of a solution Averages over 100 samples Networks are not triangulated

Advanced Constraint Processing, Spring 2013 Expected (direct) effects Number of nodes visited ( #NV ) –  AC reduces the size of TCSP – EdgeOrd localizes BT Consistency checking effort ( #CC ) – AP,  STP, NewCyc reduce number of consistency checking at each node 1/9/2013Temporal Reasoning52

Advanced Constraint Processing, Spring 2013 Effect of  AC on #nodes visited 1/9/2013Temporal Reasoning53

Advanced Constraint Processing, Spring 2013 Cumulative Improvement 1/9/2013Temporal Reasoning54 Before, after AP, after NewCyc,… … and now (  AC,  STP, NewCyc, EdgeOrd) Max on y-axis Max on y-axis , 2 orders of magnitude improvement

Advanced Constraint Processing, Spring 2013 Testing IncBF [Cesta & Oddi, 96] 1/9/2013Temporal Reasoning55 AlgorithmPerformance Ranking STPTCSP FW + AP DPC + AP BF + AP  STP worse better OK best worse OK - incBF + AP  STP + EdgeOrd + NewCyc incBF + AP + EdgeOrd + NewCyc good - good better best

Advanced Constraint Processing, Spring 2013 Summary Background Qualitative Temporal Networks 1.Interval Algebra 2.Point Algebra Quantitative Temporal Networks 1.Simple Temporal Problem (STP) 2.Temporal CSP 3.How about DTP? Introduced by Stergiou & Koubarakis Researched & used by Pollack & team Planken showed how to map DTP to TCSP 1/9/2013Temporal Reasoning56