pith. sign in

arxiv: 1401.1140 · v2 · pith:CER5NVLXnew · submitted 2014-01-06 · 💻 cs.DS · math.CO

Efficient random sampling of binary and unary-binary trees via holonomic equations

classification 💻 cs.DS math.CO
keywords randomtreesaveragebinarybitsnodessamplertheta
0
0 comments X
read the original abstract

We present a new uniform random sampler for binary trees with $n$ internal nodes consuming $2n + \Theta(\log(n)^2)$ random bits on average. This makes it quasi-optimal and out-performs the classical Remy algorithm. We also present a sampler for unary-binary trees with $n$ nodes taking $\Theta(n)$ random bits on average. Both are the first linear-time algorithms to be optimal up to a constant.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.