Answering (Unions of) Conjunctive Queries using Random Access and Random-Order Enumeration
Nofar Carmeli, Shai Zeevi, Christoph Berkholz, Benny Kimelfeld, Nicole, Schweikardt

TL;DR
This paper explores efficient enumeration, random order, and random access of query answers in databases, establishing tractability results for certain classes of conjunctive queries and proposing practical algorithms with empirical validation.
Contribution
It introduces new algorithms for random-order enumeration and random access of UCQ answers, with theoretical guarantees and practical performance improvements.
Findings
Free-connex acyclic CQs are tractable for enumeration, random order, and random access.
Union of free-connex acyclic CQs admits efficient enumeration but not always random access.
Empirical results show the proposed methods outperform existing approaches.
Abstract
As data analytics becomes more crucial to digital systems, so grows the importance of characterizing the database queries that admit a more efficient evaluation. We consider the tractability yardstick of answer enumeration with a polylogarithmic delay after a linear-time preprocessing phase. Such an evaluation is obtained by constructing, in the preprocessing phase, a data structure that supports polylogarithmic-delay enumeration. In this paper, we seek a structure that supports the more demanding task of a "random permutation": polylogarithmic-delay enumeration in truly random order. Enumeration of this kind is required if downstream applications assume that the intermediate results are representative of the whole result set in a statistically valuable manner. An even more demanding task is that of a "random access": polylogarithmic-time retrieval of an answer whose position is given.…
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.
Taxonomy
TopicsAlgorithms and Data Compression · Data Management and Algorithms · Machine Learning and Algorithms
