通过完整方程对二元树和一元-二元树进行高效随机抽样
Efficient random sampling of binary and unary-binary trees via holonomic equations
摘要:
我们提出了一个新的均匀随机抽样器的二叉树与$n$内部节点消耗$2n + Θ(\log(n)^2)$随机位的平均。这使得它是准最优的,并且优于经典的Remy算法。我们还提出了一个采样器的一元二叉树的$n$节点采取$Θ(n)$随机位的平均。这两个算法都是第一个线性时间算法是最佳的常数。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。