Fine-grained Complexity of Database Queries
Open Access
- 30 May 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 18
Abstract
Fine-grained complexity theory is the area of theoretical computer science that proves conditional lower bounds. Starting from a popular conjecture about the time complexity of a core problem (e.g., the Strong Exponential Time Hypothesis for the Satisfiability problem), we can design fine-grained reductions to transfer the conjectured intractability to other problems, yielding conditional lower bounds. After initial results in the 90s, the field has matured over the last 15 years, demonstrating its usefulness across many areas of computer science including graph algorithms, optimization, computational geometry, and string processing. Naturally, fine-grained complexity has also found compelling applications in database theory, specifically for join queries and, more generally, conjunctive queries, which generalize graph pattern matching problems that are fundamental in graph algorithms. In this talk, we will discuss recent results on listing, enumeration, and direct access algorithms for join queries and conjunctive queries, thereby exploring the intersection of database theory and graph algorithms through the lens of fine-grained complexity. Specifically, we address the quest for optimal output-sensitive algorithms for join queries. For a fixed join query Q, we ask: what is the smallest exponent c(Q) such that the query can be answered in time O(nc(Q)+t), where n is the database size and t is the number of query answers? While algorithm design establishes upper bounds on c(Q), fine-grained complexity provides the complementary conditional lower bounds. Although the grand goal of determining a conditionally optimal c(Q) for every join query currently remains out of reach, we discuss significant recent progress. This includes a full classification of all graph queries with an exponent c(Q)<2 [3], alongside a complete resolution to the corresponding question for direct access [2]. Finally, extending this framework to conjunctive queries, we explore recent advances in applying output-sensitive fast matrix multiplication [1], and establishing the equivalence of listing and enumeration.Keywords
This publication has 3 references indexed in Scilit: