On Finding a Solution in Temporal Constraint Satisfaction Problems

Alfonso Gerevini, Matteo CristaniIJCAI 1997

Abstract

In the field of Artificial Intelligence, temporal reasoning is a cornerstone for applications ranging from scheduling to natural language processing. While significant research has identified tractable subclasses of temporal constraints—those solvable in polynomial time—the focus has historically remained on consistency checking rather than the actual derivation of a valid timeline. This paper, authored by Alfonso Gerevini and Matteo Cristani, addresses this gap by providing efficient algorithms for finding solutions in three key tractable classes: ORD-Horn relations, Simple Temporal Problems (STP) with strict inequalities, and STPs augmented with inequations ($STP^{\neq}$).

Introduction

Temporal Constraint Satisfaction Problems (TCSPs) are typically categorized into qualitative and metric frameworks. Qualitative reasoning, such as Allen’s Interval Algebra, deals with relative orderings (e.g., "Event A occurs before Event B"), while metric reasoning, such as Simple Temporal Problems (STP), deals with quantitative distances (e.g., "Event A occurs 10 to 20 minutes after Event B").

For many of these problems, determining consistency—whether a valid schedule exists—is well-understood. However, the task of solution finding—assigning specific timestamps to every event—is often more complex or has been overlooked in algorithmic development. This paper provides the necessary algorithmic machinery to bridge this gap, focusing on the ORD-Horn class (the largest tractable fragment of Allen’s Algebra) and metric problems involving strict inequalities and inequations.

Algorithmic Frameworks

1. ORD-Horn and Qualitative Solutions

The ORD-Horn class is a significant subset of qualitative temporal relations because it is the maximal tractable subclass that includes all basic Allen relations. The authors propose a solution-finding method based on the TL-graph (Temporally Labeled graph).

By ensuring the network is path-consistent, the authors demonstrate that a solution can be derived by ordering variables based on the graph's edges. Their findings show that once path-consistency is established, finding a solution is computationally inexpensive, requiring only $O(n^2)$ time, where $n$ is the number of interval variables.

2. STPs with Strict Inequalities

Standard STP algorithms are designed for non-strict constraints (e.g., $x - y \leq 5$). Handling strict inequalities (e.g., $x - y < 5$) often introduces mathematical nuances that standard solvers ignore.

The authors introduce a relaxed network approach combined with an $\epsilon$-perturbation technique. By calculating a sufficiently small value $\epsilon$, they convert strict inequalities into non-strict ones. This transformation ensures that any solution found for the modified non-strict problem is guaranteed to be a valid solution for the original strict problem, allowing the use of existing, highly optimized STP solvers.

3. $STP^{\neq}$ and Inequations

The $STP^{\neq}$ class extends the standard STP by allowing inequations (e.g., $x - y \neq d$). Previous methods for checking consistency and finding solutions in this class were computationally heavy, often reaching $O(n^4)$.

Gerevini and Cristani utilize a d-graph (distance graph) to represent shortest paths between events. They demonstrate that an inequation $x - y \neq d$ is only violated if the constraints force the distance between $x$ and $y$ to be exactly $d$. By identifying these critical points in the d-graph, they reduce the complexity of both consistency checking and solution finding to $O(n^3 + k)$, where $k$ is the number of inequations.

Complexity Analysis and Results

The primary contribution of this work is the establishment of new upper bounds for the time complexity of solution discovery. The results are summarized below:

Problem Class Task Complexity
ORD-Horn Solution Finding (after path-consistency) $O(n^2)$
ORD-Horn Total Solution Finding $O(n^3)$
STP (Strict) Solution Finding $O(n^3)$
$STP^{\neq}$ Consistency Checking $O(n^3 + k)$
$STP^{\neq}$ Solution Finding $O(n^3 + k)$

These results represent a significant improvement, particularly for $STP^{\neq}$, which was previously bounded by $O(n^4)$.

Discussion and Limitations

While the algorithms presented offer substantial efficiency gains, they are specifically tailored to tractable subclasses. The general forms of Allen’s Interval Algebra and TCSPs remain NP-hard, meaning these polynomial-time algorithms cannot be applied directly to the most complex, non-restricted temporal problems.

Furthermore, the solution for $STP^{\neq}$ assumes a dense time domain (such as real numbers). In a discrete time domain (such as integers), the $\epsilon$-perturbation and inequation handling would require significant modification, as one cannot always "shift" a value by an arbitrarily small amount to avoid a specific point.

Conclusion

This paper provides a rigorous algorithmic foundation for moving beyond mere consistency checking in temporal reasoning. By reducing the complexity of solution finding in ORD-Horn and $STP^{\neq}$, the authors have provided the building blocks for more efficient temporal reasoners. These algorithms are particularly valuable as subroutines in larger, backtracking-based solvers that tackle NP-hard temporal problems by decomposing them into tractable sub-problems.

Summary updated

BibTeX
@inproceedings{gerevini1997finding,
  author = {Alfonso Gerevini and Matteo Cristani},
  title = {{On Finding a Solution in Temporal Constraint Satisfaction Problems}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1997},
}
Figure