Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
124 tokens/sec
GPT-4o
8 tokens/sec
Gemini 2.5 Pro Pro
47 tokens/sec
o3 Pro
5 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Efficient random sampling of binary and unary-binary trees via holonomic equations (1401.1140v2)

Published 6 Jan 2014 in cs.DS and math.CO

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.

Citations (19)

Summary

We haven't generated a summary for this paper yet.