How can I randomly generate trees?
Knuth says to look at it as generating all nested parentheses in lexicographic order.
Look here for the details
http://www-cs-faculty.stanford.edu/~uno/fasc4a.ps.
Knuth says to look at it as generating all nested parentheses in lexicographic order.
Look here for the details
http://www-cs-faculty.stanford.edu/~uno/fasc4a.ps.