Skip to main contentSkip to search
Episciences
Open Access Journals
Sign in(new window)
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Sign in(new window)
Articles & Issues
All articlesAll accepted articlesAll volumesLast volumeSectionsSpecial issuesAuthors
About
The journalIndexing
Boards
Publish
For authorsEthical charter
Submit
Discrete Mathematics & Theoretical Computer Science logo
Contact
|
Credits
eISSN 1365-8050
|
RSS
|
Atom
Episciences
Documentation
|
Acknowledgements
|
Publishing policy
Accessibility: non-compliant
|
Legal mentions
|
Privacy statement
|
Terms of use
  1. Home > Articles & Issues >
  2. Articles >
  3. Descendants and asce ...
Article

Descendants and ascendants in binary trees

Alois Panholzer (1), Helmut Prodinger (1)
(1) Institut für Diskrete Mathematik und Geometrie [Wien]
Download article
Open on HAL
Imported on
March 26, 2015
Published on
January 1, 1997
Last modified on
March 31, 2025
Volume 1
vol. 1
DOI
10.46298/dmtcs.246
License
https://about.hal.science/hal-authorisation-v1
Indicators
1040
Views
774
Downloads

Descendants and ascendants in binary trees

Alois Panholzer (1), Helmut Prodinger (1)
(1) Institut für Diskrete Mathematik und Geometrie [Wien]
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.
Keywords
  • [INFO.INFO-DM]Computer Science [cs]/Discrete Mathematics [cs.DM]
  • binary tree
  • tree traversal
  • generating function
  • Zeilberger's algorithm
Cited by

Source: OpenCitations

  • Moments of level numbers of leaves in binary trees

    Journal of Statistical Planning and Inference

    Authors : Alois Panholzer ORCID, Helmut Prodinger ORCID

    Journal reference : Volume 101, 2002, pp. 267-279

    DOI : 10.1016/s0378-3758(01)00187-2
  • Limiting theorems for the nodes in binary search trees

    Science in China Series A Mathematics

    Authors : Jie Liu ORCID, Su Chun ORCID, Chen Yu ORCID

    Journal reference : Volume 51, 2007, pp. 101-114

    DOI : 10.1007/s11425-007-0129-x
  • The Number of Descendants in Simply Generated Random Trees

    Mathematics and Computer Science

    Authors : Bernhard Gittenberger ORCID

    Journal reference : Volume , 2000, pp. 65-73

    DOI : 10.1007/978-3-0348-8405-1_6
  • RETRACTED ARTICLE: Strong limiting behavior in binary search trees

    Journal of Inequalities and Applications

    Authors : Peishu Chen ORCID, Weicai Peng ORCID

    Journal reference : Volume 2013, 2013, pp.

    DOI : 10.1186/1029-242x-2013-60
Preview
Loading PDF preview...