Conjunctive Queries with Negation: Beyond Signed-Acyclicity
Simon Frisk, Paraschos Koutris
Abstract
We study constant-delay enumeration for conjunctive queries with negation (CQ). It is known that signed-acyclic queries can be enumerated with constant delay after linear preprocessing time, using linked lists with skip links. We use a hypergraph width measure for CQ, the fractional signed hyperorder width (sfhow), which requires a single variable order to simultaneously handle every subset of the negative atoms, which Capelli et al. introduced to characterize the preprocessing time of direct access. sfhow strictly generalizes signed-acyclicity (recovered when sfhow = 1) and fractional hypertree width (recovered on queries without negation). Our main algorithmic result is a variable-elimination algorithm that achieves constant-delay enumeration on input I for any full CQ query with preprocessing time O(|I|sfhow). Furthermore, we show that using multiple variable orders can improve this bound, exhibiting an O(|I|3/2) algorithm for k-cycle queries with at least one negative edge.
Create a lesson
Related papers
Tight Width Minimisation of Self-Join-Free Quantified Conjunctive Queries
Shared title terminology · Hubie Chen, Fabio Mogavero, Sam M. Thompson
Answering Conjunctive Queries over Linear Existential Rules with Transitivity
Shared title terminology · Cristina Feier, Tomasz Gogacz, Filip Murlak
Order-Dependent Complexity of Enumeration and Direct Access for Conjunctive Queries on Dynamic Data
Shared title terminology · Antoine Amarilli, Nofar Carmeli, Clémence Dumoulin
Guanaco: A Global-Uniformity Algorithm for Near-Submodular-Width Conjunctive Query Evaluation
Shared title terminology · Mahmoud Abo Khamis, Hubie Chen
Optimizing Query Decomposition for Reliable Validation
Shared title terminology · Shuo Zhang, Sudeepa Roy, Jun Yang
CapCover Filter: Semantic Approximate Membership Queries over Embeddings
Shared title terminology · Dvir David Biton, Shay Hahiashvili, Nadav Keren et al.