Tractable Orders for Direct Access to Ranked Answers of Conjunctive Queries
Nofar Carmeli, Nikolaos Tziavelis, Wolfgang Gatterbauer, Benny, Kimelfeld, Mirek Riedewald

TL;DR
This paper investigates the conditions under which ranked answers to conjunctive queries can be accessed efficiently, providing characterizations for tractable answer orders and exploring the impact of functional dependencies.
Contribution
It offers decidable characterizations of tractable answer orderings for conjunctive queries without self-joins, including lexicographic and weighted orders, and examines the role of functional dependencies.
Findings
Decidable characterizations for lexicographic orders.
Decidable characterizations for weighted attribute orders.
Analysis of the impact of functional dependencies on tractability.
Abstract
We study the question of when we can provide direct access to the k-th answer to a Conjunctive Query (CQ) according to a specified order over the answers in time logarithmic in the size of the database, following a preprocessing step that constructs a data structure in time quasilinear in database size. Specifically, we embark on the challenge of identifying the tractable answer orderings, that is, those orders that allow for such complexity guarantees. To better understand the computational challenge at hand, we also investigate the more modest task of providing access to only a single answer (i.e., finding the answer at a given position), a task that we refer to as the selection problem, and ask when it can be performed in quasilinear time. We also explore the question of when selection is indeed easier than ranked direct access. We begin with lexicographic orders. For each of the…
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
TopicsAdvanced Database Systems and Queries · Data Management and Algorithms · Logic, Reasoning, and Knowledge
