Decompositions of All Different, Global Cardinality and Related Constraints

Christian Bessiere, George Katsirelos, Nina Narodytska, Claude-Guy Quimper, Toby Walsh

Overview

This research, originally published in 2009, presents a clever way to bridge the gap between specialized constraint programming and general-purpose solvers. It demonstrates that complex "global constraints"—the heavy lifters of combinatorial optimization—can be broken down into simple arithmetic pieces without losing their mathematical "punch."

The Problem: Monolithic vs. Decomposed Constraints

In Constraint Satisfaction Problems (CSPs), global constraints like ALL-DIFFERENT (ensuring all variables in a set take unique values) are typically handled by specialized algorithms called "monolithic propagators." While efficient, these algorithms are difficult to implement across different solver types (like SAT or ILP) and act as "black boxes" that don't share internal information well.

Simple decompositions often fail to provide the same level of pruning power. This paper addresses the challenge by proposing a decomposition that maintains high-level consistency (pruning power) while using simple arithmetic building blocks.

Methodology: Interval-Based Decomposition

The authors introduce a decomposition strategy based on interval-based variables. Instead of simple pairwise inequalities, they use binary variables to represent whether a variable $X_i$ falls within a specific value range $[l, u]$.

Figure 3: Representation of variable domains and cardinality bounds (l_v, u_v) used in the decomposition of global constraints.

By applying simple arithmetic summations over these intervals, the solver can enforce complex logic. For ALL-DIFFERENT, the decomposition ensures that any range of values of size $k$ contains at most $k$ variables—a condition based on Hall Intervals. The paper proves that enforcing Domain Consistency on these simple pieces is equivalent to enforcing Range or Bound Consistency on the original global constraint.

Key Results and Evaluation

The approach was evaluated on benchmarks like the Pigeon Hole Problem (PHP) and Double-Wheel Graceful Graphs using the pseudo-Boolean solver MiniSat+.

Figure 6: Performance comparison on Pigeon Hole Problems (PHP). 'bt' represents backtracks and 't' represents time. The HI columns show the efficiency of the Hall Interval-based decomposition.

As seen in the results, the interval-based decomposition (HI) significantly reduces the search space (backtracks) and execution time compared to basic inequality cliques (BI). For some constraints like PERMUTATION, the decomposition even pruned more values than standard specialized algorithms. While the theoretical complexity is $O(nd^3)$, practical solver optimizations often reduce this to an effective $O(nd^2)$, making it competitive with monolithic propagators.

Insights and Future Work

The core insight is that complex graph-matching algorithms can be simulated with simple interval summations. This "internal transparency" allows different constraints to share variables and "talk" to each other, leading to better pruning. While the introduction of $O(nd^2)$ new variables can sometimes affect branching heuristics, the method allows advanced constraint programming techniques to be easily integrated into general-purpose solvers. Future work explores using these decompositions for "Nogood learning" to help solvers understand and avoid the causes of search conflicts.

Summary updated

BibTeX
@inproceedings{bessiere2009decompositions,
  author = {Christian Bessiere and George Katsirelos and Nina Narodytska and Claude-Guy Quimper and Toby Walsh},
  title = {{Decompositions of All Different, Global Cardinality and Related Constraints}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2009},
  url = {https://openreview.net/forum?id=Skb-NrMOZS},
}
Figure