© 2002 by British Computer Society
A Comparison of Random Binary Tree Generators
1 Information Technology Center, City of Tampere, Lenkkeilijänkatu 8, Finn-Medi 2, FIN-33520 Tampere, Finland Email: em@cs.uta.fi 2 Department of Computer and Information Sciences, PO Box 607, FIN-33014 University of Tampere, Finland Email: Jarmo.Siltaneva@tt.tampere.fi
This paper empirically compares five linear-time algorithms for generating unbiased random binary trees. More specifically, we compare the relative asymptotic performance of the algorithms in terms of the numbers of various basic operations executed on average per tree node. Based on these numbers a ranking of the algorithms, which depends on the operation weights, can be deduced. A definitive ranking of the algorithms, however, hardly exists.
Received 1 January, 2002. Revised 15 May, 2002.