Overview
Cover Tree is a metric trees method for nearest-neighbor search. It works by organizing points in nested metric covers across distance scales.
Cover Tree addresses nearest-neighbor search by organizing points in nested metric covers across distance scales.
Compact metadata for implementation and discovery.
Cover Tree is a metric trees method for nearest-neighbor search. It works by organizing points in nested metric covers across distance scales.
Quick facts
Runtime and memory behavior at a glance.
Best
O(V + E)
Average
O((V + E) log V)
Worst
O(V^2 + E)
Space
O(V + E)
Show organizing points in nested metric covers across distance scales on a small nearest-neighbor search example.
Cover Tree operates in O((V + E) log V) time and O(V + E) space within the Metric Trees family. Often compared with BK-Tree and Balanced KD-Tree Construction.
What each reference supports for this entry.
Original reference for cover-tree invariants, expansion constants, and nearest-neighbor search in metric spaces.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Searching · Specialized
VP-trees and cover trees are alternative metric nearest-neighbor indexes.
Compare with thisData Structures · Core
Cover trees and balanced k-d trees both support nearest-neighbor search, but split space differently.
Compare with thisData Structures · Core
Cover trees and BK-trees both index metric spaces, but use different branching and pruning rules.
Compare with thisCover trees and BK-trees both index metric spaces, but use different branching and pruning rules.
Cover trees and balanced k-d trees both support nearest-neighbor search, but split space differently.
Cover trees and approximate k-d tree search both prune metric queries, but use different index structures.