加载中…
We present a new uniform random sampler for binary trees with internal nodes consuming 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 nodes taking random bits on average. Both are the first linear-time algorithms to be optimal up to a constant.

生成讲解博客的中文版本

生成AI智能校验的中文版本