Chromatic $k$-Nearest Neighbor Queries
Abstract
Let be a set of colored points. We develop efficient data structures that store and can answer chromatic -nearest neighbor (-NN) queries. Such a query consists of a query point and a number , and asks for the color that appears most frequently among the points in closest to . Answering such queries efficiently is the key to obtain fast -NN classifiers. Our main aim is to obtain query times that are independent of while using near-linear space. We show that this is possible using a combination of two data structures. The first data structure allow us to compute a region containing exactly the -nearest neighbors of a query point , and the second data structure can then report the most frequent color in such a region. This leads to linear space data structures with query times of for points in , and with query times varying between and , depending on the distance measure used, for points in . Since these query times are still fairly large we also consider approximations. If we are allowed to report a color that appears at least times, where is the frequency of the most frequent color, we obtain a query time of in and expected query times ranging between and in using near-linear space (ignoring polylogarithmic factors).
Cite
@article{arxiv.2205.00277,
title = {Chromatic $k$-Nearest Neighbor Queries},
author = {Thijs van der Horst and Maarten Löffler and Frank Staals},
journal= {arXiv preprint arXiv:2205.00277},
year = {2022}
}
Comments
37 pages, 9 figures