DOAJ Open Access 2024

Holonomic equations and efficient random generation of binary trees

Pierre Lescanne

Abstrak

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.

Topik & Kata Kunci

Penulis (1)

P

Pierre Lescanne

Format Sitasi

Lescanne, P. (2024). Holonomic equations and efficient random generation of binary trees. https://doi.org/10.46298/dmtcs.10952

Akses Cepat

Lihat di Sumber doi.org/10.46298/dmtcs.10952
Informasi Jurnal
Tahun Terbit
2024
Sumber Database
DOAJ
DOI
10.46298/dmtcs.10952
Akses
Open Access ✓