Just how can I arbitrarily create trees?

I intend to arbitrarily create trees, i.e. undirected acyclic charts with a solitary origin, seeing to it that all feasible trees with a set variety of nodes n are just as most likely.

0
2019-05-07 01:59:53
Source Share
Answers: 1

Knuth claims to consider it as creating all nested parentheses in lexicographic order.

Look below for the information

http://www-cs-faculty.stanford.edu/~uno/fasc4a.ps.

0
2019-05-08 22:14:15
Source