Abstract
Hypertree decompositions (HDs), as well as the more powerful generalized hypertree decompositions (GHDs), and the yet more general fractional hypertree decompositions (FHDs) are hypergraph decomposition methods successfully used for answering conjunctive queries and for solving constraint satisfaction problems. Every hypergraph $H$ has a width relative to each of these methods: its hypertree width $hw(H)$, its generalized hypertree width $ghw(H)$, and its fractional hypertree width $fhw(H)$, respectively. It is known that $hw(H)\leq k$ can be checked in polynomial time for fixed $k$, while checking $ghw(H)\leq k$ is NP-complete for $k \geq 3$. The complexity of checking $fhw(H)\leq k$ for a fixed $k$ has been open for over a decade. We settle this open problem by showing that checking $fhw(H)\leq k$ is NP-complete, even for $k=2$. The same construction allows us to prove also the NP-completeness of checking $ghw(H)\leq k$ for $k=2$. After that, we identify meaningful restrictions which make checking for bounded $ghw$ or $fhw$ tractable or allow for an efficient approximation of the $fhw$.
Introduction
In computational complexity and database theory, evaluating Conjunctive Queries (CQs) and solving Constraint Satisfaction Problems (CSPs) are fundamental tasks. These problems are generally NP-hard, but they become tractable when the underlying hypergraph structure is "tree-like." To quantify this, researchers use various width metrics: Hypertree Width ($hw$), Generalized Hypertree Width ($ghw$), and Fractional Hypertree Width ($fhw$).
While $hw$ has long been known to be computable in polynomial time for a fixed $k$, the complexity of $fhw$—the most powerful of these metrics—remained a significant open question for over a decade. This paper settles the debate by demonstrating that recognizing hypergraphs with low fractional hypertree width is NP-complete, even for the simplest non-trivial case of $k=2$.
Hardness of Decomposition
The core contribution of this work is the proof that deciding if $fhw(H) \le 2$ or $ghw(H) \le 2$ is NP-complete. To achieve this, the authors developed a sophisticated reduction from the 3SAT problem. Proving hardness for the fractional case is particularly difficult because fractional covers allow weights to be distributed across multiple edges, potentially bypassing traditional graph-based gadgets.
The reduction introduces novel "gadgets" that constrain any valid decomposition to reflect a satisfying assignment of the original logic formula. As shown in the figure above, the "solution path" acts as a structural backbone that links the decompositions of various sub-hypergraphs ($H_0$ and $H'_0$), ensuring that the overall width remains $\le 2$ only if the 3SAT instance is satisfiable.
Islands of Tractability
Despite the inherent hardness of these metrics, the paper identifies "islands of tractability" where $ghw$ and $fhw$ can be computed efficiently. The authors argue that the NP-hardness of these problems stems from edges sharing an arbitrary number of vertices. By introducing structural constraints, they restore polynomial-time tractability:
- Bounded Intersection Property (BIP): Limits the number of vertices shared between any two edges.
- Bounded Multi-Intersection Property (BMIP): Limits the number of vertices shared across multiple edges.
If a class of hypergraphs satisfies the LogBIP condition (where intersections grow logarithmically with the size of the hypergraph), checking for $ghw \le k$ or $fhw \le k$ becomes tractable (PTIME) for any fixed $k$. Furthermore, for hypergraphs satisfying BMIP, the authors provide a Polynomial Time Approximation Scheme (PTAS).
Theoretical Connections and Practical Relevance
The research also bridges hypergraph theory and machine learning by linking decomposition complexity to the Vapnik–Chervonenkis (VC) dimension. Hypergraphs with bounded VC-dimension allow for significantly better approximations of $fhw$ ($O(k \log k)$) than the general case.
While this is a theoretical study, its implications are practical. By analyzing the HyperBench dataset—a collection of real-world CQs and CSPs—the authors found that the vast majority of practical queries actually satisfy the BIP and BMIP constraints. This suggests that while the general problem is hard, the specific instances encountered in database engines and solvers are often within the identified "islands of tractability."
Conclusion
By settling the complexity of $fhw \le 2$, this work completes the complexity landscape for standard hypertree decomposition metrics. While the general recognition problem is NP-complete, the introduction of BIP and BMIP provides a roadmap for developing efficient algorithms for real-world applications. Future work remains to determine if the "special condition" variant of $fhw$ is easier to recognize and to close the tractability gap for the BMIP constraint.
Summary updated