More than twenty years ago Nievergelt and Wong obtained a number of new bounds on the path length of binary trees in both the weighted and unweighted cases. For the unweighted case, the novelty of their approach was that the bounds were applicable to all trees, not just the extremal ones. To obtain these “adaptive” bounds they introduced what came to be known as the weight balance of a tree, subsequently used as the basis of weight-balanced trees. We introduce the notion of the thickness, Δ(T), of a tree T; the difference in the lengths of the longest and shortest root-to-leaf paths in T. We then prove that an upper bound on the external path length of a binary tree is N(log2 N + ∆ - log2 ∆ - 0.6623), where N is the number of external nodes in the tree. We prove that this bound is tight up to an O(N) term if Δ ≤ √N. Otherwise, we construct binary trees whose external path length is at least as large as N(log2N + φ(N, Δ) Δ − log2Δ − 4), where φ(N, Δ) = 1/(1 + 2 Δ/N).
CITATION STYLE
Klein, R., & Wood, D. (1989). The path length of binary trees. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 367 LNCS, pp. 128–136). Springer Verlag. https://doi.org/10.1007/3-540-51295-0_123
Mendeley helps you to discover research relevant for your work.