Problemadvanced
Temporal constraint satisfaction problem
Also called TCSP, Dechter-Meiri-Pearl temporal network.
Time points with binary constraints that each allow a union of intervals for the difference of two points. Consistency is NP-complete; one interval per constraint gives the polynomial STP.
The temporal constraint satisfaction problem (TCSP) of Dechter, Meiri and Pearl (1991) asks whether time points can be placed so that, for each constrained pair, the difference of the two times lies in one of a few given intervals. It differs from the simple temporal problem, where each constraint is one interval, and from a system of difference constraints, where each constraint is one inequality and all must hold together: in a TCSP each constraint is a disjunction. That one change makes consistency NP-complete, while the STP and difference constraints are solved by shortest paths. A TCSP is consistent exactly when one of its labelings, a choice of one interval for every constraint, is a consistent STP.
In plain words
Each event has an unknown time. A rule between two events no longer says "between 10 and 20 minutes later". It says "between 10 and 20 minutes later, or between 40 and 50 minutes later". Each rule gives a short list of allowed gaps.
If you pick one gap from each list, you get the simple kind of problem, which a shortest path method solves fast. So one way to solve a TCSP is to try the picks one after another. The number of picks grows very fast with the number of rules, and no method is known that always avoids this.
Definition
A TCSP has real variables , the time points, and binary constraints. A constraint is a finite set of closed intervals and means
A solution is an assignment of reals that meets every constraint. The TCSP is consistent if it has a solution. The minimal network gives for each pair the set of values of over all solutions, as a union of intervals. Write for the number of constraints and for the largest number of intervals in a constraint. Dechter, Meiri and Pearl allow open and half-open intervals as well; closed ones are enough for the results here.
The input bounds are rationals or integers. The main questions are consistency, one solution, and the minimal network.
Variants
- Simple temporal problem. Every constraint has one interval (). Consistency and the minimal network are polynomial; see simple temporal problem.
- Disjunctive temporal problem. A constraint is a disjunction of difference inequalities that may be on different pairs of points. The disjunctive temporal problem contains the TCSP as the case where every disjunct is on the same pair.
- Qualitative point constraints. Relations and their unions between points form the point algebra, which is polynomial. A point relation is a TCSP constraint with unbounded intervals, for example for .
- Integer time. With integer bounds, a consistent TCSP has an integer solution, since each labeling is an STP with integer data.
- Uncertainty. When nature sets some durations, the question becomes controllability; see simple temporal network with uncertainty.
Examples
A small TCSP. Let , and . It has two labelings.
- With : and , so , and .
- With : and , so , and .
Both labelings are consistent, and the minimal network is the union of their minimal networks: , and . The bounds of the convex hulls, , and , would allow , which no solution has.
Three-colouring as a TCSP. For a graph , take a point and a point for each vertex, with
The first constraint gives each vertex a colour . Then is an integer in , and the edge constraint says it is not 0. So the TCSP is consistent exactly when is 3-colourable. A triangle gives a consistent TCSP, and the complete graph on four vertices gives an inconsistent one.
Fragmentation. Composing with gives . Path consistency composes and intersects such sets, so the number of intervals in a constraint can grow at each step.
Known algorithms
| method | output | worst-case time | notes |
|---|---|---|---|
| decomposition into labelings (Dechter, Meiri and Pearl, 1991) | consistency and the minimal network | solve the STP of each labeling with Floyd-Warshall and take the union | |
| backtracking over labelings | consistency and one solution | for edges | test each partial labeling as an STP with Bellman-Ford; add forward checking or conflict-directed backjumping |
| path consistency on the TCSP | a tighter equivalent network | exponential in general | it terminates, but the number of intervals can grow (Schwalb and Dechter, 1993) |
| ULT (Schwalb and Dechter, 1993) | a tighter equivalent network | polynomial | approximates path consistency without fragmentation; used to prune the search |
| difference logic solvers | consistency and one solution | exponential in the worst case | each constraint becomes a clause of difference atoms |
The decomposition and the backtracking search are exact. Path consistency and ULT are not decision procedures on their own: they can leave an inconsistent network unchanged. They are used to shrink the constraints before or during the search.
Bounds
NP-completeness (Turing model, rational bounds in binary). TCSP consistency is NP-complete. It is in NP: a labeling is a certificate of size , and the STP of the labeling is checked for a negative cycle in polynomial time. It is NP-hard: the three-colouring example above is a polynomial-time reduction from graph colouring with three colours, which is NP-complete. The hardness is already present with integer bounds of size 2 and at most three intervals per constraint. Dechter, Meiri and Pearl (1991) proved NP-hardness by a reduction of their own.
Upper bound (word-RAM). The decomposition method costs : there are at most labelings and each STP costs with Floyd-Warshall. The minimal network is the union of the minimal networks of the consistent labelings, so the same bound covers it.
Polynomial cases (word-RAM). With the problem is an STP, for consistency and for the minimal network. When the constraint graph is a tree, every constraint can be met on its own, so a tree TCSP is consistent exactly when no constraint is empty; the solution is built from a root outwards.
Reductions
- To STPs. A TCSP is consistent if and only if some labeling is, and each labeling is a simple temporal problem. This is the basis of every exact method above.
- From graph colouring. The example above, with three intervals per vertex constraint and two per edge constraint.
- To the disjunctive temporal problem. A constraint is the disjunction of the conjunctions . Each conjunction is two difference atoms, so a TCSP is a DTP after the standard split of each interval, or directly a set of clauses in difference logic.
- From the point algebra. Each relation of the point algebra is a TCSP constraint with unbounded intervals, so qualitative point networks are a special case.
Applications
- Scheduling with alternative time windows: a task that runs in the morning slot or in the afternoon slot, or a satellite pass that can be used on one of several orbits.
- Temporal planning, where actions may be ordered in more than one way and each order gives a different labeling.
- Combining metric and qualitative information in temporal databases and in medical and legal reasoning about events.
References
- Rina Dechter, Itay Meiri and Judea Pearl, Temporal constraint networks, Artificial Intelligence 49(1-3), 1991, pages 61 to 95 (the TCSP and its minimal network, the NP-hardness of consistency, the decomposition into STPs in O(n^3 l^e) time, and path consistency on TCSPs)
- Eddie Schwalb and Rina Dechter, Coping with disjunctions in temporal constraint satisfaction problems, Proceedings of AAAI-93, AAAI Press, 1993, pages 127 to 132 (path consistency is exponential on TCSPs, and the polynomial ULT algorithm that approximates it)
- Eddie Schwalb and Rina Dechter, Processing disjunctions in temporal constraint networks, Artificial Intelligence 93, 1997, pages 29 to 61 (the journal version, with the fragmentation of intervals under path consistency and its approximations)
- Rina Dechter, Constraint Processing, Morgan Kaufmann, 2003, Chapter 12, Temporal constraint networks
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 3ETFHM Edit this page History Report an error Markdown