skip to main content
10.1145/3584372.3588675acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
research-article

Space-Time Tradeoffs for Conjunctive Queries with Access Patterns

Published:18 June 2023Publication History

ABSTRACT

In this paper, we investigate space-time tradeoffs for answering conjunctive queries with access patterns (CQAPs). The goal is to create a space-efficient data structure in an initial preprocessing phase and use it for answering (multiple) queries in an online phase. Previous work has developed data structures that trades off space usage for answering time for queries of practical interest, such as the path and triangle query. However, these approaches lack a comprehensive framework and are not generalizable. Our main contribution is a general algorithmic framework for obtaining space-time tradeoffs for any CQAP. Our framework builds upon the PANDA algorithm and tree decomposition techniques. We demonstrate that our framework captures all state-of-the-art tradeoffs that were independently produced for various queries. Further, we show surprising improvements over the state-of-the-art tradeoffs known in the existing literature for reachability queries.

References

  1. Peyman Afshani and Jesper Asbjørn Sindahl Nielsen. Data structure lower bounds for document indexing problems. In ICALP, 2016.Google ScholarGoogle Scholar
  2. Rachit Agarwal. The space-stretch-time tradeoff in distance oracles. In ESA, pages 49--60. Springer, 2014.Google ScholarGoogle ScholarCross RefCross Ref
  3. Rachit Agarwal, P Brighten Godfrey, and Sariel Har-Peled. Approximate distance queries and compact routing in sparse graphs. In INFOCOM, pages 1754--1762. IEEE, 2011.Google ScholarGoogle ScholarCross RefCross Ref
  4. Guillaume Bagan, Arnaud Durand, and Etienne Grandjean. On acyclic conjunctive queries and constant delay enumeration. In CSL, volume 4646 of Lecture Notes in Computer Science, pages 208--222. Springer, 2007.Google ScholarGoogle ScholarCross RefCross Ref
  5. Christoph Berkholz, Jens Keppeler, and Nicole Schweikardt. Answering conjunctive queries under updates. In PODS, pages 303--318. ACM, 2017.Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Angela Bonifati, Wim Martens, and Thomas Timm. An analytical study of large sparql query logs. The VLDB Journal, 29(2):655--679, 2020.Google ScholarGoogle ScholarCross RefCross Ref
  7. Timothy M Chan and Moshe Lewenstein. Clustered integer 3sum via additive combinatorics. In STOC, pages 31--40, 2015.Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Hagai Cohen and Ely Porat. Fast set intersection and two-patterns matching. Theoretical Computer Science, 411(40--42):3795--3800, 2010.Google ScholarGoogle Scholar
  9. Hagai Cohen and Ely Porat. On the hardness of distance oracle for sparse graph. arXiv preprint arXiv:1006.1117, 2010.Google ScholarGoogle Scholar
  10. Nilesh Dalvi, Christopher Ré, and Dan Suciu. Probabilistic databases: diamonds in the dirt. Communications of the ACM, 52(7):86--94, 2009.Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Shaleen Deep, Xiao Hu, and Paraschos Koutris. Enumeration algorithms for conjunctive queries with projection. In 24th International Conference on Database Theory, page 1, 2021.Google ScholarGoogle Scholar
  12. Shaleen Deep, Xiao Hu, and Paraschos Koutris. Space-time tradeoffs for answering boolean conjunctive queries. arXiv preprint arXiv:2109.10889, 2021.Google ScholarGoogle Scholar
  13. Shaleen Deep and Paraschos Koutris. Compressed representations of conjunctive query results. In PODS, pages 307--322. ACM, 2018.Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Shiyuan Deng, Shangqi Lu, and Yufei Tao. Space-query tradeoffs in range sub-graph counting and listing. In 26th International Conference on Database Theory, ICDT 2023, March 28--31, 2023, Ioannina, Greece, pages 6:1--6:25, 2023.Google ScholarGoogle Scholar
  15. Isaac Goldstein, Tsvi Kopelowitz, Moshe Lewenstein, and Ely Porat. Conditional lower bounds for space/time tradeoffs. In WADS, pages 421--436. Springer, 2017.Google ScholarGoogle ScholarCross RefCross Ref
  16. Georg Gottlob, Gianluigi Greco, and Francesco Scarcello. Treewidth and hyper-tree width. Tractability: Practical Approaches to Hard Problems, 1, 2014.Google ScholarGoogle Scholar
  17. Gianluigi Greco and Francesco Scarcello. Structural tractability of enumerating csp solutions. Constraints, 18(1):38--74, 2013.Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Muhammad Idris, Martín Ugarte, and Stijn Vansummeren. The dynamic yannakakis algorithm: Compact and efficient query processing under updates. In Proceedings of the 2017 ACM International Conference on Management of Data, pages 1259--1274, 2017.Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Ahmet Kara, Hung Q Ngo, Milos Nikolic, Dan Olteanu, and Haozhe Zhang. Counting triangles under updates in worst-case optimal time. In ICDT, 2019.Google ScholarGoogle Scholar
  20. Ahmet Kara, Milos Nikolic, Dan Olteanu, and Haozhe Zhang. Trade-offs in static and dynamic evaluation of hierarchical queries. In PODS, pages 375--392, 2020.Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. Ahmet Kara, Milos Nikolic, Dan Olteanu, and Haozhe Zhang. Conjunctive queries with free access patterns under updates. In Proceedings of the 26th International Conference on Database Theory (ICDT 2023), 2022. The 26th International Conference on Database Theory, 2023, ICDT 2023 ; Conference date: 28-03--2023 Through 31-03--2023.Google ScholarGoogle Scholar
  22. Mahmoud Abo Khamis, Phokion G. Kolaitis, Hung Q. Ngo, and Dan Suciu. Bag query containment and information theory. In PODS, pages 95--112. ACM, 2020.Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. Mahmoud Abo Khamis, Hung Q. Ngo, and Atri Rudra. FAQ: questions asked frequently. In PODS, pages 13--28. ACM, 2016.Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. Mahmoud Abo Khamis, Hung Q. Ngo, and Dan Suciu. What do shannon-type inequalities, submodular width, and disjunctive datalog have to do with one another? In PODS, pages 429--444. ACM, 2017.Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. Tomasz Kociumaka, Jakub Radoszewski, and Wojciech Rytter. Efficient indexes for jumbled pattern matching with constant-sized alphabet. In ESA, pages 625--636. Springer, 2013.Google ScholarGoogle ScholarCross RefCross Ref
  26. Kasper Green Larsen, J Ian Munro, Jesper Sindahl Nielsen, and Sharma V Thankachan. On hardness of several string indexing problems. Theoretical Computer Science, 582:74--82, 2015.Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. Dániel Marx. Can you beat treewidth? Theory Comput., 6(1):85--112, 2010.Google ScholarGoogle ScholarCross RefCross Ref
  28. Dániel Marx. Tractable hypergraph properties for constraint satisfaction and conjunctive queries. J. ACM, 60(6):42:1--42:51, 2013.Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. Hung Q. Ngo, Christopher Ré, and Atri Rudra. Skew strikes back: new developments in the theory of join algorithms. SIGMOD Rec., 42(4):5--16, 2013.Google ScholarGoogle ScholarDigital LibraryDigital Library
  30. Dan Olteanu and Maximilian Schleich. Factorized databases. ACM SIGMOD Record, 45(2):5--16, 2016.Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. Dan Olteanu and Jakub Závodný. Size bounds for factorised representations of query results. ACM Trans. Database Syst., 40(1):2:1--2:44, 2015.Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. Mihai Patrascu and Liam Roditty. Distance oracles beyond the thorup-zwick bound. In FOCS, pages 815--823. IEEE, 2010.Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. Luc Segoufin. Enumerating with constant delay the answers to a query. In ICDT, pages 10--20. ACM, 2013.Google ScholarGoogle ScholarDigital LibraryDigital Library
  34. Yilei Wang and Ke Yi. Secure yannakakis: Join-aggregate queries over private data. In SIGMOD Conference, pages 1969--1981. ACM, 2021.Google ScholarGoogle Scholar
  35. Konstantinos Xirogiannopoulos and Amol Deshpande. Extracting and analyzing hidden graphs from relational databases. CoRR, abs/1701.07388, 2017.Google ScholarGoogle Scholar
  36. Mihalis Yannakakis. Algorithms for acyclic database schemes. In VLDB, pages 82--94. IEEE Computer Society, 1981.Google ScholarGoogle ScholarDigital LibraryDigital Library
  37. Hangdong Zhao, Shaleen Deep, and Paraschos Koutris. Space-time tradeoffs for conjunctive queries with access patterns. arXiv preprint arXiv:2304.06221, 2023.Google ScholarGoogle Scholar

Index Terms

  1. Space-Time Tradeoffs for Conjunctive Queries with Access Patterns

          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
          • Published in

            cover image ACM Conferences
            PODS '23: Proceedings of the 42nd ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems
            June 2023
            392 pages
            ISBN:9798400701276
            DOI:10.1145/3584372

            Copyright © 2023 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: 18 June 2023

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • research-article

            Acceptance Rates

            Overall Acceptance Rate642of2,707submissions,24%
          • Article Metrics

            • Downloads (Last 12 months)114
            • Downloads (Last 6 weeks)15

            Other Metrics

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader