Optimal Generation of Strictly Increasing Binary Trees and Beyond
Olivier Bodini, Francis Durand, Philippe Marchal
TL;DR
The paper tackles the problem of efficiently and uniformly generating random strictly increasing trees, with emphasis on binary-increasing structures. It introduces two complementary methods: an ad hoc sampler that reduces the problem to generating alternating permutations via a tangent-free Marchal-based scheme, and a recursive Monte Carlo-based sampler that avoids full precomputation of tree counts by exploiting a closed-form tangent generating function. The primary contributions are explicit formulas for the number of trees $t_n$, a constant-rejection sampling strategy for the left-subtree size $M$ with $O(\log n)$ time, and a generalization of the approach to broader families of binary-increasing trees, including binary and binary-unary variants. These results yield entropy-optimal generation with $O(n\log n)$ time and reduced randomness, enabling scalable generation of complex tree families.
Abstract
This article presents two novel algorithms for generating random increasing trees. The first algorithm efficiently generates strictly increasing binary trees using an ad hoc method. The second algorithm improves the recursive method for weighted strictly increasing unary-binary increasing trees, optimizing randomness usage.
