ACM Home Page
Please provide us with feedback. Feedback
The generation of binary trees as a numerical problem
Full text PdfPdf (583 KB)
Source Journal of the ACM (JACM) archive
Volume 39 ,  Issue 2  (April 1992) table of contents
Pages: 317 - 327  
Year of Publication: 1992
ISSN:0004-5411
Author
Renzo Sprugnoli  Univ. degli Studi di Padova, Padua, Italy
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 8,   Downloads (12 Months): 62,   Citation Count: 0
Additional Information:

abstract   references   index terms   review   collaborative colleagues   peer to peer  

Tools and Actions: Review this Article  
Save this Article to a Binder    Display Formats: BibTex  EndNote ACM Ref   
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/128749.128753
What is a DOI?

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: