|
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
On
, occupying an extra space in the order of
On
.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
ABRAMOWn'Z, M., AND STEGUN, I.A. Handbook of Mathemattcal Functtons. National Institute of Standards and Technology, Washington, D.C., i964.
|
| |
2
|
BAYER, T., AND MITCHEL HEDEYNIEMI, S. Constant time generation of rooted trees. SIAMJ. Comput. 9 (1980), 706-712.
|
| |
3
|
ER, M.C. Enumerating ordered trees le~icographically. CornputerJ. 28 (1985), 538-542.
|
| |
4
|
|
| |
5
|
|
| |
6
|
FLAJOLET, PH., AND ODLYZKO, A. The average height of binary trees and other simple trees. J. Comput. Syst. Sci. 25 (1982), 171-213.
|
| |
7
|
|
| |
8
|
GOSPER, R. W., JR. Decision procedure for indefinite hypergeometric summation. Proc. NationaI Academy of Sciences USA 75 (1978), 40-42.
|
 |
9
|
|
| |
10
|
|
| |
11
|
|
| |
12
|
NIJENHUIS, A., AND WILF, H.S. CombinatoriaIAlgorithms. Academic Press, New York, 1975.
|
| |
13
|
PALLO, J., AND RACCA, R. A note on generating binary trees in A-order and B-order. Int. J. Comput. Math. 18 (1985), 27-39.
|
 |
14
|
|
| |
15
|
REMY, J.-L. Un proc~d~ it6ratif de d6nombrement d'arbres binaires et son application a leur g6n6ration al~atoire. RAIRO Informatique Thdorique 19 (1985), 179-195.
|
| |
16
|
|
| |
17
|
ROTEM, D. On a correspondence between binary trees and a certain type of permutations. Inf. Proc. Letters 4 (1975), 58-61.
|
 |
18
|
|
| |
19
|
Rusr~Y, F. Generating t-ary trees lexicographically. SIAM J. Comput. 7 (1978), 424-439.
|
| |
20
|
RusI~Y, F., AND HU, T.C. Generating binary trees lexicographically. SIAM J. Comput. 6 (1977), 745-758.
|
| |
21
|
SCOINS, H. Placing trees in lexicographic order. Mach. Intell. 3 (1969), 41-60.
|
| |
22
|
|
 |
23
|
|
| |
24
|
|
| |
25
|
TROJANOWSKI, A. Ranking and listing algorithms for k-ary trees. SlAM J. Comput. 7 (1978), 492-509.
|
| |
26
|
ZAKS, S. Lexicographic generation of ordered trees. Theor. Comput. Sci. 10 (1980), 63-82.
|
| |
27
|
ZAKS, S., AND RICHARDS, D. Generating trees and other combinatorial objects lexicographically. SIAM J. Cornput. 8 (1979), 73-81.
|
 |
28
|
|
REVIEW
"Linda Pagli : Reviewer"
The random generation of binary trees has been widely studied both
as a theoretical problem and for its practical relevance. In fact,
random trees have to be generated in a uniform way whenever the
performance of algorithms on binary trees ha
more...
Peer to Peer - Readers of this Article have also read:
-
Data structures for quadtree approximation and compression
Communications of the ACM
28, 9
Hanan Samet
-
A hierarchical single-key-lock access control using the Chinese remainder theorem
Proceedings of the 1992 ACM/SIGAPP Symposium on Applied computing
Kim S. Lee
, Huizhu Lu
, D. D. Fisher
-
The GemStone object database management system
Communications of the ACM
34, 10
Paul Butterworth
, Allen Otis
, Jacob Stein
-
Putting innovation to work: adoption strategies for multimedia communication systems
Communications of the ACM
34, 12
Ellen Francik
, Susan Ehrlich Rudman
, Donna Cooper
, Stephen Levine
-
An intelligent component database for behavioral synthesis
Proceedings of the 27th ACM/IEEE conference on Design automation
Gwo-Dong Chen
, Daniel D. Gajski
|