๐”– Bobbio Scriptorium
โœฆ   LIBER   โœฆ

Efficient generation of plane trees

โœ Scribed by Shin-ichi Nakano


Publisher
Elsevier Science
Year
2002
Tongue
English
Weight
96 KB
Volume
84
Category
Article
ISSN
0020-0190

No coin nor oath required. For personal study only.

โœฆ Synopsis


A rooted plane tree is a rooted tree with a left-to-right ordering specified for the children of each vertex. In this paper we give a simple algorithm to generate all rooted plane trees with at most n vertices. The algorithm uses O(n) space and generates such trees in O(1) time per tree without duplications. The algorithm does not output entire trees but the difference from the previous tree. By modifying the algorithm we can generate without duplications all rooted plane trees having exactly n vertices in O(1) time per tree, all rooted plane trees having at most n vertices with maximum degree at most D in O(1) time per tree, and all rooted plane trees having exactly n vertices including exactly c leaves in O(nc) time per tree. Also we can generate without duplications all (non-rooted) plane trees having exactly n vertices in O(n 3 ) time per tree.


๐Ÿ“œ SIMILAR VOLUMES


Geometry of plane trees
โœ Yu. Yu. Kochetkov ๐Ÿ“‚ Article ๐Ÿ“… 2009 ๐Ÿ› Springer US ๐ŸŒ English โš– 168 KB
Some properties of plane rooted trees
โœ I. V. Konoval'tsev; E. P. Lipatov ๐Ÿ“‚ Article ๐Ÿ“… 1973 ๐Ÿ› Springer US ๐ŸŒ English โš– 340 KB
Efficient Exploration of Faulty Trees
โœ Euripides Markou; Andrzej Pelc ๐Ÿ“‚ Article ๐Ÿ“… 2006 ๐Ÿ› Springer ๐ŸŒ English โš– 286 KB
Plane packings of a tree
โœ V.A. Chebakov ๐Ÿ“‚ Article ๐Ÿ“… 1972 ๐Ÿ› Elsevier Science โš– 741 KB