Modeladvanced
Double-cross calculus
Also called Freksa double cross.
Locates a point relative to an oriented segment by which side of it and of the two perpendiculars at its ends the point lies on. Its consistency problem is NP-hard even for base relations.
The double-cross calculus of Freksa (1992) describes the relative orientation of three points: where a point lies as seen by someone who walks from to . The line through and tells left from right, and the two lines perpendicular to it at and at tell behind, beside and ahead. These three lines form a double cross, and they split the plane into 15 positions for . The calculus was made for navigation, where an agent knows the way it is facing but not distances. Its relations are ternary, and Scivos and Nebel (2001) showed that deciding the consistency of a set of base relations is NP-hard.
The machine
Let be points of and let be a third point. Write . The relation of to the oriented segment is a pair (side, position):
- side: the sign of the cross product , which is left if positive, straight (on the line) if zero, and right if negative; this is the orientation test;
- position: from the dot products and , it is back if , at if , between if and , at if , and front if .
This gives base relations for . Two of them are single points: straight and at means , and straight and at means . The others are open regions, open rays or open segments of lines. Later formalizations add base relations for the cases in which , so that every triple of points has exactly one relation.
Freksa built the double cross from two single crosses, one at and one at , each made of the line through and and the perpendicular at that point. Each single cross alone describes the position of relative to one end.
Example. Let and , so .
| cross product | relation | |||
|---|---|---|---|---|
| left, between | ||||
| right, front | ||||
| straight, back | ||||
| left, at | ||||
| right, at |
With integer coordinates all three values are exact, so the relation is computed in time with no rounding error.
What it counts
An input is a set of point variables and a set of ternary constraints, each saying that a triple is in one base relation or in a set of them. The question is consistency: are there points in the plane that meet every constraint? Cost is counted in and in the number of constraints.
The constraints are sign conditions on polynomials of degree 2 in the coordinates, so consistency is a question in the existential theory of the reals, and it is decidable, for example by cylindrical algebraic decomposition. Hardness lies in the other direction: Scivos and Nebel (2001) show that the problem is NP-hard even when every constraint is a base relation.
Reasoning with tables. Freksa (1992) reasoned with tables: for the permutations of the three points, and for combining two relations that share two points into a relation on a new triple, in the manner of a composition table. Scivos and Nebel (2001) show that the calculus is not closed under composition, so such tables can only give a relation that contains the true one, and local propagation with them does not decide consistency.
Relation to other models
- Cardinal directions. The cardinal direction calculus uses a fixed frame, the axes of the plane, and binary relations. The double cross uses a frame defined by two of the points, so its relations are ternary and invariant under rotation, translation and scaling.
- Other ternary calculi. The LR calculus keeps only the line through and , and the OPRA calculi of Moratz relate points that carry their own orientation. They share the use of the orientation test.
- Binary calculi. For binary calculi such as RCC8, a qualitative constraint network of base relations is often decided by algebraic closure in polynomial time. The double cross is an example in which this fails already for base relations.
Known results in the model
| problem | result | source |
|---|---|---|
| relation of a given triple | arithmetic operations | Freksa 1992, with the formulas above |
| consistency, base relations only | NP-hard | Scivos and Nebel 2001 |
| consistency, any constraints | decidable, through the existential theory of the reals | Scivos and Nebel 2001 |
| closure under composition | no | Scivos and Nebel 2001 |
The tables of Freksa (1992) give a sound method: a contradiction that they find is real. By the hardness result, unless P = NP, no polynomial propagation with them finds every inconsistent network of base relations.
References
- Christian Freksa, Using orientation information for qualitative spatial reasoning, Theories and Methods of Spatio-Temporal Reasoning in Geographic Space, Lecture Notes in Computer Science 639, Springer, 1992, pages 162 to 178 (the single cross and the double cross, the 15 positions of a point relative to an oriented segment, and reasoning with them)
- Alexander Scivos and Bernhard Nebel, Double-crossing, decidability and computational complexity of a qualitative calculus for navigation, COSIT 2001, Lecture Notes in Computer Science 2205, Springer, 2001, pages 431 to 446 (NP-hardness of consistency for networks of base relations, and that the calculus is not closed under composition)
- 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 (the double-cross calculus among the ternary calculi)
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag W56YNG Edit this page History Report an error Markdown