18
Improving Backtrack Search For Solving the TCSP Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science and Engineering University of Nebraska-Lincoln { lxu | choueiry }@cse.unl.edu

Improving Backtrack Search For Solving the TCSP Lin Xu and Berthe Y. Choueiry

Embed Size (px)

DESCRIPTION

Improving Backtrack Search For Solving the TCSP Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science and Engineering University of Nebraska-Lincoln { lxu | choueiry }@cse.unl.edu. Outline. Temporal networks Contributions Results - PowerPoint PPT Presentation

Citation preview

Page 1: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Improving Backtrack Search For Solving the TCSPLin Xu and Berthe Y. Choueiry

Constraint Systems LaboratoryDepartment of Computer Science and Engineering

University of Nebraska-Lincoln{ lxu | choueiry }@cse.unl.edu

Page 2: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Outline

Temporal networks

Contributions

Results• 2 order of magnitude improvement in

solving the TCSP

Page 3: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Temporal networksSimple Temporal Problem• Floyd-Warshall, Bellman-Ford• STP [Time 03]

Disjunctive Temporal Problem• Search + heuristics [S&K 00, O&C 00, Tsa&P 03]

• Some of our results are applicable

Temporal Constraint Satisfaction Problem• Search + ULT [Schwalb & Dechter 97]

• Our contribution [this talk]

Page 4: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Solving TCSP TCSP is NP-hard, solved with BT [DM&P 91]

Contributions1. Combination with previous results STP [Time 03] 2. Techniques that exploit structure

AC, a preprocessing step– Show effectiveness of Articulation Points (AP) – NewCyc avoids unnecessary consistency checking– EdgeOrd is a variable ordering heuristic

Localized backtracking Implicit decomposition according to Articulation Points (AP)

3. Extensive evaluation on random problems

Page 5: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

TCSP as a meta-CSP

Use STP to solve individual STPs efficiently Especially effective on sparse networks Requires triangulation: Plan A, Plan B

Page 6: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Preprocessing the TCSP

AC• Single n-ary constraint• GAC is NP-hard

AC• Works on existing triangles• Poly # of poly constraints

Page 7: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Reduction of meta-CSP size

Page 8: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Advantages of AC Powerful, especially for dense TCSPs Sound and cheap O(n |E| k3) It may be optimal

• Uses polynomial-size data-structures: Supports, Supported-by

It uncovers a phase transition in TCSP

Page 9: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

New Cycle Check: NewCyc

Check presence of new cycles O(|E|) Check consistency (STP) only in a cycle is

added to the graph

Page 10: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Advantages of NewCyc Fewer consistency checking operations Operations restricted to new bi-connected

component

Does not affect # of nodes visited in search

Page 11: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Edge Ordering in BT-TCSP

Page 12: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

EdgeOrd heuristic Order edges using triangle adjacency Priority list is a by product of triangulation

Page 13: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Advantages of EdgeOrd Localized backtracking Automatic decomposition of the constraint graph

no need for explicit AP

Page 14: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Experimental evaluations

New random generator for TCSPs Guarantees 80% existence of a solution Averages over 100 samples Networks are not triangulated

Page 15: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

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

Page 16: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Effect of AC on #nodes visited

Page 17: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Cumulative improvementBefore, after AP, after NewCyc,… … and now (AC, STP, NewCyc, EdgeOrd)

Max on y-axis 5.000.000 Max on y-axis 18.000, 2 orders of magnitude improvement

Page 18: Improving Backtrack Search  For Solving the TCSP Lin Xu and  Berthe Y. Choueiry

Future work

Use AC in a look-ahead strategy Investigate incremental triangulation for

• dynamic edge-ordering

• using NewCyc in Disjunctive Temporal ProblemPlan B, heuristic [G. Noubir], algorithm [A. Berry]

Test with dynamic bundling [AusJCAI 01, SARA 02]