TY - JOUR
T1 - The average height of binary trees and other simple trees
AU - Flajolet, Philippe
AU - Odlyzko, Andrew
PY - 1982/10
Y1 - 1982/10
N2 - The average height of a binary tree with n internal nodes is shown to be asymptotic to 2√πn. This represents the average stack height of the simplest recursive tree traversal algorithm. The method used in this estimation is also applicable to the analysis of traversal algorithms of unary-binary trees, unbalanced 2-3 trees, t-ary trees for any t, and other families of trees. It yields the two previously known estimates about average heights of trees, namely for labeled nonplanar trees (a result due to Renyi and Szekeres) and for planar trees (a result of De Bruijn, Knuth, and Rice). The method developed here, which relies on a singularity analysis of generating functions, is new and widely applicable.
AB - The average height of a binary tree with n internal nodes is shown to be asymptotic to 2√πn. This represents the average stack height of the simplest recursive tree traversal algorithm. The method used in this estimation is also applicable to the analysis of traversal algorithms of unary-binary trees, unbalanced 2-3 trees, t-ary trees for any t, and other families of trees. It yields the two previously known estimates about average heights of trees, namely for labeled nonplanar trees (a result due to Renyi and Szekeres) and for planar trees (a result of De Bruijn, Knuth, and Rice). The method developed here, which relies on a singularity analysis of generating functions, is new and widely applicable.
UR - http://www.scopus.com/inward/record.url?scp=0020192603&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=0020192603&partnerID=8YFLogxK
U2 - 10.1016/0022-0000(82)90004-6
DO - 10.1016/0022-0000(82)90004-6
M3 - Article
AN - SCOPUS:0020192603
SN - 0022-0000
VL - 25
SP - 171
EP - 213
JO - Journal of Computer and System Sciences
JF - Journal of Computer and System Sciences
IS - 2
ER -