5.271. nclass
DESCRIPTION | LINKS | GRAPH |
- Origin
- Constraint
- Type
- Arguments
- Restrictions
- Purpose
Number of partitions of the collection such that at least one value is assigned to at least one variable of the collection .
- Example
-
Note that the values of occur within partitions and but not within . Consequently, the constraint holds since its first argument is set to value 2.
- Typical
- Symmetries
Items of are permutable.
Items of are permutable.
Items of are permutable.
An occurrence of a value of can be replaced by any other value that also belongs to the same partition of .
All occurrences of two distinct tuples of values in or can be swapped; all occurrences of a tuple of values in or can be renamed to any unused tuple of values.
- Arg. properties
Functional dependency: determined by and .
Extensible wrt. when .
- Algorithm
- See also
related: Β ( replaced by ), Β ( replaced by ), Β ( replaced by of ).
specialisation: Β ( replaced by ).
- Keywords
characteristic of a constraint: partition.
constraint arguments: pure functional dependency.
constraint type: counting constraint, value partitioning constraint.
final graph structure: strongly connected component, equivalence.
modelling: number of distinct equivalence classes, functional dependency.
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
- Graph property(ies)
-
- Graph model
PartsΒ (A) andΒ (B) of FigureΒ 5.271.1 respectively show the initial and final graph associated with the Example slot. Since we use the graph property we show the different strongly connected components of the final graph. Each strongly connected component corresponds to a class of values that was assigned to some variables of the collection. We effectively use two classes of values that respectively correspond to values and . Note that we do not consider value 7 since it does not belong to the different classes of values we gave: all corresponding arc constraints do not hold.
Figure 5.271.1. Initial and final graph of the constraint
(a) (b)