Non-redundant random generation from weighted context-free languages - INRIA - Institut National de Recherche en Informatique et en Automatique Accéder directement au contenu
Communication Dans Un Congrès Année : 2008

Non-redundant random generation from weighted context-free languages

Résumé

We address the non-redundant random generation of k words of length n from a context-free language. Additionally, we want to avoid a prede¯ned set of words. We study the limits of a rejection-based approach, whose time complexity is shown to grow exponentially in k in some cases. We propose an alternative recursive algorithm, whose careful implementation allows for a non-redundant generation of k words of size n in O(kn log n) arithmetic operations after the precomputation of O(n) numbers. The overall complexity is therefore dominated by the generation of k words, and the non-redundancy comes at a negligible cost.
Fichier principal
Vignette du fichier
NonRedundantGeneration-GASCOM08-Ponty.pdf (256.84 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-00548877 , version 1 (20-12-2010)

Identifiants

Citer

Yann Ponty. Non-redundant random generation from weighted context-free languages. GASCOM - 7th conference on random generation of combinatorial structures - 2008, 2008, Bibbiena, Italy. 12pp. ⟨hal-00548877⟩
198 Consultations
102 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More