International Journal of Computer Mathematics · 1985 · 55 citations · 14 references
ComputingComputer ScienceAlgorithmsCombinatoricsData StructuresEnumerative CombinatoricsPartial OrdersBinary TreesGenerating TreesInteger OrderingInteger SequencesLexicographic OrderingsNatural Order
We introduce in this paper the P-sequences which are integer sequences characterizing binary trees and generating lexicographically all the binary trees in -order. We compute the rank of a P-sequence by a direct formula and not by an algorithm. Furthermore, we introduce the L-sequences which generate directly and lexicographically all the binary trees on A -order, also called natural order. Ranking and unranking algorithms are provided.
14
The Art of Computer Programming
G.E. Whitesides · Nuclear Science and Engineering · 1970 · 6.1K citations
Lexicographic generation of ordered trees
Shmuel Zaks · Theoretical Computer Science · 1980 · 155 citations
Generating Binary Trees Lexicographically
Frank Ruskey, T. C. Hu · SIAM Journal on Computing · 1977 · 137 citations
Constant Time Generation of Rooted Trees
Terry Beyer, Sandra M. Hedetniemi · SIAM Journal on Computing · 1980 · 109 citations
A numbering system for binary trees
Gary D. Knott · Communications of the ACM · 1977 · 101 citations · Full text