Counting on Nowhere Dense Classes
Abstract: For every effectively nowhere dense class of relational structures, we present an algorithm that runs an almost-linear-time preprocessing step on a given structure and a first-order formula . After the preprocessing, whenever given a tuple , the algorithm computes the number of tuples that satisfy in constant time. Building on this, we provide an algorithm for constant-time query answering and constant-delay enumeration after almost-linear-time preprocessing for the recently introduced logic clique-guarded first-order logic with counting (cgFOC) on effectively nowhere dense classes. This generalises the testing and enumeration results for first-order logic [Schweikardt, Segoufin, and Vigny, JACM 2022] and the evaluation result for the first-order logic with counting FOC1 [Grohe and Schweikardt, PODS 2018] on nowhere dense classes.
Paper Prompts
Sign up for free to create and run prompts on this paper.