Counting Solutions to Conjunctive Queries: Structural and Hybrid Tractability
Not on the map. Why?
Abstract (arXiv)
Counting the number of answers to conjunctive queries is a fundamental problem in databases that, under standard assumptions, does not have an efficient solution. The issue is inherently #P-hard, extending even to classes of acyclic instances. To address this, we pinpoint tractable classes by examining the structural properties of instances and introducing the novel concept of #-hypertree decomposition. We establish the feasibility of counting answers in polynomial time for classes of queries featuring bounded #-hypertree width. Additionally, employing novel techniques from the realm of fixed-parameter computational complexity, we prove that, for bounded arity queries, the bounded #-hypertree width property precisely delineates the frontier of tractability for the counting problem. This result closes an important gap in our understanding of the complexity of such a basic problem for conjunctive queries and, equivalently, for constraint satisfaction problems (CSPs). Drawing upon #-hypertree decompositions, a ''hybrid'' decomposition method emerges. This approach leverages both the structural characteristics of the query and properties intrinsic to the input database, including keys or other (weaker) degree constraints that limit the permissible combinations of values. Intuitively, these features may introduce distinct structural properties that elude identification through the ''worst-possible database'' perspective inherent in purely structural methods.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 7 of its 55 references that are in the map. First posted on arXiv 24 Nov 2023.
Builds on
7 of 55 references.
References · 7
- 2015FAQ: Questions Asked Frequentlycited by 14
- 2017Size bounds and query plans for relational joinscited by 10
- 2017Constraint Solving via Fractional Edge Coverscited by 5
- 2014A Trichotomy in the Complexity of Counting Answers to Conjunctive Queriescited by 3
- 2016Counting Answers to Existential Positive Queries: A Complexity Classificationcited by 3
- 2013Structural Tractability of Counting of Solutions to Conjunctive Queriescited by 2
- 2014The Tractability Frontier of Graph-Like First-Order Query Setscited by 1
Built on by
Not cited yet.