Skip to main content
QUICK REVIEW

[Paper Review] Structural Tractability of Counting of Solutions to Conjunctive Queries

Arnaud Durand, Stefan Mengel|arXiv (Cornell University)|Mar 8, 2013
Algorithms and Data CompressionComputer Science21 references12 citations
TL;DR

This paper introduces quantified star size as a structural parameter to characterize tractable counting of solutions to conjunctive queries (CQs). It proves that for classes of CQs with bounded generalized hypertree width or treewidth, counting solutions is tractable if and only if the quantified star size is bounded—offering a precise characterization of tractable counting beyond acyclic queries.

ABSTRACT

In this paper we explore the problem of counting solutions to conjunctive queries. We consider a parameter called the \emph{quantified star size} of a formula $φ$ which measures how the free variables are spread in $φ$. We show that for conjunctive queries that admit nice decomposition properties (such as being of bounded treewidth or generalized hypertree width) bounded quantified star size exactly characterizes the classes of queries for which counting the number of solutions is tractable. This also allows us to fully characterize the conjunctive queries for which counting the solutions is tractable in the case of bounded arity. To illustrate the applicability of our results, we also show that computing the quantified star size of a formula is possible in time $n^{O(k)}$ for queries of generalized hypertree width $k$. Furthermore, quantified star size is even fixed parameter tractable parameterized by some other width measures, while it is $\W{1}$-hard for generalized hypertree width and thus unlikely to be fixed parameter tractable. We finally show how to compute an approximation of quantified star size in polynomial time where the approximation ratio depends on the width of the input.

Motivation & Objective

  • To identify structural conditions under which counting solutions to conjunctive queries is tractable, extending prior results from acyclic to general CQs.
  • To define and formalize the concept of quantified star size for general conjunctive queries, measuring the spread of free variables in the query structure.
  • To establish that bounded quantified star size exactly characterizes tractable counting classes when combined with bounded generalized hypertree width or treewidth.
  • To provide efficient algorithms for computing or approximating quantified star size, and to analyze its parameterized complexity.
  • To explore the implications for broader logic extensions, such as QCSP and disjunctive queries, suggesting directions for future work.

Proposed method

  • Generalize the notion of quantified star size from acyclic queries to arbitrary conjunctive queries using hypergraph decomposition and fractional hypertree covers.
  • Define the quantified star size as the maximum size of an independent set in a subhypergraph induced by free variables, under a fractional hypertree decomposition.
  • Use fractional hypertree decompositions of width $k$ to bound the quantified star size and relate it to the complexity of counting solutions.
  • Construct a transformed query $ abla'$ from the original query $ abla$ by adding constraints to model variable dependencies, preserving solution equivalence.
  • Apply dynamic programming on fractional hypertree decompositions to compute maximum independent sets (i.e., quantify star size) in time $|\mathcal{H}|^{k^{O(1)}}$.
  • Leverage known results on fractional hypertree width and solution enumeration to derive approximation algorithms for quantified star size with width-dependent approximation ratios.

Experimental results

Research questions

  • RQ1What structural parameter characterizes tractable counting of solutions to conjunctive queries beyond acyclic cases?
  • RQ2How does quantified star size relate to known width measures like generalized hypertree width and treewidth in the context of counting complexity?
  • RQ3Can quantified star size be computed efficiently, and what is its parameterized complexity with respect to different width measures?
  • RQ4To what extent can the tractability of counting be extended to queries with disjunctions or universal quantifiers?
  • RQ5Is there a tight connection between decision tractability and counting tractability in extensions of CQs, such as QCSP?

Key findings

  • Counting solutions to conjunctive queries is tractable (in polynomial time) if and only if the queries have bounded quantified star size, assuming $\mathbf{FPT} \neq \mathbf{\#W[1]}$.
  • For queries of bounded generalized hypertree width $k$, computing the quantified star size is possible in time $n^{O(k)}$, and is fixed-parameter tractable with respect to $k$.
  • Quantified star size is $\mathbf{W[1]}$-hard when parameterized by generalized hypertree width, indicating it is unlikely to be fixed-parameter tractable under standard complexity assumptions.
  • An approximation of the quantified star size can be computed in polynomial time, with the approximation ratio depending on the width of the input query.
  • The construction of a fractional hypertree decomposition of width $k'$ for a transformed query $\nabla'$ ensures that the width is preserved up to a constant factor, enabling efficient counting.
  • Maximum independent sets in hypergraphs of fractional hypertree width $k$ can be computed in time $|\mathcal{H}|^{k^{O(1)}}$ using dynamic programming on decompositions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.