When is Approximate Counting for Conjunctive Queries Tractable?
Marcelo Arenas, Luis Alberto Croquevielle, Rajesh Jayaram, Cristian, Riveros

TL;DR
This paper extends the characterization of tractability for conjunctive query evaluation to counting, providing the first FPRAS and sampling algorithms for classes with bounded treewidth and hypertree width, with broad applications.
Contribution
It introduces the first fully polynomial-time randomized approximation scheme for counting answers to conjunctive queries with bounded treewidth and hypertree width, extending prior theoretical results.
Findings
FPRAS for counting answers in bounded treewidth classes
Polynomial-time sampler for automata-accepted trees
Applicability to CSPs, program analysis, and DNNF circuits
Abstract
Conjunctive queries are one of the most common class of queries used in database systems, and the best studied in the literature. A seminal result of Grohe, Schwentick, and Segoufin (STOC 2001) demonstrates that for every class of graphs, the evaluation of all conjunctive queries whose underlying graph is in is tractable if, and only if, has bounded treewidth. In this work, we extend this characterization to the counting problem for conjunctive queries. Specifically, for every class of conjunctive queries with bounded treewidth, we introduce the first fully polynomial-time randomized approximation scheme (FPRAS) for counting answers to a query in , and the first polynomial-time algorithm for sampling answers uniformly from a query in . As a corollary, it follows that for every class of graphs, the counting problem for conjunctive queries whose underlying graph…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
