Back to Search
Start Over
Decomposing Global Grammar Constraints
- Source :
- Principles and Practice of Constraint Programming – CP 2007 ISBN: 9783540749691, CP
- Publication Year :
- 2007
- Publisher :
- Springer Berlin Heidelberg, 2007.
-
Abstract
- A wide range of constraints can be specified using automata or formal languages. The GRAMMAR constraint restricts the values taken by a sequence of variables to be a string from a given context-free language. Based on an AND/OR decomposition, we show that this constraint can be converted into clauses in conjunctive normal form without hindering propagation. Using this decomposition, we can propagate the GRAMMAR constraint in O(n3) time. The decomposition also provides an efficient incremental propagator. Down a branch of the search tree of length k, we can enforce GAC k times in the same O(n3) time. On specialized languages, running time can be even better. For example, propagation of the decomposition requires just O(n|δ|) time for regular languages where |δ| is the size of the transition table of the automaton recognizing the regular language. Experiments on a shift scheduling problem with a constraint solver and a state of the art SAT solver show that we can solve problems using this decomposition that defeat existing constraint solvers.
Details
- ISBN :
- 978-3-540-74969-1
- ISBNs :
- 9783540749691
- Database :
- OpenAIRE
- Journal :
- Principles and Practice of Constraint Programming – CP 2007 ISBN: 9783540749691, CP
- Accession number :
- edsair.doi...........2a97cf2a63cc21d5b2d6c0c6e48deaeb