An efficient algorithm for generating and indexing all shapes of n-noded binary trees is described The algorithm is based on a correspondence between binary trees and the class of stack-sortable permutations. together with a representation of such permutatmns as ballot sequences Justification for the related procedures is given, and their efficiency estabhshed by comparison to other approaches. © 1978, ACM. All rights reserved.
CITATION STYLE
Rotem, D., & Varol, Y. L. (1978). Generation of Binary Trees from Ballot Sequences. Journal of the ACM (JACM), 25(3), 396–404. https://doi.org/10.1145/322077.322082
Mendeley helps you to discover research relevant for your work.