Overview
A range tree is a multi-level search tree that stores points by coordinate so orthogonal range queries can report all points inside an axis-aligned query box.
Supports orthogonal range queries with a layered balanced-tree structure.
Compact metadata for implementation and discovery.
A range tree is a multi-level search tree that stores points by coordinate so orthogonal range queries can report all points inside an axis-aligned query box.
Quick facts
Runtime and memory behavior at a glance.
Best
O(log^d n + k) query after preprocessing
Average
O(log^d n + k) query after preprocessing
Worst
O(log^d n + k) query after preprocessing
Space
O(n log^(d - 1) n)
Show a range tree decomposition and highlight reported points inside an axis-aligned query box.
Range trees trade extra storage and preprocessing for exact orthogonal range reporting; dynamic updates and high-dimensional data may need different structures.
What each reference supports for this entry.
Supports decomposable searching and multidimensional search context used by range-search structures.
Open sourceSurveys data structures for range searching and supports the orthogonal range-query role of range-search structures.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Range trees are a standard data structure used to answer orthogonal range-search queries.
Range trees and k-d trees are alternative multidimensional indexing structures with different storage and range-query tradeoffs.