Fine-Grained Dichotomies for Conjunctive Queries with Minimum or Maximum
By: Nofar Carmeli, Nikolaos Tziavelis
Potential Business Impact:
Finds specific data in databases much faster.
We investigate the fine-grained complexity of direct access to Conjunctive Query (CQ) answers according to their position, ordered by the minimum (or maximum) value between attributes. We further use the tools we develop to explore a wealth of related tasks. We consider the task of ranked enumeration under min/max orders, as well as tasks concerning CQs with predicates of the form x <= min X , where X is a set of variables and x is a single variable: counting, enumeration, direct access, and predicate elimination (i.e., transforming the pair of query and database to an equivalent pair without min-predicates). For each task, we establish a complete dichotomy for self-join-free CQs, precisely identifying the cases that are solvable in near-ideal time, i.e., (quasi)linear preprocessing time followed by constant or logarithmic time per output.
Similar Papers
Partition Constraints for Conjunctive Queries: Bounds and Worst-Case Optimal Joins
Databases
Finds hidden patterns to speed up computer searches.
Semi-interval Comparison Constraints in Query Containment and Their Impact on Certain Answer Computation
Databases
Helps computers figure out if one question is part of another.
Semi-interval Comparison Constraints in Query Containment and Their Impact on Certain Answer Computation
Databases
Makes computer questions about numbers faster.