The Computer Journal Advance Access originally published online on May 3, 2005
The Computer Journal 2005 48(4):488-497; doi:10.1093/comjnl/bxh110
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
Generating T-ary Trees in Linked Representation
Department of Computer and Information Sciences, Temple University, Philadelphia, PA, USA
This paper presents a new algorithm for the generation of all n node t-ary trees in linked representation. It also gives two constant average time implementations of the algorithm. The first directly generates the next tree from its predecessor while the second retains additional information about the predecessor and is faster for t > 4.
Received 11 March 2004. revised 11 March 2005.