English

Grandchildren-weight-balanced binary search trees

Data Structures and Algorithms 2025-07-08 v2

Abstract

We revisit weight-balanced trees, also known as trees of bounded balance. This class of binary search trees was invented by Nievergelt and Reingold in 1972. Such trees are obtained by assigning a weight to each node and requesting that the weight of each node should be quite larger than the weights of its children, the precise meaning of ``quite larger'' depending on a real-valued parameter~γ\gamma. Blum and Mehlhorn then showed how to maintain these trees in a recursive (bottom-up) fashion when~2/11γ11/22/11 \leqslant \gamma \leqslant 1-1/\sqrt{2}, their algorithm requiring only an amortised constant number of tree rebalancing operations per update (insertion or deletion). Later, in 1993, Lai and Wood proposed a top-down procedure for updating these trees when~2/11γ1/42/11 \leqslant \gamma \leqslant 1/4. Our contribution is two-fold. First, we strengthen the requirements of Nievergelt and Reingold, by also requesting that each node should have a substantially larger weight than its grand-children, thereby obtaining what we call grand-children balanced trees. Grand-children balanced trees are not harder to maintain than weight-balanced trees, but enjoy a smaller node depth, both in the worst case (with a 6~\% decrease) and on average (with a 1.6~\% decrease). In particular, unlike standard weight-balanced trees, all grand-children balanced trees with nn nodes are of height less than 2log2(n)2 \log_2(n). Second, we adapt the algorithm of Lai and Wood to all weight-balanced trees, i.e., to all parameter values~γ\gamma such that~2/11γ11/22/11 \leqslant \gamma \leqslant 1-1/\sqrt{2}. More precisely, we adapt it to all grand-children balanced trees for which~1/4<γ11/21/4 < \gamma \leqslant 1 - 1/\sqrt{2}. Finally, we show that, except in critical cases, all these algorithms result in making a constant amortised number of tree rebalancing operations per tree update.

Keywords

Cite

@article{arxiv.2410.08825,
  title  = {Grandchildren-weight-balanced binary search trees},
  author = {Vincent Jugé},
  journal= {arXiv preprint arXiv:2410.08825},
  year   = {2025}
}

Comments

Full version of the namesake article published at conference WADS 2025

R2 v1 2026-06-28T19:17:51.150Z