Linear random generation of Motzkin trees

05/23/2022
by   Pierre Lescanne, et al.
0

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émy's linear algorithm for random generation of binary trees and is based on a preliminary computation.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset