A linear Time Algorithm for the Generation of Trees - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Reports (Research Report) Year : 1996

A linear Time Algorithm for the Generation of Trees

Laurent Alonso
  • Function : Author
  • PersonId : 830118
Jean-Luc Rémy
  • Function : Author
René Schott
  • Function : Author

Abstract

We present a linear algorithm which generates randomly and with uniform probability many kinds of trees: binary trees, ternary trees, arbitrary trees, forests of $p$ $k$-ary trees, $\ldots$. The algorithm is based on the definition of generic trees which can be coded as words. These words, in turn, are generated in linear time.

Domains

Other [cs.OH]
Fichier principal
Vignette du fichier
RR-2934.pdf (311.34 Ko) Télécharger le fichier

Dates and versions

inria-00073765 , version 1 (24-05-2006)

Identifiers

  • HAL Id : inria-00073765 , version 1

Cite

Laurent Alonso, Jean-Luc Rémy, René Schott. A linear Time Algorithm for the Generation of Trees. [Research Report] RR-2934, INRIA. 1996. ⟨inria-00073765⟩
101 View
259 Download

Share

Gmail Facebook X LinkedIn More