Enumeration Complexity of Conjunctive Queries with Functional Dependencies

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 unary FDs, and further conclusions of our development include a dichotomy for enumeration with linear delay. Finally, we show that all our results apply also for CQs with disequalities and in the presence of cardinality dependencies that generalize FDs.

[1]  Arnaud Durand,et al.  On Acyclic Conjunctive Queries and Constant Delay Enumeration , 2007, CSL.

[2]  Yann Strozecki,et al.  Incremental delay enumeration: Space and time , 2019, Discret. Appl. Math..

[3]  François Le Gall,et al.  Powers of tensors and fast matrix multiplication , 2014, ISSAC.

[4]  Etienne Grandjean,et al.  Sorting, linear time and the satisfiability problem , 1996, Annals of Mathematics and Artificial Intelligence.

[5]  Marco Gaboardi,et al.  Sensitivity of Counting Queries , 2016, ICALP.

[6]  Tianyu Wo,et al.  Bounded Conjunctive Queries , 2014, Proc. VLDB Endow..

[7]  Mihalis Yannakakis,et al.  On the Complexity of Database Queries , 1999, J. Comput. Syst. Sci..

[8]  Benny Kimelfeld,et al.  A dichotomy in the complexity of deletion propagation with functional dependencies , 2012, PODS '12.

[9]  Richard Ryan Williams,et al.  Tight Hardness for Shortest Cycles and Paths in Sparse Graphs , 2017, SODA.

[10]  Catriel Beeri,et al.  On the Desirability of Acyclic Database Schemes , 1983, JACM.

[11]  Jörg Flum,et al.  Query evaluation via tree-decompositions , 2001, JACM.

[12]  Johann Brault-Baron,et al.  De la pertinence de l'énumération : complexité en logiques propositionnelle et du premier ordre. (The relevance of the list: propositional logic and complexity of the first order) , 2013 .

[13]  Alexandre Vigny,et al.  Constant Delay Enumeration for FO Queries over Databases with Local Bounded Expansion , 2017, ICDT.

[14]  Heribert Vollmer,et al.  On the Complexity of Hard Enumeration Problems , 2017, LATA.

[15]  Markus Kröll,et al.  Enumeration Complexity of Conjunctive Queries with Functional Dependencies , 2018, ICDT.

[16]  Nicole Schweikardt,et al.  Answering Conjunctive Queries under Updates , 2017, PODS.

[17]  Nicole Schweikardt,et al.  Enumerating answers to first-order queries over databases of low degree , 2014, PODS.

[18]  Amir Abboud,et al.  Popular Conjectures Imply Strong Lower Bounds for Dynamic Problems , 2014, 2014 IEEE 55th Annual Symposium on Foundations of Computer Science.