Algorithm Search⌘K

Definitionadvanced

Qualitative constraint network

Also called QCN, qualitative network.

Variables over an infinite domain with a relation of a qualitative calculus on each pair; it is consistent when some assignment satisfies every relation.

A qualitative constraint network is the input of qualitative reasoning: a set of variables, each standing for an object of the domain of a qualitative constraint calculus, with a relation of the calculus on each pair, such as "interval 1 is before or meets interval 2". It is a binary constraint satisfaction problem whose domain is infinite, so it cannot be solved by trying values. Instead, the reasoning works on the labels with the composition table. This page defines the network and the notions used with it: solution, consistency, scenario, refinement, the minimal network and algebraic closure.

Definition

Fix a calculus with domain DD, base relations B\mathcal{B} and weak composition ⋄\diamond. A qualitative constraint network N=(V,C)N = (V, C) on nn variables has

  • variables V={v0,…,vn−1}V = \{v_0, \ldots, v_{n-1}\}, each ranging over DD;
  • a label Cij⊆BC_{ij} \subseteq \mathcal{B} for each ordered pair, with Cji=Cij⌣C_{ji} = C_{ij}^{\smile} and Cii⊆{id}C_{ii} \subseteq \{\mathrm{id}\}.

A pair that the input does not mention gets the universal label B\mathcal{B}. Then

  • a solution is a map σ:V→D\sigma : V \to D with (σ(vi),σ(vj))∈Cij(\sigma(v_i), \sigma(v_j)) \in C_{ij} for all i,ji, j, where a label is read as the union of its base relations;
  • NN is consistent when it has a solution;
  • N′N' is a refinement of NN, written N′⊆NN' \subseteq N, when Cij′⊆CijC'_{ij} \subseteq C_{ij} for all i,ji, j;
  • a scenario (or atomic network) is a network in which every label is a single base relation; every solution σ\sigma fixes the scenario of the base relations that hold between its values;
  • the minimal network of NN has the label Mij={b∈Cij:some solution has (σ(vi),σ(vj))∈b}M_{ij} = \{b \in C_{ij} : \text{some solution has } (\sigma(v_i), \sigma(v_j)) \in b\};
  • NN is algebraically closed when Cij⊆Cik⋄CkjC_{ij} \subseteq C_{ik} \diamond C_{kj} for all i,j,ki, j, k.

Facts.

  1. NN is consistent exactly when one of its scenarios is consistent, since a solution fixes one.
  2. The minimal network is a refinement with the same solutions, and it is algebraically closed, because the table is sound.
  3. The algebraic closure of NN, the largest algebraically closed refinement, has the same solutions as NN. If it has an empty label, NN is inconsistent.
  4. For a set SS of relations, CSP(S)\mathrm{CSP}(S) is the problem of deciding consistency of networks whose labels are all in SS. A subclass SS is called tractable when CSP(S)\mathrm{CSP}(S) is in P.

Examples and non-examples

An interval network that closure solves. Take intervals 0, 1, 2, 3 with 0{b,m}10 \mathrel{\{b, m\}} 1, 1{b,m}21 \mathrel{\{b, m\}} 2, 2{d}32 \mathrel{\{d\}} 3 and 0{o,di,bi}30 \mathrel{\{o, di, bi\}} 3, in Allen's interval algebra. Its algebraic closure has C02={b}C_{02} = \{b\}, C03={o}C_{03} = \{o\} and C13={d}C_{13} = \{d\}, and this is also its minimal network. The trace is on the algebraic closure page.

Closed but inconsistent. The interval network 0{o,si}10 \mathrel{\{o, si\}} 1, 0{fi,si}20 \mathrel{\{fi, si\}} 2, 0{o,fi}30 \mathrel{\{o, fi\}} 3, 1{m,mi}21 \mathrel{\{m, mi\}} 2, 1{b,f}31 \mathrel{\{b, f\}} 3, 2{b,s}32 \mathrel{\{b, s\}} 3 is algebraically closed, has no empty label, and has no solution. Closure is not a complete test for interval networks, as NP-completeness of the interval algebra predicts.

Closed but not minimal. The point 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 and x1≠x2x_1 \ne x_2 is consistent and algebraically closed, with C03={<,=}C_{03} = \{<, =\}. But x0=x3x_0 = x_3 would force x1=x2x_1 = x_2, so the minimal label is C03={<}C_{03} = \{<\}. This is why minimal labels of point networks with ≠\ne need more than closure (van Beek 1992).

A scenario. The atomic network 0{m}10 \mathrel{\{m\}} 1, 1{m}21 \mathrel{\{m\}} 2, 0{b}20 \mathrel{\{b\}} 2 is consistent, for example with the intervals (0,1)(0, 1), (1,2)(1, 2) and (2,3)(2, 3). The atomic network 0{m}10 \mathrel{\{m\}} 1, 1{m}21 \mathrel{\{m\}} 2, 0{m}20 \mathrel{\{m\}} 2 is not, because m⋄m={b}m \diamond m = \{b\}.

Non-example: a ternary constraint. "Interval 2 lies between intervals 0 and 1" relates three objects. It is not a label of a binary network; it needs a ternary calculus or extra variables.

Non-example: a metric bound. "Interval 1 starts at most 5 minutes after interval 0 ends" uses a number. It belongs to the simple temporal problem, not to a qualitative network.

Common errors

  • Storing only one direction of a label and forgetting that the other direction is its converse, not the same set.
  • Reading "consistent" as "algebraically closed". Closure is necessary; it is sufficient only for some subclasses.
  • Treating the universal label as "no information about the pair" and then skipping the pair in propagation. Closure can still shrink it.

References

  1. Frank Dylla and others, A survey of qualitative spatial and temporal calculi, algebraic and computational properties, ACM Computing Surveys 50(1), 2017, pages 1 to 39 (constraint networks, scenarios, algebraic closure, and the consistency problem of each calculus)
  2. Jochen Renz and Gérard Ligozat, Weak composition for qualitative spatial and temporal reasoning, CP 2005, Lecture Notes in Computer Science 3709, Springer, 2005, pages 534 to 548 (networks, refinements, scenarios and closure under weak composition)
  3. Peter van Beek, Reasoning about qualitative temporal information, Artificial Intelligence 58(1-3), 1992, pages 297 to 326 (consistent scenarios and minimal labels of point and interval networks)
  4. James F. Allen, Maintaining knowledge about temporal intervals, Communications of the ACM 26(11), 1983, pages 832 to 843 (networks of interval relations)
  5. Rina Dechter, Constraint Processing, Morgan Kaufmann, 2003, Chapter 12, Temporal constraint networks (qualitative networks and their minimal networks)

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