arXivPreprintOpen accesscs.DS

Dynamically optimal weight-balanced binary search trees

John Iacono, Akash Pareek

Key points

From the paper's conclusion
  • For any constant $\alpha$, its performance on search sequences of length $\Omega(n \log n)$ is proved to be within a constant factor (which can depend on $\alpha$) of the optimal offline rotation-based binary search tree that maintains the $BB[\alpha]$ balance invariant.

Abstract

In STOC 1972, J{\"{u}}rg Nievergelt and Edward M.~Reingold introduced the $BB[\alpha]$-tree, also known as a \emph{weight-balanced} tree, which for any $\alpha \in (0,\frac{1}{2}]$ is a binary search tree where every node with induced subtree size $s$ has children with induced subtree sizes at least $\alpha(s+1)-1$. A new rotation-based binary search tree, the \emph{PopTree}, is introduced. The PopTree stores $n$ elements and is a $BB[\tfrac1{20}]$-tree after the execution of each search and a $BB[\tfrac1{729}]$-tree at all times, notably while rebalancing. For any constant $\alpha$, its performance on search sequences of length $\Omega(n \log n)$ is proved to be within a constant factor (which can depend on $\alpha$) of the optimal offline rotation-based binary search tree that maintains the $BB[\alpha]$ balance invariant.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers