Incremental Planar Nearest Neighbor Queries with Optimal Query Time
John Iacono, Yakov Nekrich
TL;DR
The paper delivers the first data-structure family for dynamic 2D nearest neighbor queries with optimal $O(\log n)$ query time and polylogarithmic update time in several regimes. It introduces a novel, geometry-aware variant of fractional cascading built on planar separators, Voronoi diagrams, and a Jump primitive that navigates a multi-level partition of the input while exploiting convex-hull interactions. The main contributions include an insertion-only structure with $O(\log n)$ queries and $O(\log^3 n)$ amortized insertions, plus semi-online, offline fully dynamic, and offline partially persistent extensions that preserve $O(\log n)$ query time under polylogarithmic updates. The techniques hinge on carefully designed sampling and hull-based regions (Hull$_i(j,p_i)$) to avoid paying full $O(\log n)$ searches across all levels, enabling efficient dynamic planar nearest neighbor search with broad applicability to related dynamic geometric problems.
Abstract
In this paper we show that two-dimensional nearest neighbor queries can be answered in optimal $O(\log n)$ time while supporting insertions in $O(\log^{1+\varepsilon}n)$ time. No previous data structure was known that supports $O(\log n)$-time queries and polylog-time insertions. In order to achieve logarithmic queries our data structure uses a new technique related to fractional cascading that leverages the inherent geometry of this problem. Our method can be also used in other semi-dynamic scenarios.
