A True O(n logn) Algorithm for the All-k-Nearest-Neighbors Problem

08/01/2019
by   Hengzhao Ma, et al.
0

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) upper bound on the running time. We find the algorithm actually exceeds the so claimed upper bound, and prove that it has an Ω(n^2) lower bound on the time complexity. Besides, we propose a new algorithm that truly achieves the O(nlogn) bound. Detailed and rigorous theoretical proofs are provided to show the proposed algorithm runs exactly in O(nlogn) time.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset