Algorithm Search⌘K

Theoremadvanced

Tractable subclasses of the interval algebra

Also called Krokhin-Jeavons-Jonsson classification, interval algebra dichotomy.

Allen's interval algebra has exactly 18 maximal tractable subclasses, and every subclass not contained in one of the 18 is NP-complete (Krokhin, Jeavons and Jonsson 2003).

This theorem is the complete answer to the question "which kinds of interval constraints can be solved fast?". For every set SS of relations of Allen's interval algebra, consistency of networks with labels in SS is either in P or NP-complete, and it is in P exactly when SS is inside one of 18 explicit classes. Krokhin, Jeavons and Jonsson proved it in 2003. The Nebel-Bürckert theorem gives one of the 18, the ORD-Horn subclass, with its proof; this page states the whole classification, which is an instance, for one infinite structure, of the dichotomy pattern known for finite domains.

Statement

For a set SS of interval relations, CSP(S)\mathrm{CSP}(S) is the consistency problem of qualitative constraint networks in which each pair has a label in SS or no constraint (the universal relation). A subalgebra is a set of relations closed under converse, intersection and composition. CSP(S)\mathrm{CSP}(S) and CSP(⟨S⟩)\mathrm{CSP}(\langle S \rangle), where ⟨S⟩\langle S \rangle is the subalgebra generated by SS, are equivalent under polynomial reductions: intersection is two constraints on one pair, converse is the same constraint read backwards, and x(R⋄T)zx \mathrel{(R \diamond T)} z is xRyx \mathrel{R} y, yTzy \mathrel{T} z with a new interval yy, since the interval table is strong.

Theorem (Krokhin, Jeavons and Jonsson 2003). There are exactly 18 maximal tractable subalgebras of the interval algebra: the ORD-Horn class H\mathcal{H}, the class A≡\mathcal{A}_{\equiv}, the classes Sp\mathcal{S}_p, Sd\mathcal{S}_d, So\mathcal{S}_o, S∗\mathcal{S}^{*}, Ep\mathcal{E}_p, Ed\mathcal{E}_d, Eo\mathcal{E}_o, E∗\mathcal{E}^{*}, and the classes A1,…,A4\mathcal{A}_1, \ldots, \mathcal{A}_4 and B1,…,B4\mathcal{B}_1, \ldots, \mathcal{B}_4. For every set SS of relations: if SS is contained in one of the 18, CSP(S)\mathrm{CSP}(S) is in P; otherwise CSP(S)\mathrm{CSP}(S) is NP-complete.

Two of the classes are easy to describe. H\mathcal{H} has 868 relations, counting the empty one. A≡\mathcal{A}_{\equiv} consists of the 212=40962^{12} = 4096 relations that contain eqeq, plus the empty relation, 4097 in all. The S\mathcal{S} classes are defined through what a relation says about the starting points of the two intervals, and the E\mathcal{E} classes are their mirror images for the end points; the exact definitions of all 18 are in the paper.

In plain words

Constraints between intervals can be easy or hard to solve, depending on which kinds you allow. This result lists every way to stay easy. There are eighteen largest easy families. If all your constraints belong to one family, a fast method decides whether they can be met. If they do not fit in any single family, the problem is as hard as any puzzle whose answers are easy to check. There is no middle ground. One family is the one of Nebel and Bürckert, the only one that allows every exact relation. Another is trivial: if every constraint allows the two intervals to be the same, make all intervals the same.

Proof

Proof sketch. The theorem has two halves.

Tractability. Each of the 18 classes needs its own algorithm.

  • A≡\mathcal{A}_{\equiv}: if some label is empty, answer no; otherwise every label contains eqeq, and setting all intervals to (0,1)(0, 1) is a solution.
  • H\mathcal{H}: algebraic closure decides consistency, by the Nebel-Bürckert theorem, with a full proof on that page.
  • The S\mathcal{S} and E\mathcal{E} classes, found by Drakengren and Jonsson (1997): the algorithms first deal with what the labels say about the starting points (or end points), a point algebra problem, and then with the remaining constraints.
  • The Ai\mathcal{A}_i and Bi\mathcal{B}_i classes: polynomial algorithms of the same kind, given in the 2003 paper.

Hardness and completeness of the list. Membership in NP holds for every SS (NP-completeness of the interval algebra). For the rest, by the equivalence above it suffices to show that every subalgebra not contained in one of the 18 contains a relation set already known to be NP-complete. Krokhin, Jeavons and Jonsson do this by a long case analysis over the relations that generate such a subalgebra, using algebraic facts about the 18 classes to prune the cases. Each case ends in a set of relations that is NP-complete by a reduction in the style of the 3-SAT reduction for the full algebra. Finally, each of the 18 is maximal: adding any relation to it gives one of the hard sets. □\square

Consequences

  • Dichotomy. No set of interval relations has a complexity strictly between P and NP-complete, unless P = NP.
  • A decision procedure for the question itself. To know whether a given set SS is tractable, test whether SS lies inside one of 18 finite lists. A program can do this for any SS in time that depends only on the 8192 relations.
  • ORD-Horn is special. It is the only one of the 18 that contains all 13 base relations, which is why it is the one used to split labels in complete search: a search that reaches base relations must stay inside a class that has them.
  • Outside the 18. Any set of relations not inside one class gives an NP-complete problem, so for such labels a complete solver must search.

Tightness

  • Maximal means maximal. For each of the 18 classes C\mathcal{C} and each relation R∉CR \notin \mathcal{C}, CSP(C∪{R})\mathrm{CSP}(\mathcal{C} \cup \{R\}) is NP-complete.
  • Containment in one class. A set that is covered by two classes together, but not contained in either, is NP-complete by the theorem. Being a union of tractable pieces is not enough.
  • Small hard sets. The six labels {d}\{d\}, {di}\{di\}, {m,mi}\{m, mi\}, {b,bi}\{b, bi\}, {m,s,bi}\{m, s, bi\} and {b,bi,m,mi}\{b, bi, m, mi\} of the 3-SAT reduction already give an NP-complete problem, so, unless P = NP, no one of the 18 contains them all.

History

Vilain and Kautz (1986) proved the full algebra NP-hard. Van Beek and others showed the pointisable relations tractable, and Nebel and Bürckert (1995) found the maximal ORD-Horn class. Drakengren and Jonsson (1997) found several more maximal tractable classes that do not contain all base relations. Krokhin, Jeavons and Jonsson published the complete classification in the Journal of the ACM in 2003, using the algebraic methods developed for finite-domain constraint problems.

References

  1. Andrei Krokhin, Peter Jeavons and Peter Jonsson, Reasoning about temporal relations, the tractable subalgebras of Allen's interval algebra, Journal of the ACM 50(5), 2003, pages 591 to 640 (the 18 maximal tractable subalgebras, their algorithms, and the proof that every other subalgebra is NP-complete)
  2. Bernhard Nebel and Hans-Jürgen Bürckert, Reasoning about temporal relations, a maximal tractable subclass of Allen's interval algebra, Journal of the ACM 42(1), 1995, pages 43 to 66 (the ORD-Horn class, the first known maximal tractable subclass)
  3. Thomas Drakengren and Peter Jonsson, Twenty-one large tractable subclasses of Allen's algebra, Artificial Intelligence 93, 1997, new tractable classes defined by the starting points or end points of intervals
  4. Thomas Drakengren and Peter Jonsson, Eight maximal tractable subclasses of Allen's algebra with metric time, Journal of Artificial Intelligence Research 7, 1997, maximal tractable classes that do not contain all base relations
  5. Marc Vilain and Henry Kautz, Constraint propagation algorithms for temporal reasoning, Proceedings of AAAI-86, 1986, pages 377 to 382, NP-hardness of the full algebra

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/D6G2W8/text.yaml