Allen's interval algebra

From Wikipedia, the free encyclopedia
  (Redirected from Allen's Interval Algebra)
Jump to: navigation, search

For the type of boolean algebra called interval algebra, see Boolean algebra (structure)

Allen's interval algebra is a calculus for temporal reasoning that was introduced by James F. Allen in 1983.

The calculus defines possible relations between time intervals and provides a composition table that can be used as a basis for reasoning about temporal descriptions of events.

Formal description[edit]

Relations[edit]

The following 13 base relations capture the possible relations between two intervals.

Relation Illustration Interpretation

X takes place before Y X takes place before Y

X meets Y X meets Y (i stands for inverse)

X overlaps with Y X overlaps with Y

X starts with Y X starts Y

X during Y X during Y

X finishes with Y X finishes Y
X is equal to Y X is equal to Y

Using this calculus, given facts can be formalized and then used for automatic reasoning. Relations between intervals are formalized as sets of base relations.

The sentence

During dinner, Peter reads the newspaper. Afterwards, he goes to bed.

is formalized in Allen's Interval Algebra as follows:

In general, the number of different relations between n intervals is 1, 1, 13, 409, 23917, 2244361... OEIS A055203. The special case shown above is for n=2.

Composition of relations between intervals[edit]

For reasoning about the relations between temporal intervals, Allen's Interval Algebra provides a composition table. Given the relation between and and the relation between and , the composition table allows for concluding about the relation between and . Together with a converse operation, this turns Allen's Interval Algebra into a relation algebra.

For the example, one can infer .

Extensions[edit]

Allen's Interval Algebra can be used for the description of both temporal intervals and spatial configurations. For the latter use, the relations are interpreted as describing the relative position of spatial objects. This also works for three-dimensional objects by listing the relation for each coordinate separately.

The study of Overlapping markup uses a similar algebra, but often distinguishes overlap (which in Allen's algebra is symmetrical), into pre-overlap versus post-overlap, depending on which of the items occurs first (see [1]. Models also have variations depending on whether endpoints of document structures are permitted to be truly co-located, or merely [tangent].

Implementation[edit]

See also[edit]

References[edit]