ArticleslgStudy

mathematics

Allen's interval algebra

Allen's interval algebra is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Allen's interval algebra rather than just read about it. In short: Allen's interval algebra is a calculus for temporal reasoning that was introduced by James F. Allen in 1983.

Key takeaways

  • Allen's interval algebra belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Allen's interval algebra to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Allen's interval algebra from memory before moving on to harder problems.

Reference excerpt

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

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

To see that the 13 relations are exhaustive, note that each point of X can be at 5 possible locations relative to Y: before, at the start, within, at the end, after. These give 5+4+3+2+1=15 possible relative positions for the start and the end of X. Of these, we cannot have X0=X1=Y0 since X0<X1, and similarly we cannot have X0=X1=Y1, thus giving us 13 possible relations. In general, the number of different relations between n intervals, starting with n = 0, is 1, 1, 13, 409, 23917, 2244361... OEIS A055203. The special case shown above is for n = 2.

Composition of relations between intervals For reasoning about the relations between temporal intervals, Allen's interval algebra provides a composition table. Given the relation between X and Y and the relation between Y and Z, the composition table allows for concluding about the relation between X and Z. Together with a converse operation, this turns Allen's interval algebra into a relation algebra. 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 sentences

During dinner, Peter reads the newspaper. Afterwards, he goes to bed. are formalized in Allen's Interval Algebra as follows: newspaper {d⁡} dinner dinner {<⁡} bed For the example, one can infer newspaper {<⁡} bed.

Extensions 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 (see ). Its models have more variations depending on whether endpoints of document structures are permitted to be truly co-located, or merely [tangent].

Temporal primitives In the cultural heritage ontology CIDOC CRM, Allen relations are replaced by so-called temporal primitives, which facilitate the formulation of attestable statements as well as reasoning about these statements. Temporal primitives split up the Allen relations into individual statements about the start or end of the intervals. For example, X overlaps with Y (XoY) can be split as follows:

XoY ⇔ starts before the start of (X,Y) ∧ ends after the start of (X,Y) ∧ ends before the end of (X,Y) In addition, the equal to of the Allen relations is replaced by before or with and after or with. A simple example:

The reign of King Harold II starts before the start of the Battle of Hastings The reign/life of Harold II ends after or with the start of the Battle of Hastings The reign/life of Harold II ends before or with the end of the Battle of Hastings In the example, it is not necessary to specify whether Harold II was killed at the beginning or during or at the end of the battle, i.e. whether XmY, XoY or XfiY applies (disjunctions such as {m⁡,o⁡,fi⁡} cannot be expressed in CIDOC CRM, except in queries). If it is relevant for a particular historical question, it can be specified later by adding e.g. ends after the start of. CIDOC CRM distinguishes between events and their corresponding time intervals. Allen relations and temporal primitives are statements between events and only as a consequence between their time intervals. Another difference is that temporal, spatial and spatiotemporal entities in CIDOC CRM are seen as having fuzzy borders. Especially statements about exact simultaneity are otherwise extremely rare.

Implementations A simple java library implementing the concept of Allen's temporal relations and the path consistency algorithm Java library implementing Allen's Interval Algebra (incl. data and index structures, e.g., interval tree) OWL-Time Time Ontology in OWL an OWL-2 DL ontology of temporal concepts, for describing the temporal properties of resources in the world or described in Web pages. GQR is a reasoner for Allen's interval algebra (and many others) qualreas is a Python framework for qualitative reasoning over networks of relation algebras, such as RCC-8, Allen's interval algebra, and Allen's algebra integrated with Time Points and situated in either Left- or Right-Branching Time. SparQ is a reasoner for Allen's interval algebra (and many others) EveXL is a small domain-specific language for the detection of events that implements the Interval Algebra's operators via ASCII art patterns.

See also Temporal logic Logic Region connection calculus Spatial relation (analog) Commonsense reasoning

References

Sources Allen, James F. (26 November 1983). "Maintaining knowledge about temporal intervals" (PDF). Communications of the ACM. 26 (11): 832–843. doi:10.1145/182.358434. hdl:1802/10574. ISSN 0001-0782. S2CID 16729000. Nebel, Bernhard; Bürckert, Hans-Jürgen (1995). "Reasoning about Temporal Relations: A Maximal Tractable Subclass of Allen's Interval Algebra" (PDF). Journal of the ACM. 42: 43–66. doi:10.1145/200836.200848. S2CID 6586759. van Beek, Peter; Manchak, Dennis W. (1996). "The design and experimental analysis of algorithms for temporal reasoning" (PDF). Journal of Artificial Intelligence Research. 4 (1996): 1–18. arXiv:cs/9601101. Bibcode:1996cs........1101V. doi:10.1613/jair.232. S2CID 3204600. Archived from the original (PDF) on 6 July 2017. Retrieved 6 May 2017.

Worked examples

Example 1 — a first encounter with Allen's interval algebra

Start with the simplest possible case. Write down what Allen's interval algebra claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Allen's interval algebra before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Allen's interval algebra ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Allen's interval algebra

In research
Allen's interval algebra appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Allen's interval algebra in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Allen's interval algebra is common in secondary-school and first-year university syllabi. It links to neighbouring topics Constraint programming, Knowledge representation, so understanding it makes those chapters shorter.
In everyday life
Look for Allen's interval algebra outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Allen's interval algebra” →

How to study Allen's interval algebra in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Allen's interval algebra means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Allen's interval algebra out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Allen's interval algebra in simple terms?

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

Why does Allen's interval algebra matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Allen's interval algebra?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Allen's interval algebra.

Tags

  • Constraint programming
  • Knowledge representation

Keep exploring