通过全纯方程高效随机采样二元及一元 - 二元树
数据结构与算法
2018-02-20 v2 组合数学
摘要
我们提出了一种新的均匀随机采样器,用于具有 个内部节点的二元树,平均消耗 个随机比特。这使其成为准最优的,并优于经典的 Remy 算法。我们还提出了一种用于具有 个节点的一元 - 二元树的采样器,平均消耗 个随机比特。两者都是首个在常数因子内达到最优的线性时间算法。
引用
@article{arxiv.1401.1140,
title = {Efficient random sampling of binary and unary-binary trees via holonomic equations},
author = {Axel Bacher and Olivier Bodini and Alice Jacquot},
journal= {arXiv preprint arXiv:1401.1140},
year = {2018}
}