Skip to main navigation Skip to search Skip to main content

Tractable orders for direct access to ranked answers of conjunctive queries

Nofar Carmeli, Nikolaos Tziavelis, Wolfgang Gatterbauer, Benny Kimelfeld, Mirek Riedewald

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

We study the question of when we can provide logarithmic-time direct access to the k-th answer to a Conjunctive Query (CQ) with a specified ordering over the answers, following a preprocessing step that constructs a data structure in time quasilinear in the size of the database. Specifically, we embark on the challenge of identifying the tractable answer orderings that allow for ranked direct access with such complexity guarantees. We begin with lexicographic orderings and give a decidable characterization (under conventional complexity assumptions) of the class of tractable lexicographic orderings for every CQ without self-joins. We then continue to the more general orderings by the sum of attribute weights and show for it that ranked direct access is tractable only in trivial cases. Hence, to better understand the computational challenge at hand, we consider 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. We indeed achieve a quasilinear-time algorithm for a subset of the class of full CQs without self-joins, by adopting a solution of Frederickson and Johnson to the classic problem of selection over sorted matrices. We further prove that none of the other queries in this class admit such an algorithm.

Original languageEnglish
Title of host publicationPODS 2021 - Proceedings of the 40th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems
Pages325-341
Number of pages17
ISBN (Electronic)9781450383813
DOIs
StatePublished - 20 Jun 2021
Externally publishedYes
Event40th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS 2021 - Virtual, Online, China
Duration: 20 Jun 202125 Jun 2021

Publication series

NameProceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems

Conference

Conference40th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS 2021
Country/TerritoryChina
CityVirtual, Online
Period20/06/2125/06/21

Keywords

  • Answer orderings
  • Conjunctive queries
  • Direct access
  • Query classification
  • Ranking function

All Science Journal Classification (ASJC) codes

  • Software
  • Information Systems
  • Hardware and Architecture

Fingerprint

Dive into the research topics of 'Tractable orders for direct access to ranked answers of conjunctive queries'. Together they form a unique fingerprint.

Cite this