an:05843094
Zbl 1210.68103
Jefferson, Christopher; Moore, Neil C. A.; Nightingale, Peter; Petrie, Karen E.
Implementing logical connectives in constraint programming
EN
Artif. Intell. 174, No. 16-17, 1407-1429 (2010).
00268727
2010
j
68T20
constraint programming; constraint satisfaction problems; propagation algorithms; logical connectives
Summary: Combining constraints using logical connectives such as disjunction is ubiquitous in constraint programming, because it adds considerable expressive power to a constraint language. We explore the solver architecture needed to propagate such combinations of constraints efficiently. In particular we describe two new features named satisfying sets and constraint trees. We also make use of movable triggers [\textit{I. P. Gent}, \textit{C. Jefferson} and \textit{I. Miguel}, ``Watched literals for constraint propagation in minion'', Lect. Notes Comput. Sci. 4204, 182--197 (2006)], and with these three complementary features we are able to make considerable efficiency gains.
A key reason for the success of Boolean Satisfiability (SAT) solvers is their ability to propagate Or constraints efficiently, making use of movable triggers. We successfully generalise this approach to an Or of an arbitrary set of constraints, maintaining the crucial property that at most two constraints are active at any time, and no computation at all is done on the others. We also give an And propagator within our framework, which may be embedded within the Or. Using this approach, we demonstrate speedups of over 10,000 times in some cases, compared to traditional constraint programming approaches. We also prove that the Or algorithm enforces generalised arc consistency (GAC) when all its child constraints have a GAC propagator, and no variables are shared between children. By extending the Or propagator, we present a propagator for AtLeastK, which expresses that at least \(k\) of its child constraints are satisfied in any solution.
Some logical expressions (e.g. exclusive-or) cannot be compactly expressed using And, Or and AtLeastK. Therefore we investigate reification of constraints. We present a fast generic algorithm for reification using satisfying sets and movable triggers.