Constraint Satisfaction Problems: Convexity Makes AllDifferent Constraints Tractable

Michael R. Fellows, Tobias Friedrich, Danny Hermelin, Nina Narodytska, Frances A. Rosamond

Abstract

We examine the complexity of constraint satisfaction problems that consist of a set of AllDiff constraints. Such CSPs naturally model a wide range of real-world and combinatorial problems, like scheduling, frequency allocations, and graph coloring problems. As this problem is known to be NP-complete, we investigate under which further assumptions it becomes tractable. We observe that a crucial property seems to be the convexity of the variable domains and constraints. Our main contribution is an extensive study of the complexity of Multiple AllDiff CSPs for a set of natural parameters, like maximum domain size and maximum size of the constraint scopes. We show that, depending on the parameter, convexity can make the problem tractable even though it is provably intractable in general. Interestingly, the convexity of constraints is the key property in achieving fixed parameter tractability, while the convexity of domains does not usually make the problem easier.

Introduction

The AllDifferent (AllDiff) constraint is a fundamental building block in constraint programming, requiring a set of variables to each take a unique value. While a single AllDiff constraint is efficiently solvable, many practical applications—ranging from frequency allocation to timetable scheduling—involve Multiple AllDiff constraints (MAD-CSP) that overlap. In its general form, MAD-CSP is NP-complete, as it can directly encode the graph coloring problem.

This research seeks to identify the "tractability boundary" for MAD-CSP. By applying the lens of parameterized complexity, the authors investigate how structural assumptions, specifically convexity, interact with various problem parameters to enable efficient algorithms.

Methodology and Theoretical Framework

The study utilizes parameterized complexity to determine if the problem is Fixed-Parameter Tractable (FPT) or remains hard (para-NPC) relative to four key parameters:

  1. $n$: Number of variables.
  2. $m$: Size of the universe (total number of possible values).
  3. $k$: Maximum size of a constraint scope.
  4. $\ell$: Maximum domain size for any single variable.

The core of the investigation is the role of convexity:

  • Convex Domains: The values available for a variable form a contiguous interval.
  • Convex Constraints: Given a linear ordering of variables, a constraint is convex if it applies to a contiguous range of variables.
  • Bi-convex: Both domains and constraints satisfy their respective convexity conditions.

The authors employ techniques such as kernelization (reducing instances to a core "polynomial kernel"), treewidth analysis, and reductions to List Coloring on Proper Interval Graphs (LCPIG) to establish these complexity bounds.

Complexity Landscape and Key Results

The primary contribution of this work is a comprehensive mapping of the complexity of MAD-CSP across different parameters and convexity levels.

Summary of complexity results for MAD-CSP under various parameters and convexity conditions.

Key Findings:

  • The Universality of $n$: Regardless of convexity, the problem is FPT when parameterized by the number of variables $n$. The authors demonstrate an $O(n! nm)$ algorithm and prove the existence of a kernel of size $O(n^2)$.
  • The Power of Convex Constraints: While convex domains alone rarely improve tractability, convex constraints are transformative. They reduce the underlying structure to an interval graph with bounded pathwidth, making the problem FPT for parameters $m$ and $k$.
  • The Hardness of Domain Size: Parameterization by maximum domain size ($\ell$) remains the most challenging. Even with convex constraints, the problem is NP-complete for $\ell \ge 3$.
  • Bi-convexity: When both domains and constraints are convex, the problem becomes FPT for $n, m,$ and $k$. The status for parameter $\ell$ in the bi-convex case remains an open question.

Discussion and Future Work

The research highlights that convexity in constraints, rather than domains, is the primary driver of tractability in overlapping AllDiff problems. By bridging constraint satisfaction with graph theory—specifically showing that MAD-CSP with convex constraints is equivalent to List Coloring on Proper Interval Graphs—the authors provide a new framework for understanding these problems.

Future work remains to resolve the complexity of bi-convex MAD-CSP parameterized by the maximum domain size ($\ell$). While conjectured to be FPT, current proofs only cover an aggregate parameter (domain size plus the number of constraints). Additionally, extending these linear convexity notions to tree-based structures could further broaden the applicability of these findings to more complex industrial scheduling and allocation problems.

Summary updated

BibTeX
@inproceedings{fellows2011constraint,
  author = {Michael R. Fellows and Tobias Friedrich and Danny Hermelin and Nina Narodytska and Frances A. Rosamond},
  title = {{Constraint Satisfaction Problems: Convexity Makes AllDifferent Constraints Tractable}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2011},
  url = {https://openreview.net/forum?id=SyZRjNfdZr},
}
Figure