Skip to content

Conjunctive Queries with Negation: Beyond Signed-Acyclicity

Simon Frisk, Paraschos Koutris

cs.DBarXiv:2610.03982

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