Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/2448496.2448508acmotherconferencesArticle/Chapter ViewAbstractPublication PagesedbtConference Proceedingsconference-collections
research-article

Structural tractability of counting of solutions to conjunctive queries

Published: 18 March 2013 Publication History

Abstract

In this paper we explore the problem of counting solutions to conjunctive queries. We consider a parameter called the 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 nO(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.

References

[1]
I. Adler, G. Gottlob, and G. Grohe. Hypertree width and related hypergraph invariants. Eur. J. Comb., 28(8):2167--2181, 2007.
[2]
G. Bagan, A. Durand, and G. Grandjean. On Acyclic Conjunctive Queries and Constant Delay Enumeration. In CSL'07, 16th Annual Conference of the EACSL, volume 4646 of LNCS, pages 208--222. Springer, 2007.
[3]
H. Bodlaender. A linear time algorithm for finding tree-decompositions of small treewidth. In Proceedings of the twenty-fifth annual ACM symposium on Theory of computing, pages 226--234. ACM, 1993.
[4]
A. Bulatov, V. Dalmau, M. Grohe, and D. Marx. Enumerating homomorphisms. J. Comput. Syst. Sci., 78(2):638--650, 2012.
[5]
H. Chen. On the Complexity of Existential Positive Queries. ArXiv e-prints, June 2012.
[6]
H. Chen and V. Dalmau. Beyond Hypertree Width: Decomposition Methods Without Decompositions. In 11th International Conference Principles and Practice of Constraint Programming, CP '05, pages 167--181, 2005.
[7]
H. Chen and V. Dalmau. Decomposing quantified conjunctive (or disjunctive) formulas. LICS, 2012.
[8]
D. Cohen, P. Jeavons, and M. Gyssens. A unified theory of structural tractability for constraint satisfaction problems. Journal of Computer and System Sciences, 74(5):721--743, 2008.
[9]
V. Dalmau and P. Jonsson. The complexity of counting homomorphisms seen from the other side. Theor. Comput. Sci., 329(1-3):315--323, 2004.
[10]
A. Durand and S. Mengel. The Complexity of Weighted Counting for Acyclic Conjunctive Queries. Arxiv preprint arXiv:1110.4201, 2011.
[11]
J. Flum, M. Frick, and M. Grohe. Query Evaluation via Tree-Decompositions. J. ACM, 49(6):716--752, 2002.
[12]
J. Flum and M. Grohe. Parameterized Complexity Theory. Springer-Verlag New York Inc., 2006.
[13]
G. Gottlob, N. Leone, and F. Scarcello. A comparison of structural CSP decomposition methods. Artif. Intell., 124(2):243--282, 2000.
[14]
G. Gottlob, N. Leone, and F. Scarcello. Hypertree decompositions and tractable queries. J. Comput. Syst. Sci., 64(3):579--627, 2002.
[15]
G. Gottlob, Z. Miklós, and T. Schwentick. Generalized Hypertree Decompositions: NP-Hardness and Tractable Variants. J. ACM, 56(6), 2009.
[16]
G. Greco and F. Scarcello. Structural Tractability of Enumerating CSP Solutions. In Proceedings of the 16th International Conference on Principles and Practice of Constraint Programming, CP '10, pages 236--251, 2010.
[17]
M. Grohe. The complexity of homomorphism and constraint satisfaction problems seen from the other side. J. ACM, 54(1), 2007.
[18]
M. Grohe and D. Marx. Constraint Solving via Fractional Edge Covers. In 17th annual ACM-SIAM symposium on Discrete algorithm, SODA '06, pages 289--298, New York, NY, USA, 2006. ACM.
[19]
M. Grohe, T. Schwentick, and L. Segoufin. When is the evaluation of conjunctive queries tractable? In Proceedings of the thirty-third annual ACM symposium on Theory of computing, pages 657--666. ACM, 2001.
[20]
M. Gyssens, P. Jeavons, and D. Cohen. Decomposing Constraint Satisfaction Problems Using Database Techniques. Artif. Intell., 66(1):57--89, 1994.
[21]
L. Libkin. Elements of Finite Model Theory. EATCS Series. Springer, 2004.
[22]
D. Marx. Approximating fractional hypertree width. ACM Trans. Algorithms, 6(2):29:1--29:17, Apr. 2010.
[23]
Z. Miklós. Understanding Tractable Decompositions for Constraint Satisfaction. PhD thesis, University of Oxford, 2008.
[24]
R. Pichler and A. Skritek. Tractable Counting of the Answers to Conjunctive Queries. In AMW, 2011.
[25]
M. Yannakakis. Algorithms for Acyclic Database Schemes. In VLDB, pages 82--94, 1981.

Cited By

View all
  • (2024)Counting Answers to Unions of Conjunctive Queries: Natural Tractability Criteria and Meta-ComplexityProceedings of the ACM on Management of Data10.1145/36516142:2(1-17)Online publication date: 14-May-2024
  • (2023)Solving Projected Model Counting by Utilizing Treewidth and its LimitsArtificial Intelligence10.1016/j.artint.2022.103810314:COnline publication date: 1-Jan-2023
  • (2018)First-Order Query Evaluation with Cardinality ConditionsProceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3196959.3196970(253-266)Online publication date: 27-May-2018
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
ICDT '13: Proceedings of the 16th International Conference on Database Theory
March 2013
301 pages
ISBN:9781450315982
DOI:10.1145/2448496
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 18 March 2013

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. conjunctive queries
  2. counting complexity
  3. hypergraph decomposition techniques

Qualifiers

  • Research-article

Funding Sources

Conference

EDBT/ICDT '13

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)12
  • Downloads (Last 6 weeks)1
Reflects downloads up to 24 Dec 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Counting Answers to Unions of Conjunctive Queries: Natural Tractability Criteria and Meta-ComplexityProceedings of the ACM on Management of Data10.1145/36516142:2(1-17)Online publication date: 14-May-2024
  • (2023)Solving Projected Model Counting by Utilizing Treewidth and its LimitsArtificial Intelligence10.1016/j.artint.2022.103810314:COnline publication date: 1-Jan-2023
  • (2018)First-Order Query Evaluation with Cardinality ConditionsProceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3196959.3196970(253-266)Online publication date: 27-May-2018
  • (2017)The logic of counting query answersProceedings of the 32nd Annual ACM/IEEE Symposium on Logic in Computer Science10.5555/3329995.3330020(1-12)Online publication date: 20-Jun-2017
  • (2017)Juggling Functions Inside a DatabaseACM SIGMOD Record10.1145/3093754.309375746:1(6-13)Online publication date: 12-May-2017
  • (2017)The Tractability Frontier of Graph-Like First-Order Query SetsJournal of the ACM10.1145/307340964:4(1-29)Online publication date: 17-Aug-2017
  • (2017)The logic of counting query answers2017 32nd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)10.1109/LICS.2017.8005085(1-12)Online publication date: Jun-2017
  • (2016)FAQProceedings of the 35th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/2902251.2902280(13-28)Online publication date: 15-Jun-2016
  • (2015)Constant Delay Enumeration for Conjunctive QueriesACM SIGMOD Record10.1145/2783888.278389444:1(10-17)Online publication date: 21-May-2015
  • (2014)The tractability frontier of graph-like first-order query setsProceedings of the Joint Meeting of the Twenty-Third EACSL Annual Conference on Computer Science Logic (CSL) and the Twenty-Ninth Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)10.1145/2603088.2603119(1-9)Online publication date: 14-Jul-2014
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media