Skip to main content

Counting on Nowhere Dense Classes

Steffen van Bergerem ( Humboldt University Berlin )

In this talk, I will present algorithmic metatheorems for query answering, enumeration, counting, and learning on nowhere dense classes of relational structures. The technical core is an algorithm that, given a structure A from such a class and a first-order formula φ(x̄, ȳ), performs an almost-linear-time preprocessing step, after which counting queries can be answered in constant time: given a tuple v̄ of values for the variables x̄, the algorithm outputs the number of tuples w̄ of values for the variables ȳ such that A ⊨ φ(v̄, w̄). In database terms, this is constant-time evaluation of grouped counting queries.

Building on this, I will present metatheorems for clique-guarded first-order logic with counting (cgFOC), a fragment of the logic FOC [Kuske and Schweikardt, LICS 2017], on nowhere dense classes. The results include constant-time query answering and constant-delay enumeration after almost-linear-time preprocessing, as well as probably approximately correct (PAC) learning of cgFOC-definable concepts in almost-linear time. They unify and generalise the FO testing and enumeration results [Schweikardt, Segoufin, and Vigny, JACM 2022], the evaluation results for the fragment FOC₁ of FOC [Grohe and Schweikardt, PODS 2018], and the PAC-learning result for FO [van Bergerem, Grohe, and Ritzert, PODS 2022].

Under the assumption FPT ≠ AW[*], these metatheorems are essentially optimal: they do not extend to subgraph-closed graph classes beyond the nowhere dense ones; slight generalisations of the clique-guarding mechanism are intractable even on coloured trees of height at most 2; and very restricted fragments of cgFOC are already intractable on graphs of shrub-depth at most 2.

The talk is based on joint work with Nicole Schweikardt and on joint work with Johannes Lange and Nicole Schweikardt.