Holonomic equations and efficient random generation of binary trees
Discrete mathematics & theoretical computer science, Tome 25 (2023-2024) no. 2.

Voir la notice de l'article provenant de la source Episciences

Holonomic equations are recursive equations which allow computing efficiently numbers of combinatoric objects. Rémy showed that the holonomic equation associated with binary trees yields an efficient linear random generator of binary trees. I extend this paradigm to Motzkin trees and Schröder trees and show that despite slight differences my algorithm that generates random Schröder trees has linear expected complexity and my algorithm that generates Motzkin trees is in O(n) expected complexity, only if we can implement a specific oracle with a O(1) complexity. For Motzkin trees, I propose a solution which works well for realistic values (up to size ten millions) and yields an efficient algorithm.
DOI : 10.46298/dmtcs.10952
Classification : 05C05
@article{DMTCS_2024_25_2_a20,
     author = {Lescanne, Pierre},
     title = {Holonomic equations and efficient random generation of binary trees},
     journal = {Discrete mathematics & theoretical computer science},
     publisher = {mathdoc},
     volume = {25},
     number = {2},
     year = {2023-2024},
     doi = {10.46298/dmtcs.10952},
     language = {en},
     url = {http://geodesic.mathdoc.fr/articles/10.46298/dmtcs.10952/}
}
TY  - JOUR
AU  - Lescanne, Pierre
TI  - Holonomic equations and efficient random generation of binary trees
JO  - Discrete mathematics & theoretical computer science
PY  - 2023-2024
VL  - 25
IS  - 2
PB  - mathdoc
UR  - http://geodesic.mathdoc.fr/articles/10.46298/dmtcs.10952/
DO  - 10.46298/dmtcs.10952
LA  - en
ID  - DMTCS_2024_25_2_a20
ER  - 
%0 Journal Article
%A Lescanne, Pierre
%T Holonomic equations and efficient random generation of binary trees
%J Discrete mathematics & theoretical computer science
%D 2023-2024
%V 25
%N 2
%I mathdoc
%U http://geodesic.mathdoc.fr/articles/10.46298/dmtcs.10952/
%R 10.46298/dmtcs.10952
%G en
%F DMTCS_2024_25_2_a20
Lescanne, Pierre. Holonomic equations and efficient random generation of binary trees. Discrete mathematics & theoretical computer science, Tome 25 (2023-2024) no. 2. doi : 10.46298/dmtcs.10952. http://geodesic.mathdoc.fr/articles/10.46298/dmtcs.10952/

Cité par Sources :