Professional Documents
Culture Documents
All the PC algorithms introduced so far are used to reduce unary and binary con-
straints only. Mohr & Masini [1988] propose an algorithm called GAC4, which is a
modification of AC-4, for removing redundant compound labels from general con-
straints. The algorithm basically works as follows. When a label or 2-compound
label CL is removed, GAC4 removes from all the constraints those tuples which
have CL as their projections. For example, if (<x,a><y,b>) is removed from Cx,y,
then for all variables z and values c (<x,a><y,b><z,c>) is removed from Cx,y,z when-
ever it exists. Besides, GAC4 removes all the labels and 2-compound labels which
are not subsumed by any element of the higher order constraints in which the sub-
ject variables are involved. For example, if (<x,a><y,b><z,c>) is removed from the
constraint Cx,y,z, and there exists no value d such that (<x,d><y,b><z,c>) is in Cx,y,z,
then (<y,b><z,c>) is removed from Cb,c.2 Mohr & Masini [1988] also suggest that
GAC4 can be used to achieve PC. However, as they admit, GAC4 is unusable for
large networks because of its high complexity.
2. That strategy first appeared in Freuder [1978] in solution synthesis. Freuder’s algorithm
will be described in Chapter 9.