The Presort Hierarchy for Geometric Problems
Ivor van der Hoog, Eva Rotenberg, Jack Spalding-Jamieson, Lasse Wulf
TL;DR
The paper proposes a Presort Hierarchy that classifies planar geometric problems by their sensitivity to presorting along axes, defining 1- and 2-Presortable versus Presort-Hard. It resolves a long-standing open problem by showing quadtrees (and by reductions Delaunay/Voronoi diagrams and Euclidean MSTs) are 2-Presortable with a randomized algorithm running in $O(n \sqrt{\log n})$ time, leveraging a 2-presorted input and orthogonal range successor data structures. It further places several other problems in the hierarchy (e.g., KD-trees, orthogonal segment intersection, maximum empty circle) as 1- or 2-Presortable or Presort-Hard, and proves Presort-Hardness for onion layers and decremental closest-pair problems, delineating fundamental limits of presorting. Together, these results map the landscape of proximity structures under presorted inputs and offer avenues for faster geometric computation in presorted regimes, while highlighting key derandomisation and dimensional-extension challenges.
Abstract
Many fundamental problems in computational geometry admit no algorithm running in $o(n \log n)$ time for $n$ planar input points, via classical reductions from sorting. Prominent examples include the computation of convex hulls, quadtrees, onion layer decompositions, Euclidean minimum spanning trees, KD-trees, Voronoi diagrams, and decremental closest-pair. A classical result shows that, given $n$ points sorted along a single direction, the convex hull can be constructed in linear time. Subsequent works established that for all of the other above problems, this information does not suffice. In 1989, Aggarwal, Guibas, Saxe, and Shor asked: Under which conditions can a Voronoi diagram be computed in $o(n \log n)$ time? Since then, the question of whether sorting along TWO directions enables a $o(n \log n)$-time algorithm for such problems has remained open and has been repeatedly mentioned in the literature. In this paper, we introduce the Presort Hierarchy: A problem is 1-Presortable if, given a sorting along one axis, it permits a (possibly randomised) $o(n \log n)$-time algorithm. It is 2-Presortable if sortings along both axes suffice. It is Presort-Hard otherwise. Our main result is that quadtrees, and by extension Delaunay triangulations, Voronoi diagrams, and Euclidean minimum spanning trees, are 2-Presortable: we present an algorithm with expected running time $O(n \sqrt{\log n})$. This addresses the longstanding open problem posed by Aggarwal, Guibas, Saxe, and Shor (albeit randomised). We complement this result by showing that some of the other above geometric problems are also 2-Presortable or Presort-Hard.
