Dynamic Data Structures for k-Nearest Neighbor Queries

09/24/2021
by   Sarita de Berg, et al.
0

Our aim is to develop dynamic data structures that support k-nearest neighbors (k-NN) queries for a set of n point sites in O(f(n) + k) time, where f(n) is some polylogarithmic function of n. The key component is a general query algorithm that allows us to find the k-NN spread over t substructures simultaneously, thus reducing a O(tk) term in the query time to O(k). Combining this technique with the logarithmic method allows us to turn any static k-NN data structure into a data structure supporting both efficient insertions and queries. For the fully dynamic case, this technique allows us to recover the deterministic, worst-case, O(log^2n/loglog n +k) query time for the Euclidean distance claimed before, while preserving the polylogarithmic update times. We adapt this data structure to also support fully dynamic geodesic k-NN queries among a set of sites in a simple polygon. For this purpose, we design a shallow cutting based, deletion-only k-NN data structure. More generally, we obtain a dynamic k-NN data structure for any type of distance functions for which we can build vertical shallow cuttings. We apply all of our methods in the plane for the Euclidean distance, the geodesic distance, and general, constant-complexity, algebraic distance functions.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/15/2018

Improved Dynamic Geodesic Nearest Neighbor Searching in a Simple Polygon

We present an efficient dynamic data structure that supports geodesic ne...
research
04/30/2022

Chromatic k-Nearest Neighbor Queries

Let P be a set of n colored points. We develop efficient data structures...
research
05/05/2018

On k Nearest Neighbor Queries in the Plane for General Distance Functions

We study k nearest neighbor queries in the plane for general (convex, pa...
research
02/14/2020

Kinetic Geodesic Voronoi Diagrams in a Simple Polygon

We study the geodesic Voronoi diagram of a set S of n linearly moving si...
research
07/10/2017

Dynamic Geodesic Nearest Neighbor Searching in a Simple Polygon

We present an efficient dynamic data structure that supports geodesic ne...
research
08/05/2020

GeoTree: a data structure for constant time geospatial search enabling a real-time mix-adjusted median property price index

A common problem appearing across the field of data science is k-NN (k-n...
research
10/22/2018

Indexing Point Sets for Approximate Bottleneck Distance Queries

The bottleneck distance is a natural measure of the distance between tw...

Please sign up or login with your details

Forgot password? Click here to reset