Range tree | |||||
---|---|---|---|---|---|
Type | tree | ||||
Invented | 1979 | ||||
Invented by | Jon Louis Bentley | ||||
Time complexity in big O notation | |||||
|
Algorithm | Average | Worst Case |
---|
In computer science, a range tree is an ordered tree data structure to hold a list of points. It allows all points within a given range to be reported efficiently, and is typically used in two or higher dimensions. Range trees were introduced by Jon Louis Bentley in 1979. Similar data structures were discovered independently by Lueker, Lee and Wong, and Willard. The range tree is an alternative to the k-d tree. Compared to k-d trees, range trees offer faster query times of (in Big O notation) but worse storage of , where n is the number of points stored in the tree, d is the dimension of each point and k is the number of points reported by a given query.
Bernard Chazelle improved this to query time and space complexity .