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. Enumeration of Binar ...
Article

Enumeration of Binary Trees and Universal Types

Charles Knessl (1), Wojciech Szpankowski (2) (3)
(1) Department of Mathematics, Statistics and Computer Science [Chicago]
(2) Department of Computer Science [Purdue]
(3) Department of Computer Science [West Lafayette]
Download article
Open on HAL
Imported on
March 26, 2015
Published on
January 1, 2005
Last modified on
March 31, 2025
Volume 7
vol. 7
DOI
10.46298/dmtcs.354
License
https://about.hal.science/hal-authorisation-v1
National Institutes of Health
5R01GM068959-04
Combinatorial &Probabilistic Methods for Biol Sequences
Indicators
1030
Views
1097
Downloads

Enumeration of Binary Trees and Universal Types

Charles Knessl (1), Wojciech Szpankowski (2) (3)
(1) Department of Mathematics, Statistics and Computer Science [Chicago]
(2) Department of Computer Science [Purdue]
(3) Department of Computer Science [West Lafayette]
Abstract
Binary unlabeled ordered trees (further called binary trees) were studied at least since Euler, who enumerated them. The number of such trees with n nodes is now known as the Catalan number. Over the years various interesting questions about the statistics of such trees were investigated (e.g., height and path length distributions for a randomly selected tree). Binary trees find an abundance of applications in computer science. However, recently Seroussi posed a new and interesting problem motivated by information theory considerations: how many binary trees of a \emphgiven path length (sum of depths) are there? This question arose in the study of \emphuniversal types of sequences. Two sequences of length p have the same universal type if they generate the same set of phrases in the incremental parsing of the Lempel-Ziv'78 scheme since one proves that such sequences converge to the same empirical distribution. It turns out that the number of distinct types of sequences of length p corresponds to the number of binary (unlabeled and ordered) trees, T_p, of given path length p (and also the number of distinct Lempel-Ziv'78 parsings of length p sequences). We first show that the number of binary trees with given path length p is asymptotically equal to T_p ~ 2^2p/(log_2 p)(1+O(log ^-2/3 p)). Then we establish various limiting distributions for the number of nodes (number of phrases in the Lempel-Ziv'78 scheme) when a tree is selected randomly among all trees of given path length p. Throughout, we use methods of analytic algorithmics such as generating functions and complex asymptotics, as well as methods of applied mathematics such as the WKB method and matched asymptotics.
Keywords
  • [INFO.INFO-DM]Computer Science [cs]/Discrete Mathematics [cs.DM]
  • Binary trees
  • types
  • Lempel-Ziv'78
  • path length
Cited by

Source: OpenCitations

  • On q -functional equations and excursion moments

    Discrete Mathematics

    Authors : Christoph Richard ORCID

    Journal reference : Volume 309, 2008, pp. 207-230

    DOI : 10.1016/j.disc.2007.12.072
  • Ensuring finite moments in Monte Carlo simulations via iterated ex post facto sampling

    Mathematics and Computers in Simulation

    Authors : Richard R. Picard, Thomas E. Booth ORCID

    Journal reference : Volume 79, 2008, pp. 2106-2121

    DOI : 10.1016/j.matcom.2008.11.014
Preview
Loading PDF preview...