Algorithm Search⌘K

Modeladvanced

Point algebra

Also called qualitative point algebra, time point algebra.

The qualitative calculus of time points with the base relations <, = and >; its 8 relations include not-equal, and every network over it is decided in polynomial time.

The point algebra is the simplest qualitative constraint calculus: its objects are points on a time line, and the only thing it can say about two points is whether the first is before, equal to or after the second, or a union of these. It is a model of computation in the sense that it fixes what a reasoning problem may state and what an algorithm may ask: every question is about the order of finitely many unknown points, and the answers do not depend on any numbers. Vilain and Kautz introduced it in 1986 as the tractable counterpart of Allen's interval algebra: unlike intervals, point networks are decided in polynomial time, and the exact algorithm is on the page point algebra consistency.

The machine

The domain is a dense linear order without endpoints, usually R\mathbb{R} or Q\mathbb{Q}; for every question below, the integers give the same answers. There are 3 base relations, <<, == and >>, and 23=82^3 = 8 relations:

relation set meaning
∅\emptyset {}\{\} impossible
<<, ==, >> one base relation known order
≤\le {<,=}\{<, =\} not after
≥\ge {=,>}\{=, >\} not before
≠\ne {<,>}\{<, >\} different
? {<,=,>}\{<, =, >\} no information

The converse swaps << and >>. The composition table is

⋄\diamond << == >>
<< << << ?
== << == >>
>> ? >> >>

and it is strong, so the relations form a relation algebra. An input is a qualitative constraint network on nn points with one of the 8 relations on each pair. The subclass without ≠\ne, the 7 relations ∅\emptyset, <<, ≤\le, ==, ≥\ge, >> and ?, is called the convex point algebra.

What it counts

The cost of a reasoning algorithm is measured in the number of points nn, and sometimes in the number e≤(n2)e \le \binom{n}{2} of pairs with a label other than ?. The standard problems are:

  • consistency: is there an assignment of numbers that satisfies every label?
  • a solution: an assignment, or a consistent scenario, the base relation of each pair under some solution;
  • minimal labels: for each pair, the set of base relations that occur in some solution;
  • incremental versions: the same answers after each new constraint.

Relation to other models

  • Intervals. An interval (x−,x+)(x^-, x^+) is two points with x−<x+x^- < x^+, and each of the 13 base relations of Allen's interval algebra is a conjunction of point relations between the 4 endpoints. An interval relation is pointisable when it is a conjunction of point algebra relations on the endpoints; there are 188 pointisable relations, counting the empty one. Networks of them reduce to point networks on 2n2n points. The ORD-Horn subclass allows disjunctions of ≠\ne with one order literal on the endpoints, and is larger.
  • Metric time. The simple temporal problem adds numeric bounds a≤xj−xi≤ba \le x_j - x_i \le b. It covers the convex point algebra (with strict bounds for <<), but not ≠\ne.
  • Plane. The cardinal direction calculus for points uses one point relation per axis, 3×3=93 \times 3 = 9 base relations.
  • Orders. A consistent scenario is a total order with ties on the points; a network of ≤\le and << alone is a directed graph, and its consistency is "no cycle through a strict edge".

Known results in the model

problem result source
consistency and a solution, all 8 relations O(n2)O(n^2), by strongly connected components van Beek 1992
consistency, all 8 relations path consistency decides it, O(n3)O(n^3) Ladkin and Maddux 1994
minimal labels, convex point algebra path consistency gives them, O(n3)O(n^3) Vilain, Kautz and van Beek 1990
minimal labels, all 8 relations O(n4)O(n^4); path consistency is not enough van Beek 1992

Every network is decided. Unlike the interval algebra, where consistency is NP-complete (NP-completeness of the interval algebra), all 8 relations together form a tractable class. A consistent network on nn points always has a solution with integer values in 0,…,n−10, \ldots, n-1, since only the order matters.

Why ≠\ne is harder. The network x0≤x1x_0 \le x_1, x0≤x2x_0 \le x_2, x1≤x3x_1 \le x_3, x2≤x3x_2 \le x_3, x1≠x2x_1 \ne x_2 is path consistent with the label ≤\le on (x0,x3)(x_0, x_3), but x0=x3x_0 = x_3 would force x1=x2x_1 = x_2, so the minimal label is <<. Path consistency looks at three points at a time, and this reason involves all four.

References

  1. Marc Vilain and Henry Kautz, Constraint propagation algorithms for temporal reasoning, Proceedings of AAAI-86, 1986, pages 377 to 382, the point algebra, polynomial propagation for it, and the translation of some interval relations to endpoints
  2. Marc Vilain, Henry Kautz and Peter van Beek, Constraint propagation algorithms for temporal reasoning, a revised report, in Readings in Qualitative Reasoning about Physical Systems, Morgan Kaufmann, 1990, pages 373 to 381 (the corrected treatment of the point algebra and its propagation)
  3. Peter van Beek, Reasoning about qualitative temporal information, Artificial Intelligence 58(1-3), 1992, pages 297 to 326 (consistent scenarios in O(n^2) time, minimal labels in O(n^4) time, and the role of the not-equal relation)
  4. Peter B. Ladkin and Roger D. Maddux, On binary constraint problems, Journal of the ACM 41(3), 1994, pages 435 to 469 (path consistency decides consistency of point algebra networks)
  5. Gérard Ligozat, Qualitative Spatial and Temporal Reasoning, ISTE and Wiley, 2011, Chapter 1 (the point calculus and its relation to the interval calculus)

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.

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/2B6WT4/text.yaml