首页> 外文期刊>Algorithmica >A Linear Algorithm for the Random Sampling from Regular Languages
【24h】

A Linear Algorithm for the Random Sampling from Regular Languages

机译:规则语言随机抽样的线性算法

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

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 0(n) and mean time bit-complexity O(n). The previously best algorithm, due to Denise and Zimmermann (Theor. Comp. Sci. 218(2):233-248, 1999), has worst-case space bit-complexity 0(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.
机译:我们提出了用于从常规语言进行随机采样的第一个线性算法。更准确地说,为了以给定的规则语言生成长度为n的均匀随机单词,我们的算法具有最坏情况的空间位复杂度0(n)和平均时间位复杂度O(n)。由于Denise和Zimmermann(Theor。Comp。Sci。218(2):233-248,1999),以前的最佳算法具有最坏情况的空间位复杂度0(n〜2)和平均时间位复杂度O (nlog(n))。丹尼斯等。通过对Nijenhuis和Wilf形式化的通用递归方法(并由Flajolet,Zimmermann和Van Cutsem进一步开发)进行浮点优化来获得算法。我们的算法将浮点优化与新的分而治之方案结合在一起。

著录项

  • 来源
    《Algorithmica》 |2012年第2期|p.130-145|共16页
  • 作者

    Olivier Bernardi; Omer Gimenez;

  • 作者单位

    MIT, Cambridge, 02139 MA, USA;

    Universitat Politecnica de Catalunya, Barcelona, Spain;

  • 收录信息 美国《科学引文索引》(SCI);美国《工程索引》(EI);
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    random sampling; regular languages;

    机译:随机抽样;常规语言;

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号