Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
4951936 | Theoretical Computer Science | 2017 | 18 Pages |
Abstract
We present a new uniform random sampler for binary trees with n internal nodes consuming 2n+Î(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 Î(n) random bits on average. Both are the first linear-time algorithms to be optimal up to a constant.
Keywords
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics
Authors
Axel Bacher, Olivier Bodini, Alice Jacquot,