English

Approximate Dynamic Nearest Neighbor Searching in a Polygonal Domain

Computational Geometry 2026-03-13 v1

Abstract

We present efficient data structures for approximate nearest neighbor searching and approximate 2-point shortest path queries in a two-dimensional polygonal domain PP with nn vertices. Our goal is to store a dynamic set of mm point sites SS in PP so that we can efficiently find a site sSs \in S closest to an arbitrary query point qq. We will allow both insertions and deletions in the set of sites SS. However, as even just computing the distance between an arbitrary pair of points q,sPq,s \in P requires a substantial amount of space, we allow for approximating the distances. Given a parameter ε>0\varepsilon > 0, we build an O(nεlogn)O(\frac{n}{\varepsilon}\log n) space data structure that can compute a 1+ε1+\varepsilon-approximation of the distance between qq and ss in O(1ε2logn)O(\frac{1}{\varepsilon^2}\log n) time. Building on this, we then obtain an O(n+mεlogn+mεlogm)O(\frac{n+m}{\varepsilon}\log n + \frac{m}{\varepsilon}\log m) space data structure that allows us to report a site sSs \in S so that the distance between query point qq and ss is at most (1+ε)(1+\varepsilon)-times the distance between qq and its true nearest neighbor in O(1ε2logn+1εlognlogm+1εlog2m)O(\frac{1}{\varepsilon^2}\log n + \frac{1}{\varepsilon}\log n \log m + \frac{1}{\varepsilon}\log^2 m) time. Our data structure supports updates in O(1ε2logn+1εlognlogm+1εlog2m)O(\frac{1}{\varepsilon^2}\log n + \frac{1}{\varepsilon}\log n \log m + \frac{1}{\varepsilon}\log^2 m) amortized time.

Keywords

Cite

@article{arxiv.2603.11775,
  title  = {Approximate Dynamic Nearest Neighbor Searching in a Polygonal Domain},
  author = {Joost van der Laan and Frank Staals and Lorenzo Theunissen},
  journal= {arXiv preprint arXiv:2603.11775},
  year   = {2026}
}

Comments

Full version of our SoCG 2026 paper

R2 v1 2026-07-01T11:16:27.684Z