skip to main content
research-article

On the Enumeration Complexity of Unions of Conjunctive Queries

Published:29 May 2021Publication History
Skip Abstract Section

Abstract

We study the enumeration complexity of Unions of Conjunctive Queries (UCQs). We aim to identify the UCQs that are tractable in the sense that the answer tuples can be enumerated with a linear preprocessing phase and a constant delay between every successive tuples. It has been established that, in the absence of self-joins and under conventional complexity assumptions, the CQs that admit such an evaluation are precisely the free-connex ones. A union of tractable CQs is always tractable. We generalize the notion of free-connexity from CQs to UCQs, thus showing that some unions containing intractable CQs are, in fact, tractable. Interestingly, some unions consisting of only intractable CQs are tractable too. We show how to use the techniques presented in this article also in settings where the database contains cardinality dependencies (including functional dependencies and key constraints) or when the UCQs contain disequalities. The question of finding a full characterization of the tractability of UCQs remains open. Nevertheless, we prove that, for several classes of queries, free-connexity fully captures the tractable UCQs.

References

  1. Mahmoud Abo Khamis, Hung Q. Ngo, and Dan Suciu. 2017. What do Shannon-type inequalities, submodular width, and disjunctive datalog have to do with one another? In Proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems. 429–444.Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. J. Alman and V. V. Williams. 2018. Limits on all known (and some unknown) approaches to matrix multiplication. In Proceedings of the 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS). 580–591.Google ScholarGoogle Scholar
  3. N. Alon, R. Yuster, and U. Zwick. 1997. Finding and counting given length cycles. Algorithmica 17, 3 (1997), 209–223. DOI:https://doi.org/10.1007/BF02523189Google ScholarGoogle ScholarCross RefCross Ref
  4. Guillaume Bagan, Arnaud Durand, and Etienne Grandjean. 2007. On acyclic conjunctive queries and constant delay enumeration. In Proceedings of the International Workshop on Computer Science Logic. Springer, 208–222.Google ScholarGoogle ScholarCross RefCross Ref
  5. Catriel Beeri, Ronald Fagin, David Maier, and Mihalis Yannakakis. 1983. On the desirability of acyclic database schemes. Journal of the ACM (JACM) 30, 3 (1983), 479–513.Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Christoph Berkholz, Fabian Gerhardt, and Nicole Schweikardt. 2020. Constant delay enumeration for conjunctive queries: A tutorial. ACM SIGLOG News 7, 1 (2020), 4–33.Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Christoph Berkholz, Jens Keppeler, and Nicole Schweikardt. 2017. Answering conjunctive queries under updates. In Proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems (PODS 2017), (Chicago, IL, May 14-19, 2017). 303–318.Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Christoph Berkholz, Jens Keppeler, and Nicole Schweikardt. 2018. Answering UCQs under updates and in the presence of integrity constraints. In Proceedings of the 21st International Conference on Database Theory (ICDT 2018), (March 26-29, 2018, Vienna, Austria). 8:1–8:19.Google ScholarGoogle Scholar
  9. Johann Brault-Baron. 2013. De la pertinence de lâ énumération: Complexité en logiques propositionnelle et du premier ordre. Ph.D. Dissertation. Université de Caen.Google ScholarGoogle Scholar
  10. Florent Capelli and Yann Strozecki. 2018. Incremental delay enumeration: Space and time. Discrete Applied Mathematics (2018). DOI:https://doi.org/10.1016/j.dam.2018.06.038Google ScholarGoogle Scholar
  11. Nofar Carmeli and Markus Kröll. 2019. Enumeration complexity of conjunctive queries with functional dependencies. Theory of Computing Systems (2019). DOI:https://doi.org/10.1007/s00224-019-09937-9Google ScholarGoogle Scholar
  12. Nofar Carmeli and Markus Kröll. 2019. On the enumeration complexity of unions of conjunctive queries. In Proceedings of the 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems (PODS 2019), Amsterdam, The Netherlands, June 30 - July 5, 2019, Dan Suciu, Sebastian Skritek, and Christoph Koch (Eds.). ACM, 134–148. DOI:https://doi.org/10.1145/3294052.3319700Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Ashok K. Chandra and Philip M. Merlin. 1977. Optimal implementation of conjunctive queries in relational data bases. In Proceedings of the 9th Annual ACM Symposium on Theory of Computing (STOC’77). Association for Computing Machinery, New York, 77-90. DOI:https://doi.org/10.1145/800105.803397Google ScholarGoogle Scholar
  14. Arnaud Durand and Etienne Grandjean. 2007. First-order queries on structures of bounded degree are computable with constant delay. ACM Trans. Comput. Logic 8, 4, Article 21 (Aug. 2007). DOI:https://doi.org/10.1145/1276920.1276923Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Friedrich Eisenbrand and Fabrizio Grandoni. 2004. On the complexity of fixed parameter clique and dominating set. Theoretical Computer Science 326, 1–3 (2004), 57–67.Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Fernando Florenzano, Cristian Riveros, Martín Ugarte, Stijn Vansummeren, and Domagoj Vrgoc. 2018. Constant delay algorithms for regular document spanners. In Proceedings of PODS. ACM, 165–177.Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Jörg Flum, Markus Frick, and Martin Grohe. 2002. Query evaluation via tree-decompositions. J. ACM 49, 6 (2002), 716–752.Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Etienne Grandjean. 1996. Sorting, linear time and the satisfiability problem. Ann. Math. Artif. Intell. 16 (1996), 183–236. DOI:https://doi.org/10.1007/BF02127798Google ScholarGoogle ScholarCross RefCross Ref
  19. Muhammad Idris, Martin Ugarte, and Stijn Vansummeren. 2017. The dynamic Yannakakis algorithm: Compact and efficient query processing under updates. In Proceedings of the 2017 ACM International Conference on Management of Data (SIGMOD’17). ACM, New York,, 1259–1274. DOI:https://doi.org/10.1145/3035918.3064027.Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Wojciech Kazana. 2013. Query evaluation with constant delay. Theses. École normale supérieure de Cachan - ENS Cachan. https://tel.archives-ouvertes.fr/tel-00919786Google ScholarGoogle Scholar
  21. François Le Gall. 2014. Powers of tensors and fast matrix multiplication. In Proceedings of the 39th International Symposium on Symbolic and Algebraic Computation (ISSAC’14). ACM, New York,, 296–303. DOI:https://doi.org/10.1145/2608628.2608664Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. Andrea Lincoln, Virginia Vassilevska Williams, and R. Ryan Williams. 2018. Tight hardness for shortest cycles and paths in sparse graphs. In Proceedings of the 29th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2018). 1236–1252.Google ScholarGoogle Scholar
  23. Bernard M. E. Moret and Henry D. Shapiro. 1991. Algorithms from P to NP: Volume 1: Design & Efficiency. Benjamin-Cummings.Google ScholarGoogle Scholar
  24. Matthias Niewerth and Luc Segoufin. 2018. Enumeration of MSO queries on strings with constant delay and logarithmic updates. In Proceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems (Houston, TX, , June 10-15, 2018), Jan Van den Bussche and Marcelo Arenas (Eds.). ACM, 179–191. DOI:https://doi.org/10.1145/3196959.3196961Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. Nicole Schweikardt, Luc Segoufin, and Alexandre Vigny. 2018. Enumeration for FO queries over nowhere dense graphs. In Proceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems (Houston, TX, , June 10-15, 2018), Jan Van den Bussche and Marcelo Arenas (Eds.). ACM, 151–163. DOI:https://doi.org/10.1145/3196959.3196971Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. Luc Segoufin. 2015. Constant delay enumeration for conjunctive queries. SIGMOD Rec. 44, 1 (May 2015), 10–17. DOI:https://doi.org/10.1145/2783888.2783894Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. Luc Segoufin and Alexandre Vigny. 2017. Constant delay enumeration for FO queries over databases with local bounded expansion. In ICDT 2017 (Leibniz International Proceedings in Informatics (LIPIcs)), Michael Benedikt and Giorgio Orsi (Eds.), Vol. 68. Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik, Dagstuhl, Germany, 20:1–20:16.Google ScholarGoogle Scholar
  28. Yann Strozecki. 2010. Enumeration complexity and matroid decomposition. Ph.D. Dissertation. Université Paris Diderot - Paris 7.Google ScholarGoogle Scholar
  29. Mihalis Yannakakis. 1981. Algorithms for acyclic database schemes. In Proceedings of the 7th International Conference on Very Large Data Bases - Volume 7 (VLDB’81). VLDB Endowment, 82–94. http://dl.acm.org/citation.cfm?id=1286831.1286840.Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. On the Enumeration Complexity of Unions of Conjunctive Queries

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image ACM Transactions on Database Systems
          ACM Transactions on Database Systems  Volume 46, Issue 2
          Best of PODS 2019 and Regular Papers
          June 2021
          182 pages
          ISSN:0362-5915
          EISSN:1557-4644
          DOI:10.1145/3468529
          Issue’s Table of Contents

          Copyright © 2021 ACM

          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 the author(s) 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: 29 May 2021
          • Accepted: 1 February 2021
          • Revised: 1 October 2020
          • Received: 1 March 2020
          Published in tods Volume 46, Issue 2

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article
          • Research
          • Refereed

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        HTML Format

        View this article in HTML Format .

        View HTML Format