[Paper Review] Enumeration Complexity of Conjunctive Queries with Functional Dependencies
This paper introduces a generalized dichotomy for the enumeration complexity of conjunctive queries (CQs) under functional dependencies (FDs), showing that a CQ admits constant-delay enumeration after linear preprocessing if and only if its FD-extended query is free-connex. The approach extends prior work by encoding dependencies into query structure, enabling tractable enumeration for queries previously deemed hard when FDs are present.
We study the complexity of enumerating the answers of Conjunctive Queries (CQs) in the presence of Functional Dependencies (FDs). Our focus is on the ability to list output tuples with a constant delay in between, following a linear-time preprocessing. A known dichotomy classifies the acyclic self-join-free CQs into those that admit such enumeration, and those that do not. However, this classification no longer holds in the common case where the database exhibits dependencies among attributes. That is, some queries that are classified as hard are in fact tractable if dependencies are accounted for. We establish a generalization of the dichotomy to accommodate FDs; hence, our classification determines which combination of a CQ and a set of FDs admits constant-delay enumeration with a linear-time preprocessing. In addition, we generalize a hardness result for cyclic CQs to accommodate a common type of FDs. Further conclusions of our development include a dichotomy for enumeration with linear delay, and a dichotomy for CQs with disequalities. Finally, we show that all our results apply to the known class of "cardinality dependencies" that generalize FDs (e.g., by stating an upper bound on the number of genres per movies, or friends per person).
Motivation & Objective
- To address the gap in existing dichotomies for CQ enumeration, which assume no dependencies, by incorporating functional dependencies (FDs) into the complexity classification.
- To show that queries previously classified as hard under standard complexity assumptions become tractable when FDs are taken into account.
- To extend the dichotomy for constant-delay enumeration to CQs with disequalities and cardinality dependencies (CDs), generalizing prior results.
- To provide a unified framework for classifying enumeration complexity under FDs and CDs, using the FD-extended query as a central construct.
Proposed method
- Introduce the FD-extended query $Q^+$, where each atom and the head include all variables implied by FDs, to encode dependencies directly into the query structure.
- Prove that solving $Q$ under FDs reduces to solving $Q^+$, so tractability of $Q^+$ implies tractability of $Q$.
- Use the known dichotomy for free-connex acyclic CQs to classify $Q^+$, thereby classifying $Q$ under FDs.
- Generalize the hardness result for cyclic CQs to include unary FDs, showing that such queries cannot be enumerated in linear time under standard assumptions.
- Extend results to CQs with disequalities and cardinality dependencies by reducing them to the base case via transformations and preserving complexity classes.
- Apply transitive reductions and equivalence-preserving transformations to show that all results hold under the same complexity assumptions as the original dichotomy.
Experimental results
Research questions
- RQ1Can the standard dichotomy for constant-delay enumeration of self-join-free acyclic CQs be extended to handle functional dependencies (FDs)?
- RQ2Under what conditions does a CQ with FDs admit constant-delay enumeration after linear preprocessing?
- RQ3Does the presence of FDs change the complexity classification of cyclic CQs, particularly when all FDs are unary?
- RQ4Can the results on FDs be extended to CQs with disequalities and cardinality dependencies (CDs)?
- RQ5Is there a structural property of the FD-extended query $Q^+$ that fully characterizes the tractability of $Q$ under FDs?
Key findings
- A CQ $Q$ admits constant-delay enumeration after linear preprocessing if and only if its FD-extended query $Q^+$ is free-connex.
- The class of FD-free-connex queries properly extends the class of free-connex queries, capturing previously intractable queries that become tractable under FDs.
- For self-join-free, CD-acyclic but not CD-free-connex CQs, enumeration is not in ${\sf DelayC_{lin}}$ under the standard assumption that boolean matrix multiplication cannot be done in quadratic time.
- For self-join-free, CD-cyclic CQs with only unary FDs, enumeration is not even decidable in linear time, assuming the $\text{\sc Tetra}(k)$ problem cannot be solved in linear time.
- All results extend to CQs with disequalities and cardinality dependencies, with the same classification holding under the same assumptions.
- The space complexity of the enumeration algorithm is bounded by the size of the output, but it remains open whether a more space-efficient solution exists.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.