Abstract
A 1-1 mapping between the set of extended ordered trees with n internal nodes and the set of feasible binary bit-patterns with 2n bits is established. By manipulating the feasible bit-patterns, the set of ordered trees with n nodes can be enumerated lexicographically. The ranking and unranking functions are also described. It has been shown that the bit-pattern representation of ordered trees leads to simple construction and easy understanding of the enumerating, ranking and unranking algorithms.
Cite
CITATION STYLE
Er, M. C. (1985). ENUMERATING ORDERED TREES LEXICOGRAPHICALLY. Computer Journal, 28(5), 538–542. https://doi.org/10.1093/comjnl/28.5.538
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.