Abstract. The SEQUENCE constraint is useful in modelling car sequencing, rostering, scheduling and related problems. We introduce half a dozen new encodings of the SEQUENCE constraint, some of which do not hinder propagation. We prove that, down a branch of a search tree, domain consistency can be enforced on the SEQUENCE constraint in just O(n 2 log n) time. This improves upon the previous bound of O(n 3 ) for each call down the tree. We also consider a generalization of the SEQUENCE constraint -the Multiple SEQUENCE constraint. Our experiments suggest that, on very large and tight problems, domain consistency algorithms are best. However, on smaller or looser problems, much simpler encodings are better, even though these encodings hinder propagation. When there are multiple SEQUENCE constraints, a more expensive propagator shows promise.
Our use of "pyramid" variables is similar to the use of the "partial sums" variables in the encoding of the SEQUENCE constraint in REF .
Encodings of the sequence constraint
In: CP. Volume 4741 of LNCS
Computer Science