Papers
Topics
Authors
Recent
Search
2000 character limit reached

Chromatic kk-Nearest Neighbor Queries

Published 30 Apr 2022 in cs.CG | (2205.00277v1)

Abstract: Let PP be a set of nn colored points. We develop efficient data structures that store PP and can answer chromatic kk-nearest neighbor (kk-NN) queries. Such a query consists of a query point qq and a number kk, and asks for the color that appears most frequently among the kk points in PP closest to qq. Answering such queries efficiently is the key to obtain fast kk-NN classifiers. Our main aim is to obtain query times that are independent of kk 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 kk-nearest neighbors of a query point qq, 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 O(n<sup>1</sup>/2log⁡n)O(n<sup>{1</sup> / 2} \log n) for points in R<sup>1\mathbb{R}<sup>1, and with query times varying between O(n<sup>2/3log⁡<sup>2/3</sup></sup>n)O(n<sup>{2/3}\log<sup>{2/3}</sup></sup> n) and O(n<sup>5/6</sup>polylogn)O(n<sup>{5/6}</sup> {\rm polylog} n), depending on the distance measure used, for points in R<sup>2\mathbb{R}<sup>2. Since these query times are still fairly large we also consider approximations. If we are allowed to report a color that appears at least (1−ε)f<sup>∗(1-\varepsilon)f<sup>* times, where f<sup>∗f<sup>* is the frequency of the most frequent color, we obtain a query time of O(log⁡n+log⁡log⁡11−εn)O(\log n + \log\log_{\frac{1}{1-\varepsilon}} n) in R<sup>1\mathbb{R}<sup>1 and expected query times ranging between O~(n<sup>1/2ε<sup>−3/2)\tilde{O}(n<sup>{1/2}\varepsilon<sup>{-3/2}) and O~(n<sup>1/2ε<sup>−5/2)\tilde{O}(n<sup>{1/2}\varepsilon<sup>{-5/2}) in R<sup>2\mathbb{R}<sup>2 using near-linear space (ignoring polylogarithmic factors).

Citations (1)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.