English

A True $O(n \log{n}) $ Algorithm for the All-k-Nearest-Neighbors Problem

Computational Geometry 2019-08-06 v2

Abstract

In this paper we examined an algorithm for the All-k-Nearest-Neighbor problem proposed in 1980s, which was claimed to have an O(nlogn)O(n\log{n}) upper bound on the running time. We find the algorithm actually exceeds the so claimed upper bound, and prove that it has an Ω(n2)\Omega(n^2) lower bound on the time complexity. Besides, we propose a new algorithm that truly achieves the O(nlogn)O(n\log{n}) bound. Detailed and rigorous theoretical proofs are provided to show the proposed algorithm runs exactly in O(nlogn)O(n\log{n}) time.

Keywords

Cite

@article{arxiv.1908.00159,
  title  = {A True $O(n \log{n}) $ Algorithm for the All-k-Nearest-Neighbors Problem},
  author = {Hengzhao Ma and Jianzhong Li},
  journal= {arXiv preprint arXiv:1908.00159},
  year   = {2019}
}
R2 v1 2026-06-23T10:36:49.582Z