Skip to main content
QUICK REVIEW

[Paper Review] Conjunctive Queries with Free Access Patterns Under Updates

Shaleen Deep, Xiao Hu|arXiv (Cornell University)|Sep 22, 2021
Advanced Database Systems and QueriesComputer Science3 citations
TL;DR

This paper presents a unified framework for space-time trade-offs in answering Boolean conjunctive queries using relational algebra and access patterns. By modeling problems like 2-Set Disjointness and path queries as Boolean adorned queries, the authors develop a general algorithm that recovers and improves upon existing trade-offs, falsifies prior conjectures on triangle and path query lower bounds, and proves new conditional space-time lower bounds for star and path queries using join size bounds and tree decompositions.

ABSTRACT

In this paper, we investigate space-time tradeoffs for answering Boolean conjunctive queries. The goal is to create a data structure in an initial preprocessing phase and use it for answering (multiple) queries. Previous work has developed data structures that trade off space usage for answering time and has proved conditional space lower bounds for queries of practical interest such as the path and triangle query. However, most of these results cater to only those queries, lack a comprehensive framework, and are not generalizable. The isolated treatment of these queries also fails to utilize the connections with extensive research on related problems within the database community. The key insight in this work is to exploit the formalism of relational algebra by casting the problems as answering join queries over a relational database. Using the notion of boolean {\em adorned queries} and {\em access patterns}, we propose a unified framework that captures several widely studied algorithmic problems. Our main contribution is three-fold. First, we present an algorithm that recovers existing space-time tradeoffs for several problems. The algorithm is based on an application of the {\em join size bound} to capture the space usage of our data structure. We combine our data structure with {\em query decomposition} techniques to further improve the tradeoffs and show that it is readily extensible to queries with negation. Second, we falsify two proposed conjectures in the existing literature related to the space-time lower bound for path queries and triangle detection for which we show unexpectedly better algorithms. This result opens a new avenue for improving several algorithmic results that have so far been assumed to be (conditionally) optimal. Finally, we prove new conditional space-time lower bounds for star and path queries.

Motivation & Objective

  • To unify diverse data structure problems—such as 2-Set Disjointness, k-Reachability, and triangle detection—under a single formalism based on Boolean conjunctive queries and access patterns.
  • To develop a general algorithm that recovers and improves upon known space-time trade-offs for Boolean CQs using join size bounds and query decomposition.
  • To challenge and falsify long-standing conjectures about conditional space-time lower bounds for path and triangle queries, showing better algorithms exist.
  • To prove new conditional space-time lower bounds for star and path queries using reductions and structural query analysis.

Proposed method

  • Formalize data structure problems as Boolean adorned queries over a relational database, where user-specified access patterns fix certain query variables.
  • Apply join size bounds to control the space usage of the data structure, enabling a general trade-off between space S and query time T.
  • Integrate tree decompositions of the query plan with access patterns to improve space efficiency and handle complex query structures.
  • Use query decomposition techniques to break down complex queries into smaller subqueries, enabling better trade-offs and support for negation.
  • Leverage reductions from known hard problems (e.g., 3-Set Disjointness) to derive conditional lower bounds for path and star queries.
  • Apply techniques from worst-case optimal join algorithms and full adorned view enumeration to construct efficient data structures.

Experimental results

Research questions

  • RQ1Can a single, unified framework be developed to model and solve diverse space-time trade-off problems in Boolean conjunctive queries?
  • RQ2Are the previously conjectured conditional lower bounds for path and triangle queries actually tight, or can better algorithms be constructed?
  • RQ3Can the space-time trade-offs for k-Reachability and 2-Set Disjointness be recovered and improved using a general relational query-based approach?
  • RQ4Can new conditional lower bounds be proven for star and path queries using reductions from known hard problems?
  • RQ5To what extent can the framework be extended to handle negation and dynamic updates in conjunctive queries?

Key findings

  • The proposed framework recovers and improves upon existing space-time trade-offs for 2-Set Disjointness, k-Reachability, and edge triangle detection, achieving better trade-offs than previously known.
  • The authors falsify two long-standing conjectures: a better algorithm exists for path queries than previously believed, and the triangle detection lower bound is not tight.
  • For path queries of length ≥ 5, the framework enables improved trade-offs by leveraging the 4-path query as a building block.
  • A new conditional lower bound is proven for star queries, showing that S·T = Ω(|D|²) is optimal under certain assumptions.
  • The framework also proves that S·T = Ω(|D|²) is optimal for P_bb³ (3-Set Disjointness), which implies optimality for P_bb² (2-Set Disjointness) under the same assumption.
  • The approach extends to Boolean CQs with negation and provides a simpler construction with improved polylogarithmic factors compared to prior work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.