Abstract
The problem of generating random, uniformly distributed, binary trees is considered. A closed formula that counts the number of trees having a left subtee with k -1 nodes ( k =1,2,..., n ) is found. By inverting the formula, random trees with n nodes are generated according to the appropriate probability distribution, determining the number of nodes in the left and right subtrees that can be generated recursively. The procedure is shown to run in time O(n) , occupying an extra space in the order of O(√n)

This publication has 21 references indexed in Scilit: