arXiv · 1902.02499
A fast algorithm for constructing balanced binary search trees
Abstract
We suggest a new non-recursive algorithm for constructing a binary search tree given an array of numbers. The algorithm has $O(N)$ time and $O(1)$ memory complexity if the given array of $N$ numbers is sorted. The resulting tree is of minimal height and can be transformed to a complete binary search tree (retaining minimal height) with $O(\log N)$ time and $O(1)$ memory. The algorithm allows simple and effective parallelization.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Pavel S. Ruzankin. 2019-02-07. A fast algorithm for constructing balanced binary search trees. https://doi.org/10.1007/s42979-022-01285-9
Cite the original work for its findings. Save a collection to share your selection of sources.