5.337. same_intersection
DESCRIPTION | LINKS | GRAPH |
- Origin
- Constraint
- Arguments
- Restrictions
- Purpose
Each value, which occurs both in the and in the collections, has the same number of occurrences in as well as in .
- Example
-
First note that the values, which occur both in as well as in correspond to values 1, 5, and 9. Consequently, the constraint holds since these values 1, 5, and 9 have the same number of occurrences in both collections (i.e.,Β they respectively occur 3, 1, and 1 times within and ).
- Typical
- Symmetries
Arguments are permutable w.r.t. permutation .
Items of are permutable.
Items of are permutable.
All occurrences of two distinct values in or can be swapped; all occurrences of a value in or can be renamed to any unused value.
- See also
common keyword: , Β (constraint on the intersection).
implied by: , .
- Keywords
constraint arguments: constraint between two collections of variables.
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
- Graph property(ies)
-
- Graph model
PartsΒ (A) andΒ (B) of FigureΒ 5.337.1 respectively show the initial and final graph associated with the Example slot. The constraint holds since each connected component of the final graph has the same number of sources and sinks. Note that all the vertices corresponding to the variables that take values 2, 3 or 8 were removed from the final graph since there is no arc for which the associated equality constraint holds.
Figure 5.337.1. Initial and final graph of the constraint
(a) (b)