Reasoning about NP-complete Constraints

Emmanuel Hebrard

Abstract

The concept of local consistency – making global deductions from local infeasibility – is central to constraint programming. When reasoning about NP-complete constraints, however, since achieving a "complete" form of local consistency is often considered too hard, we need other tools to design and analyze propagation algorithms. In this paper, we argue that NP-complete constraints are an essential part of constraint programming, that designing dedicated methods has led to, and will bring, significant breakthroughs, and that we need to carefully investigate methods to deal with a necessarily incomplete inference. In particular, we advocate the use of fixed-parameter tractability and kernelization to this purpose.

Introduction

Constraint Programming (CP) is a powerful paradigm for solving combinatorial problems by interleaving search with local deductions, a process known as propagation. The primary goal of propagation is to prune the search space by removing values from variable domains that cannot participate in any valid solution for a given constraint.

The gold standard for this process is domain consistency (or generalized arc consistency), which ensures that every remaining value in a variable's domain is supported by at least one valid assignment for the constraint. While efficient algorithms exist for simple constraints like ALLDIFFERENT, many vital real-world constraints—such as NVALUE (limiting distinct values) or those representing Hamiltonian circuits—are NP-complete to propagate perfectly. This paper addresses the lack of a rigorous theoretical framework for designing and measuring the strength of the "incomplete" propagators typically used for these hard constraints.

The Challenge of NP-Complete Constraints

When a constraint is NP-complete to propagate, solvers usually settle for incomplete inference, pruning some values but leaving others that may still be inconsistent. Traditionally, these propagators are designed using ad-hoc heuristics or by achieving weaker forms of consistency (like bounds consistency). However, this approach lacks a quantitative way to describe how much pruning is actually being achieved.

To bridge this gap, the paper proposes a shift toward parameterized complexity, moving beyond the standard view of problem size ($n$) to consider specific parameters ($k$) that remain small in practical applications.

Methods: FPT and Kernelization

The paper advocates for two primary tools from the field of parameterized complexity to revitalize the study of hard constraints:

  1. Fixed-Parameter Tractability (FPT): An algorithm is considered FPT if its running time is exponential only in a small parameter $k$, but polynomial in the input size $n$. By identifying parameters that make domain consistency tractable—such as the number of "holes" in a variable's domain—researchers can develop propagators that are efficient in practice even if the general problem is NP-hard.
  2. Kernelization: This is a mathematical technique for problem reduction. It involves taking a large instance and, in polynomial time, reducing it to a "kernel" whose size depends solely on the parameter $k$.
  3. Loss-less Kernelization: The paper’s key conceptual contribution is the requirement for "loss-less" kernels. While standard kernelization only preserves the existence of a solution, a loss-less kernel ensures that if you achieve domain consistency on the reduced kernel, those deductions can be mathematically mapped back to the original, larger problem. This allows for a two-step propagation strategy: shrink the problem, solve the tiny version perfectly, and expand the results back to the full domain.

Key Insights and Metrics

The "Gap" Parameter

The author introduces the parameter $z$, referred to as the "gap." This represents how far a constraint is from being violated. Propagation is most critical when a constraint is "tight" (a small $z$). Loss-less kernels can be designed to become increasingly effective as the search progresses and the constraint tightens, allowing for opportunistic propagation—triggering computationally intensive pruning only when the problem has shrunk enough to make it efficient.

Kernel Size as a Strength Metric

Currently, propagators are categorized qualitatively (e.g., "bounds consistency"). The author proposes that the size of the kernel can serve as a quantitative measure of a propagator's strength. A smaller kernel indicates a more powerful propagator because it implies a more significant reduction of the problem space before exact methods are applied.

Synthesis of Results

The paper highlights several theoretical breakthroughs achieved through this framework:

  • NVALUE: It demonstrates that the NVALUE constraint is FPT with respect to the number of "holes" in variable domains, offering a path to pruning that exceeds the capabilities of standard interval-based methods.
  • Vertex Cover: The paper references a $(z+2)k$ loss-less kernel for the Vertex Cover constraint. This allows a massive graph to be reduced to a much smaller instance where domain consistency can be maintained for the original graph in polynomial time.
  • Efficiency over Probing: Kernelization-based propagation is shown to be more efficient than "probing" (the brute-force checking of every variable-value pair), which is the traditional, yet often prohibitively expensive, way to achieve domain consistency on hard constraints.

Conclusion and Future Directions

While the framework is promising, several challenges remain. Designing loss-less kernels for a wide variety of NP-complete constraints is a significant mathematical undertaking. Furthermore, modern CP solvers are not yet fully optimized to handle dynamic kernelization during the search process.

The paper concludes by calling for the CP community to move beyond "all-or-nothing" approaches. By embracing tools from parameterized complexity, researchers can develop a more nuanced and mathematically rigorous approach to the hard constraints that lie at the heart of real-world combinatorial problems.

Summary updated

BibTeX
@inproceedings{hebrard2018reasoning,
  author = {Emmanuel Hebrard},
  title = {{Reasoning about NP-complete Constraints}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/807},
}
Figure