5.344. set_value_precede
DESCRIPTION | LINKS |
- Origin
- Constraint
- Arguments
- Restrictions
- Purpose
-
If there exists a set variable of such that does not belong to and does, then there also exists a set variable preceding such that belongs to and does not.
- Example
-
The following examples are taken fromΒ [Law05]:
The constraint holds since the first occurrence of value 2 precedes the first occurrence of value 1 (i.e.,Β the set occurs before the set ).
The constraint holds since the first occurrence of value 0 precedes the first occurrence of value 1 (i.e.,Β the set occurs before the set ).
The constraint holds since βthere is no set in that contains 2 but not 0β.
The constraint holds since no set in contains value 4.
- Typical
- Arg. properties
Suffix-contractible wrt. .
- Algorithm
A filtering algorithm for maintaining value precedence on a sequence of set variables is presented inΒ [YatChiuLawJimmyLee04]. Its complexity is linear to the number of variables of the collection .
- Systems
- See also
specialisation: Β ( of replaced by of ).
- Keywords
constraint arguments: constraint involving set variables.
constraint type: order constraint.
symmetry: symmetry, indistinguishable values, value precedence.