Lune

ICML2023Top-tier venue

A new near-linear time algorithm for k-nearest neighbor search using a compressed cover tree

Yury Elkin, Vitaliy Kurlin

Abstract

Given a reference set RR of nn points and a query set QQ of mm points in a metric space, this paper studies an important problem of finding kk-nearest neighbors of every point q∈Qq \in Q in the set RR in a near-linear time. In the paper at ICML 2006, Beygelzimer, Kakade, and Langford introduced a cover tree on RR and attempted to prove that this tree can be built in O(nlog⁡n)O(n\log n) time while the nearest neighbor search can be done in O(nlog⁡m)O(n\log m) time with a hidden dimensionality factor. This paper fills a substantial gap in the past proofs of time complexity by defining a simpler compressed cover tree on the reference set RR. The first new algorithm constructs a compressed cover tree in O(nlog⁡n)O(n \log n) time. The second new algorithm finds all kk-nearest neighbors of all points from QQ using a compressed cover tree in time O(m(k+log⁡n)log⁡k)O(m(k+\log n)\log k) with a hidden dimensionality factor depending on point distributions of the given sets R,QR,Q but not on their sizes.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Recognizing Rigid Patterns of Unlabeled Point Clouds by Complete and Continuous Isometry Invariants with no False Negatives and no False Positives cites Resolving the data ambiguity for periodic crystals
  • Worst-case Performance of Popular Approximate Nearest Neighbor Search Implementations: Guarantees and Limitations cites A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Worst-case Performance of Popular Approximate Nearest Neighbor Search Implementations: Guarantees and LimitationsPiotr Indyk, Haike XuNeurIPS 2023 · 55 citations
  2. Accelerating Non-Maximum Suppression: A Graph Theory PerspectiveKing-Siong Si, Lu Sun, Weizhan Zhang, Tieliang Gong et al.NeurIPS 2024 · 14 citations
  3. Towards Metric DBSCAN: Exact, Approximate, and Streaming AlgorithmsGuanlin Mo, Shihong Song, Hu DingSIGMOD 2024 · 7 citations
  4. Dynamic Learnware Filtering for Efficient Learnware Identification and System SlimmingJian-Dong Liu, Zhi-Hao Tan, Zhi-Hua ZhouKDD 2025

Builds on3

  1. A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor SearchMengzhao Wang, Xiaoliang Xu, Qiang Yue, Yuxiang WangVLDB 2021 · 354 citations
  2. Resolving the data ambiguity for periodic crystalsDaniel Widdowson, Vitaliy KurlinNeurIPS 2022 · 62 citations
  3. Recognizing Rigid Patterns of Unlabeled Point Clouds by Complete and Continuous Isometry Invariants with no False Negatives and no False PositivesDaniel Widdowson, Vitaliy KurlinCVPR 2023

Related papers

  1. ARKGraph: All-Range Approximate K-Nearest-Neighbor GraphChaoji Zuo, Dong DengVLDB 2023 · 18 citations
  2. Nearly Optimal Planar k Nearest Neighbors Queries under General Distance FunctionsChih-Hung LiuSODA 2020 · 3 citations
  3. Sublinear time approximation of the cost of a metric k-nearest neighbor graphArtur Czumaj, Christian SohlerSODA 2020 · 3 citations
  4. DeltaPQ: Lossless Product Quantization Code Compression for High Dimensional Similarity SearchRunhui Wang, Dong DengVLDB 2020 · 31 citations
  5. Graph-Based Algorithms for Diverse Similarity SearchPiyush Anand, Piotr Indyk, Ravishankar Krishnaswamy, Sepideh Mahabadi et al.ICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines