In database theory and constraint satisfaction, hypertree width is a critical structural measure of hypergraphs. It identifies when NP-hard problems, such as join processing or constraint satisfaction, can be solved in polynomial time. However, computing an optimal hypertree decomposition is itself a notoriously difficult task ($W[2]$-hard).
In their IJCAI 2021 paper, André Schidler and Stefan Szeider from TU Wien present a breakthrough in this area. By shifting from complex tree-based representations to Linear Elimination Orderings (LEO), they developed a SAT-based solver that significantly outperforms previous state-of-the-art methods.
The Problem: Beyond Treewidth
While treewidth has long benefited from efficient SAT encodings based on vertex orderings, hypertree width lacked a similar characterization. Previous SAT-based approaches were often "bloated" because they had to explicitly represent complex tree structures and enforce the "Special Condition" (T4), which ensures vertices do not re-appear in separate branches of the decomposition tree after being forgotten. Combinatorial algorithms like det-k-decomp also struggle with the complexity of larger instances.
Methods: The LEO Characterization
The authors' primary contribution is the first characterization of hypertree width using linear elimination orderings. Instead of explicitly constructing a tree, the algorithm "eliminates" vertices one by one, creating "fill-in" edges between neighbors.
To handle the unique constraints of hypertree width, the authors introduced arc-paths. This theoretical leap allows them to track which hyperedges are permitted or forbidden along an elimination path, satisfying the Special Condition without requiring a global view of the tree structure.
SAT and SMT Encodings
Based on this theory, they developed HtdLEO in two versions:
- SAT Version: Uses standard Boolean logic with "totalizer" cardinality constraints to manage edge covers.
- SMT Version: Utilizes "SAT Modulo Theories" to handle width constraints with integer arithmetic, providing greater stability for instances with higher widths.
Evaluation and Key Results
The approach was evaluated using Hyperbench, a library of 3,008 hypergraphs from real-world database queries, CSPs, and competition benchmarks. The results demonstrate that the LEO-based encoding is significantly more compact and effective than previous methods.
Key performance metrics include:
- Higher Success Rate: The SMT version of HtdLEO solved 90% of the benchmark instances, a substantial improvement over the 68% solved by
det-k-decompand 60% by the previous SAT-based portfolioHtdSMT. - Efficiency: The LEO-based encoding requires less than half the clauses of previous tree-based encodings.
- Unique Solves: HtdLEO (SMT) successfully solved 128 instances that no other existing solver could process.
Conclusion
By providing a LEO characterization for hypertree width, Schidler and Szeider have bridged a significant gap between treewidth and hypertree width computation. This framework not only enables faster SAT/SMT solvers but also opens the door for adapting other graph algorithms, such as Branch & Bound, to the hypertree width problem. Future work may involve integrating inprocessing techniques to further simplify hypergraphs during the solving process.
Summary updated