A bijection for the evolution of $B$-trees
Fabian Burghart, Stephan Wagner
TL;DR
This work establishes a bijection between histories of inserting keys into $B$-trees of order $2m+1$ and a class of rooted plane trees called $(2m+1)$-historic trees, enabling precise combinatorial accounting of leaves, branchings, and permutations that realize a history. It provides a recursive, algorithmic description for generating all permutations associated with a given history and introduces a digraph-based framework to connect histories to topological labelings of a constructed graph, thereby enabling systematic enumeration. For the case $m=1$, the authors derive explicit generating-function recurrences and asymptotics for the number of histories, and they compute the distributional statistics of leaves (external vertices) under random insertions, including mean, variance, and a central limit theorem; they extend the approach to general $m$ via higher-order differential equations and conjectured asymptotics. The historic-tree approach offers an alternative to urn-based analyses of $B$-trees, provides concrete readouts of permutation counts for histories, and sets the stage for further generalizations, including the behavior when $m$ grows with $n$ and additional statistics of tree evolution.
Abstract
A $B$-tree is a type of search tree where every node (except possibly for the root) contains between $m$ and $2m$ keys for some positive integer $m$, and all leaves have the same distance to the root. We study sequences of $B$-trees that can arise from successively inserting keys, and in particular present a bijection between such sequences (which we call histories) and a special type of increasing trees. We describe the set of permutations for the keys that belong to a given history, and also show how to use this bijection to analyse statistics associated with $B$-trees.
