arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1902.02499cs.DS
收藏

A fast algorithm for constructing balanced binary search trees

Pavel S. Ruzankin

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑