English

Near-Linear Time Computation of Welzl Orders on Graphs with Linear Neighborhood Complexity

Data Structures and Algorithms 2026-02-17 v1

Abstract

Orders with low crossing number, introduced by Welzl, are a fundamental tool in range searching and computational geometry. Recently, they have found important applications in structural graph theory: set systems with linear shatter functions correspond to graph classes with linear neighborhood complexity. For such systems, Welzl's theorem guarantees the existence of orders with only O(log2n)\mathcal{O}(\log^2 n) crossings. A series of works has progressively improved the runtime for computing such orders, from Chazelle and Welzl's original O(U3F)\mathcal{O}(|U|^3 |\mathcal{F}|) bound, through Har-Peled's O(U2F)\mathcal{O}(|U|^2|\mathcal{F}|), to the recent sampling-based methods of Csik\'os and Mustafa. We present a randomized algorithm that computes Welzl orders for set systems with linear primal and dual shatter functions in time O(SlogS)\mathcal{O}(\|S\| \log \|S\|), where S=U+XFX\|S\| = |U| + \sum_{X \in \mathcal{F}} |X| is the size of the canonical input representation. As an application, we compute compact neighborhood covers in graph classes with (near-)linear neighborhood complexity in time O(nlogn)\mathcal{O}(n \log n) and improve the runtime of first-order model checking on monadically stable graph classes from O(n5+ε)\mathcal{O}(n^{5+\varepsilon}) to O(n3+ε)\mathcal{O}(n^{3+\varepsilon}).

Keywords

Cite

@article{arxiv.2602.14625,
  title  = {Near-Linear Time Computation of Welzl Orders on Graphs with Linear Neighborhood Complexity},
  author = {Jan Dreier and Clemens Kuske},
  journal= {arXiv preprint arXiv:2602.14625},
  year   = {2026}
}