# A fast algorithm for constructing balanced binary search trees

**Authors:** Pavel S. Ruzankin

arXiv: 1902.02499 · 2022-07-20

## TL;DR

This paper introduces a non-recursive, efficient algorithm for constructing minimal-height binary search trees from sorted arrays, with potential for parallelization and minimal memory use.

## Contribution

The paper presents a novel non-recursive algorithm for building minimal-height binary search trees with linear time complexity and constant memory, enabling efficient parallelization.

## Key findings

- Algorithm operates in O(N) time for sorted arrays
- Constructed trees have minimal height
- Algorithm can be transformed into a complete binary search tree in O(log N) time

## 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.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1902.02499/full.md

## Figures

3 figures with captions in the complete paper: https://tomesphere.com/paper/1902.02499/full.md

## References

9 references — full list in the complete paper: https://tomesphere.com/paper/1902.02499/full.md

---
Source: https://tomesphere.com/paper/1902.02499