Discrete Mathematics & Theoretical Computer Science, Vol 1 (1997)

Font Size:  Small  Medium  Large
DMTCS vol 1 no 1 (1997), pp. 247-266

Discrete Mathematics & Theoretical Computer Science

DMTCS

Volume 1 n° 1 (1997), pp. 247-266


author:Alois Panholzer and Helmut Prodinger
title:Descendants and ascendants in binary trees
keywords:binary tree, tree traversal, generating function, Zeilberger’s algorithm
abstract:There are three classical algorithms to visit all the nodes of a binary tree - preorder, inorder and postorder traversal. From this one gets a natural labelling of the n internal nodes of a binary tree by the numbers 1, 2, ..., n, indicating the sequence in which the nodes are visited. For given n (size of the tree) and j (a number between 1 and n), we consider the statistics number of ascendants of node j and number of descendants of node j. By appropriate trivariate generating functions, we are able to find explicit formulae for the expectation and the variance in all instances. The heavy computations that are necessary are facilitated by MAPLE and Zeilberger’s algorithm. A similar problem comes fromlabelling the leaves from left to right by 1, 2, ..., n and considering the statistic number of ascendants (=height) of leaf j. For this, Kirschenhofer [1] has computed the average. With our approach, we are also able to get the variance. In the last section, a table with asymptotic equivalents is provided for the reader’s convenience.
reference: Alois Panholzer and Helmut Prodinger (1997), Descendants and ascendants in binary trees, Discrete Mathematics and Theoretical Computer Science 1, pp. 247-266
ps.gz-source:dm010116.ps.gz
ps-source:dm010116.ps ( 205 K )
pdf-source:dm010116.pdf ( 195 K )

The first source gives you the `gzipped' PostScript, the second the plain PostScript and the third the format for the Adobe accrobat reader. Depending on the installation of your web browser, at least one of these should (after some amount of time) pop up a window for you that shows the full article. If this is not the case, you should contact your system administrator to install your browser correctly.
Automatically produced on Tue Jan 19 17:49:02 MET 1999 by gustedt