SIAM Journal on Computing · 1978 · 55 citations · 6 references
ComputingComputer ScienceAlgorithmsCombinatoricsData StructuresEnumerative CombinatoricsSorting AlgorithmsBinary TreesGenerating TreesLattice ModelsLexicographic OrderingsLexicographic RankingLexicographic Ranking FunctionsTree AlgorithmsTree Ranking
This paper extends the results of Ruskey and Hu (1977) from binary trees to t-ary trees. A t-ary tree on N leaves is represented by the sequence of N level numbers of the leaves of that tree. An algorithm is presented for generating these sequences lexicographically as a list. This algorithm is shown to have an average running time of $O(t)$ per sequence generated. $O(N)$ algorithms are developed for determining the position (ranking) of a sequence in the list, and for producing the sequence corresponding to a given place in the list (unranking). Also, a one-to-one correspondence between t-ary trees and walks on a certain lattice is demonstrated; as well as a close relationship between these walks and the lexicographic ranking.
6
J. Gani, J. Riordan · Technometrics · 1969 · 955 citations
Generating Binary Trees Lexicographically
Frank Ruskey, T. C. Hu · SIAM Journal on Computing · 1977 · 137 citations
A numbering system for binary trees
Gary D. Knott · Communications of the ACM · 1977 · 101 citations · Full text