5.158. gcd
DESCRIPTION | LINKS |
- Origin
- Constraint
- Arguments
- Restrictions
- Purpose
Enforce the fact that is the greatest common divisor of and .
- Example
-
The constraint holds since 12 is the greatest common divisor of 24 and 60.
- Typical
- Symmetry
Arguments are permutable w.r.t. permutation .
- Arg. properties
Functional dependency: determined by and .
- Algorithm
InΒ [DenmatGotliebDucasse07] a filtering algorithm for the constraint was automatically derived from the Euclidian algorithm by using constructive disjunction and abstract interpretation in order to approximate the behaviour of the while loop of the Euclidian algorithm.
- See also
- Keywords
constraint arguments: ternary constraint, pure functional dependency.
constraint type: arithmetic constraint, predefined constraint.