Backtracking Procedures for Hypertree, HyperSpread and Connected Hypertree Decomposition of CSPs

Sathiamoorthy Subbarayan, Henrik Reif AndersenIJCAI 2007

Introduction

Constraint Satisfaction Problems (CSPs) are fundamental to artificial intelligence, yet they remain generally NP-hard. A well-known theoretical escape route is the use of decomposition methods: if a problem's underlying structure has a low "width," it can be solved in polynomial time. Among these, Hypertree Decomposition (HD) is the gold standard due to its generality. However, finding the optimal (minimum width) decomposition is itself a massive computational challenge. Previous exact algorithms relied on exhaustive preprocessing that often proved impractical for large-scale, realistic instances.

This paper introduces a novel backtracking framework designed to bridge the gap between theoretical generality and practical performance, enabling the discovery of optimal widths for complex, real-world problems.

A New Backtracking Framework

The authors pivot from traditional "generate-all" approaches toward a more efficient backtracking procedure. The core algorithm, IsDecomposable, recursively breaks hypergraphs into components. Unlike previous methods, this search stops as soon as any decomposition of a target width $k$ is found, allowing for "early exits" that save significant computation time.

The Power of Isomorphism Detection

A critical optimization in this framework is the detection of isomorphic components. By identifying sub-problems that are structurally identical, the algorithm can cache results—whether a component is decomposable or not—and reuse them. This pruning of the search tree is often the difference between a solver timing out and finding a solution in seconds.

Generic Decomposition Template

The procedure is generalized into a template (IsDecomposableGe), allowing researchers to switch between different decomposition types by simply altering the rules for variable subsets:

  • Hypertree Decomposition (HD)
  • HyperSpread Decomposition: A new method that bounds both hypertree and spread cut widths, solving a long-standing open problem.
  • Connected Hypertree Decomposition (CHTD): A variant requiring each node to share at least one variable with its parent, which drastically reduces the search space.
Impact of isomorphism detection and the CHTD constraint on search time.

Key Insights: The "Connected" Advantage

The "Connected Hypertree" constraint is more than a structural variation; it acts as a powerful heuristic. By requiring nodes to be "connected" to their parents, the algorithm ignores a vast number of mathematically valid but practically useless decomposition paths. Empirical evidence suggests that for many realistic problems, the optimal connected width is identical to the standard hypertree width, but it is much faster to compute.

Experimental Results

The authors evaluated their methods on 12 realistic instances from configuration problems, fault trees, and SMT (Satisfiability Modulo Theories) domains. These instances represent "real-world" complexity rather than synthetic benchmarks.

Performance comparison of CHTD and HTD methods across realistic CSP instances.

As shown in the results table, the CHTD method found optimal decompositions for 8 out of 12 instances, whereas previous state-of-the-art exact methods (like red-k-decomp) failed to solve almost any within the 1800-second limit. Furthermore, the authors theoretically proved that HyperSpread width is bounded by both hypertree and spread cut widths, providing a definitive answer to a research question posed in 2006.

Future Directions

While the backtracking framework represents a significant leap forward, several avenues for research remain open:

  • Implementation of HyperSpread: While theoretically defined, the practical implementation of HyperSpread decomposition remains a challenge.
  • Width Equality: A formal proof is still needed to determine if connected hypertree width is always equal to standard hypertree width.
  • Hybrid Approaches: The most promising path for industrial applications likely involves a hybrid strategy: using fast heuristics to find initial upper bounds and then refining them with this exact backtracking method.

Summary updated

BibTeX
@inproceedings{subbarayan2007backtracking,
  author = {Sathiamoorthy Subbarayan and Henrik Reif Andersen},
  title = {{Backtracking Procedures for Hypertree, HyperSpread and Connected Hypertree Decomposition of CSPs}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2007},
}
Figure