Motzkin trees are also called unary-binary trees. This paper proposes a linear algorithm for uniform random generation of Motzkin trees. The algorithm uses the same paradigm as this of R{\'e}my's linear algorithm for random generation of binary trees and is based on a preliminary computation.
翻译:莫兹金树也被称为非二元树。 本文为统一的随机生成莫兹金树提出了一个线性算法。 算法对随机生成二元树使用与R~'e}my的线性算法相同的范式,并以初步计算为基础。