A Linear Algorithm for the Random Sampling from Regular Languages

A Linear Algorithm for the Random Sampling from Regular Languages

0.00 Avg rating0 Votes
Article ID: iaor2012385
Volume: 62
Issue: 1
Start Page Number: 130
End Page Number: 145
Publication Date: Feb 2012
Journal: Algorithmica
Authors: ,
Keywords: optimization, computational analysis
Abstract:

We present the first linear algorithm for the random sampling from regular languages. More precisely, for generating a uniformly random word of length n in a given regular language, our algorithm has worst-case space bit-complexity O(n) and mean time bit-complexity O(n). The previously best algorithm, due to Denise and Zimmermann (1999), has worst-case space bit-complexity O(n 2) and mean time bit-complexity O(nlog (n)). The Denise et al. algorithm was obtained by performing a floating-point optimization on the general recursive method formalized by Nijenhuis and Wilf (and further developed by Flajolet, Zimmermann and Van Cutsem). Our algorithm combines the floating-point optimization with a new divide-and-conquer scheme.

Reviews

Required fields are marked *. Your email address will not be published.