[Paper Review] SLIDE: A Useful Special Case of the CARDPATH Constraint
This paper introduces SLIDE, a special case of the CARDPATH constraint that enforces a given constraint to hold at every position in a sequence. It presents a complete generalized arc-consistency (GAC) propagator for SLIDE, demonstrating that it can encode and efficiently solve a wide range of global sequencing constraints—matching or exceeding the performance of specialized propagators while offering a general-purpose modeling primitive for constraint toolkits.
We study the CardPath constraint. This ensures a given constraint holds a number of times down a sequence of variables. We show that SLIDE, a special case of CardPath where the slid constraint must hold always, can be used to encode a wide range of sliding sequence constraints including CardPath itself. We consider how to propagate SLIDE and provide a complete propagator for CardPath. Since propagation is NP-hard in general, we identify special cases where propagation takes polynomial time. Our experiments demonstrate that using SLIDE to encode global constraints can be as efficient and effective as specialised propagators.
Motivation & Objective
- To identify and formalize SLIDE as a useful special case of the CARDPATH constraint for modeling sliding sequence constraints.
- To develop a complete GAC propagator for SLIDE, addressing the limitation of prior CARDPATH propagators that failed to achieve full arc consistency.
- To demonstrate that SLIDE can encode and efficiently solve a broad class of global constraints, including AmongSeq, Regular, Stretch, and Lex.
- To evaluate the practical efficiency and scalability of SLIDE in comparison to specialized propagators and alternative modeling approaches.
- To explore conditions under which GAC propagation on SLIDE remains tractable despite its NP-hardness in general.
Proposed method
- Define SLIDE as a special case of CARDPATH where the constraint must hold at every window of size k across a sequence of variables.
- Propose a complete GAC propagator for SLIDE using dynamic programming or dual encoding, depending on constraint structure.
- Identify polynomial-time cases for GAC propagation, such as when the constraint overlaps on one variable or is monotone.
- Encode complex global constraints (e.g., Regular, Stretch, AmongSeq) as SLIDE constraints to enable uniform propagation.
- Use binary decision diagrams (BDDs) as a potential optimization for storing supports when constraints have many satisfying tuples.
- Implement and benchmark SLIDE against specialized solvers (e.g., IloSequence) on real-world problems like car sequencing and nurse rostering.
Experimental results
Research questions
- RQ1Can SLIDE serve as a general-purpose, extensible primitive for encoding diverse sliding sequence constraints?
- RQ2Is GAC propagation on SLIDE NP-hard in general, and if so, what structural properties of the constraint allow polynomial-time propagation?
- RQ3How does the performance of SLIDE compare to specialized propagators for constraints like AmongSeq, Regular, and Stretch?
- RQ4Can SLIDE be efficiently scaled to large domains and high-arity constraints in practical applications?
- RQ5What are the memory and time trade-offs of using SLIDE versus alternative modeling techniques like IloSequence?
Key findings
- SLIDE can encode a wide range of global constraints, including CardPath, AmongSeq, Regular, Stretch, and Lex, through a uniform and intuitive decomposition.
- The proposed GAC propagator for SLIDE achieves full arc consistency, unlike prior CARDPATH propagators that only provided partial pruning.
- In car sequencing benchmarks, the SLIDE model solved 26 instances within a 5-minute timeout, compared to 39 solved by IloSequence, but solved 9 instances that IloSequence failed to solve.
- Despite higher memory usage (22 MB average vs. 5 MB for IloSequence), the SLIDE propagator remained scalable, even with arity 5 and domain size 30.
- For constraints with one-variable overlap or monotonicity, GAC propagation on SLIDE is tractable and can be efficiently computed via dynamic programming or dual encoding.
- The use of BDDs for storing supports of complex constraints is identified as a promising direction for future work to improve efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.