English

On the I/O complexity of the k-nearest neighbor problem

Data Structures and Algorithms 2020-04-02 v2

Abstract

We consider static, external memory indexes for exact and approximate versions of the kk-nearest neighbor (kk-NN) problem, and show new lower bounds under a standard indivisibility assumption: - Polynomial space indexing schemes for high-dimensional kk-NN in Hamming space cannot take advantage of block transfers: Ω(k)\Omega(k) block reads are needed to to answer a query. - For the \ell_\infty metric the lower bound holds even if we allow cc-appoximate nearest neighbors to be returned, for c(1,3)c \in (1, 3). - The restriction to c<3c < 3 is necessary: For every metric there exists an indexing scheme in the indexability model of Hellerstein et al.~using space O(kn)O(kn), where nn is the number of points, that can retrieve kk 3-approximate nearest neighbors using k/B\lceil k/B\rceil I/Os, which is optimal. - For specific metrics, data structures with better approximation factors are possible. For kk-NN in Hamming space and every approximation factor c>1c>1 there exists a polynomial space data structure that returns kk cc-approximate nearest neighbors in k/B\lceil k/B\rceil I/Os. To show these lower bounds we develop two new techniques: First, to handle that approximation algorithms have more freedom in deciding which result set to return we develop a relaxed version of the λ\lambda-set workload technique of Hellerstein et al. This technique allows us to show lower bounds that hold in dnd\geq n dimensions. To extend the lower bounds down to d=O(klog(n/k))d = O(k \log(n/k)) dimensions, we develop a new deterministic dimension reduction technique that may be of independent interest.

Keywords

Cite

@article{arxiv.2002.04870,
  title  = {On the I/O complexity of the k-nearest neighbor problem},
  author = {Mayank Goswami and Riko Jacob and Rasmus Pagh},
  journal= {arXiv preprint arXiv:2002.04870},
  year   = {2020}
}

Comments

Appears in proceedings of PODS 2020

R2 v1 2026-06-23T13:39:19.449Z