← Latest papers
💻 computer science

Lexicographic Direct Access with Functional Dependencies

This paper investigates the fine-grained complexity of lexicographic direct access to join query answers under functional dependencies, establishing lower and upper bounds that fully characterize when linear preprocessing time suffices for polylogarithmic access, while demonstrating that simple FD incorporation works for unary dependencies but fails for general cases, necessitating an information-theoretic decomposition approach.

Original authors: Florent Capelli, Nofar Carmeli, Stefan Mengel

Published 2026-07-16
📖 1 min read☕ Coffee break read

Original authors: Florent Capelli, Nofar Carmeli, Stefan Mengel

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Technical Summary: Lexicographic Direct Access with Functional Dependencies

Problem Statement

This paper investigates the computational complexity of lexicographic direct access to the answers of join queries over databases constrained by Functional Dependencies (FDs).

In the direct access setting, the goal is to preprocess a database DD such that the jj-th answer to a query QQ (ordered lexicographically according to a user-defined variable order π\pi) can be retrieved in polylogarithmic time. The challenge lies in determining the optimal preprocessing time required to achieve this, particularly when the input database satisfies a set of FDs Δ\Delta.

Without FDs, the complexity of this problem is well-understood: the optimal preprocessing time is determined by the incompatibility number ι(Q,π)\iota(Q, \pi), which relates to the size of bags in a "disruption-free decomposition" of the query. Specifically, preprocessing time is O(Dι(Q,π))O(|D|^{\iota(Q, \pi)}) and access time is O(logD)O(\log |D|). This paper asks how the presence of FDs alters these bounds.

Methodology

The authors analyze the problem through two distinct algorithmic approaches and corresponding lower-bound techniques, relying on the Zero-Clique Conjecture for hardness results (restricted to self-join-free queries).

1. The Reordered Extension Approach

This approach attempts to reduce the problem with FDs to a problem without FDs.

  • Mechanism: It reorders the query variables to respect the FDs (creating a Δ\Delta-reordering) and extends the query atoms and head to include variables implied by the FDs, creating a new query Q+Q^+ and order π+\pi^+.
  • Analysis: The complexity is then determined by the incompatibility number of this extended query Q+Q^+ without FDs.
  • Findings:
    • For unary FDs (where a single variable implies another), this approach is optimal. The authors prove exact reductions in both directions between the original problem and the extended problem, showing that the complexity is identical to the FD-free case of the extension.
    • For general FDs, this approach is not optimal. The authors provide an acyclic query example where the extension approach suggests a preprocessing time of O(D3)O(|D|^3), while a more sophisticated algorithm achieves O(D2)O(|D|^2).

2. The Information-Theoretic Approach (Polymatroid Bound)

Recognizing the limitations of the extension approach for general FDs, the authors adopt techniques based on information theory, specifically the PANDA algorithm and the polymatroid bound.

  • Mechanism: Instead of extending the query, they construct a disruption-free decomposition tailored to the specific variable order. They materialize the "bags" of this decomposition.
  • Complexity Measure: The runtime is governed by the disruption-free polymatroid bound, denoted PQ,Δ-width(Q,π)PQ,\Delta\text{-width}(Q, \pi). This measure calculates the maximum value of a polymatroid function (guarded by the query and respecting FDs) over any bag in the decomposition.
  • Algorithm: The algorithm uses PANDA to compute relations for the bags of the decomposition. The preprocessing time is O(DPQ,Δ-width(Q,π)polylog(D))O(|D|^{PQ,\Delta\text{-width}(Q, \pi)} \cdot \text{polylog}(|D|)).
  • Reordering: The authors show that applying a Δ\Delta-reordering to the variable order before constructing the decomposition never increases the polymatroid bound and often significantly reduces it.

Lower Bound Techniques

To establish hardness, the authors introduce the FD-aware incompatibility number, defined via the color number CQ,Δ(S)C_{Q,\Delta}(S).

  • They generalize the coloring technique used for query size lower bounds to the direct access setting.
  • They prove that if the FD-aware incompatibility number of a Δ\Delta-reordering is greater than 1, then achieving preprocessing time O(Dιϵ)O(|D|^{\iota - \epsilon}) is impossible under the Zero-Clique Conjecture.
  • They demonstrate that the polymatroid bound (upper bound) and the color number (lower bound) are not always tight; the gap between them can be arbitrarily large, reflecting the current lack of worst-case optimal join algorithms for general FDs.

Key Results

1. Dichotomy for Linear Preprocessing

The paper provides a complete characterization of when lexicographic direct access is possible with linear preprocessing time (O(D)O(|D|)) and logarithmic access time.

  • Theorem 6.1: Such an algorithm exists if and only if, for every bag in the disruption-free decomposition (based on a Δ\Delta-reordering), the bag variables are Δ\Delta-guarded. A set of variables SS is Δ\Delta-guarded if there exists an atom R(Z)R(Z) in the query such that ZSZ \to^* S (transitively implied by the FDs).
  • This result holds for general FDs and relies on the Zero-Clique Conjecture.

2. Unary vs. General FDs

  • Unary FDs: The reordered extension approach is sufficient and optimal. The complexity is exactly determined by the incompatibility number of the extended query.
  • General FDs: The reordered extension approach is insufficient. The information-theoretic approach (using polymatroid bounds) provides strictly better (or equal) upper bounds. However, the upper and lower bounds are generally not tight due to the gap between the polymatroid bound and the color number.

3. Comparison of Approaches

  • The polymatroid-based approach (Section 4) is always at least as efficient as the extension-based approach (Section 3).
  • In the case of unary FDs, both approaches yield the same complexity.
  • For general FDs, the polymatroid approach can yield significantly better preprocessing times (e.g., reducing cubic to quadratic in the authors' running example).

Significance and Claims

The authors position this work as a step toward understanding query answering complexity under constraints. They explicitly state:

  • Limitations: The bounds are generally not tight. The gap between the upper bound (polymatroid) and lower bound (color number) mirrors the open problem of finding worst-case optimal join algorithms for general FDs. Fully resolving the complexity would likely require fundamental advances in information theory.
  • Contribution: Despite the lack of tight bounds, the paper successfully characterizes the specific combinations of queries, variable orders, and FD sets that admit linear preprocessing.
  • Practicality: The results allow for the identification of cases where direct access is feasible with efficient preprocessing, even in the presence of complex constraints. The authors note that their algorithms and lower bounds form a dichotomy for the linear preprocessing case.

The paper concludes by suggesting future directions, such as generalizing these techniques to queries with self-joins, incorporating degree constraints (which PANDA already supports), and applying these methods to other tasks like enumeration and counting.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →