Constant time generation of free trees
SIAM Journal on Computing
The advantages of forward thinking in generating rooted and free trees
Proceedings of the tenth annual ACM-SIAM symposium on Discrete algorithms
An Efficient Algorithm for Generating Necklaces with Fixed Density
SIAM Journal on Computing
A Fast Algorithm for Generating Nonisomorphic Chord Diagrams
SIAM Journal on Discrete Mathematics
Efficient generation of plane trees
Information Processing Letters
The On-Line Encyclopedia of Integer Sequences
Calculemus '07 / MKM '07 Proceedings of the 14th symposium on Towards Mechanized Mathematical Assistants: 6th International Conference
Efficient Enumeration of Ordered Trees with k Leaves (Extended Abstract)
WALCOM '09 Proceedings of the 3rd International Workshop on Algorithms and Computation
Efficient enumeration of ordered trees with k leaves
Theoretical Computer Science
Hi-index | 0.00 |
This article has two main results. First, we develop a simple algorithm to list all nonisomorphic rooted plane trees in lexicographic order using a level sequence representation. Then, by selecting a unique centroid to act as the root of a free plane tree, we apply the rooted plane tree algorithm to develop an algorithm to list all nonisomorphic free plane trees. The latter algorithm also uses a level sequence representation and lists all free plane trees with a unique centroid first followed by all free plane trees with two centroids. Both algorithms are proved to run in constant amortized time using straightforward bounding methods.