On a random search tree: asymptotic enumeration of vertices by distance from leaves

Abstract

A random binary search tree grown from the uniformly random permutation of [n] is studied. We analyze the exact and asymptotic counts of vertices by rank, the distance from the set of leaves. The asymptotic fraction ck of vertices of a fixed rank k 0 is shown to decay exponentially with k. Notoriously hard to compute, the exact fractions ck had been determined for k 3 only. We computed c4 and c5 as well; both are ratios of enormous integers, denominator of c5 being 274 digits long. Prompted by the data, we proved that, in sharp contrast, the largest prime divisor of ck's denominator is 2k+1+1 at most. We conjecture that, in fact, the prime divisors of every denominator for k>1 form a single interval, from 2 to the largest prime not exceeding 2k+1+1.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…