期刊文献+

基于最小序句子的上下文无关语言句子枚举 被引量:4

Enumerating Sentences of Context Free Language Based on First One in Order
下载PDF
导出
摘要 形式规约获取系统SAQ和一些形式化验证系统中常常需要枚举上下文无关语言的句子 ,现有的枚举方法较少且效率较低 以上下文无关语言L(G)的最小序句子和最大序句子为基础 ,从最小序句子开始按照一定的顺序扫描字符串 ,直至扫描到最大序句子为止 ,对被扫描的字符串进行判断取舍 在扫描的过程中采用削减和前瞻策略 ,很大程度上减少了被扫描的字符串个数 ,可以取得较好的时空性能 实验数据表明 。 Enumerating sentences for CFL is often needed in SAQ(specification acquisition system) and some formal proof systems. The current methods are not very efficient and enough. Some of them are limited to deal with specific CFL like regular CFL. First and last sentences of the same length in order can be found by parsing the productions. Then scanning those strings from first sentence to last sentence in order covers all the sentences of the same length. The scanned strings are determined to be outputted or skipped by Earley algorithm. Earley algorithm is modified to judge whether a string is the left subword of some sentences of CFL. Two control strategies, reduction and look-ahead, are adopted in the scanning process. So the number of those scanned strings are decreased greatly. And good time and space efficiencies can be acquired in practice. Compared with other methods, the method shows some advantages by test data.
作者 黄文集
出处 《计算机研究与发展》 EI CSCD 北大核心 2004年第1期9-14,共6页 Journal of Computer Research and Development
关键词 上下文无关语言 句子枚举 最小序句子 context free language(CFL) sentence enumeration first sentence in order
  • 相关文献

参考文献10

  • 1[1]A Solomaa. Formal Languages. London: Academic Press, 1973
  • 2[2]A V Aho, J D Ullman. The Theory of Parsing, Translation and Compiling, Vol 1. Englewood Cliffs, NJ: Prentice-Hall, 1972
  • 3[3]P M Maurer. Generating test data with enhanced context-free grammars. IEEE Software, 1990, 7(4): 50~55
  • 4[4]Dong Yunmei. Collection of SAQ Report, Laboratory of Computer Science, Institute of Software, Chinese Academy of Sciences, Tech Rep: ISCAS-LCS-95-09, 1995
  • 5[5]Dong Yunmei, Chen Haiming, Zhang Ruiling. Collection of SAQ report, Laboratory of Computer Science, Institute of Software, Chinese Academy of Sciences, Tech Rep: ISCAS-LCS-96-1, 1996
  • 6[6]Dong Yunmei. Recursive functions of context free languages(I).Science in China(Series F), 2002, 45(1): 25~39
  • 7[7]Dong Yunmei. Recursive functions of context free languages(II). Science in China(Series F), 2002, 45(2): 82~102
  • 8[8]J Berstel, L Boasson. The set of minimal words of a context-free language is context-free. Journal of Computer and System Sciences, 1997, 55(3): 477~488
  • 9[9]Domosi. Unusual algorithms for lexicographical enumeration. TUCS, Tech Rep: 184, 1998
  • 10[10]E Makinen. On lexicographic enumeration of regular and context-free languages. Acta Cybernet, 1997, 13(1): 55~61

同被引文献16

  • 1张继军,吴哲辉.广义有界上下文无关语言与Petri网语言[J].系统仿真学报,2005,17(z1):26-29. 被引量:6
  • 2张继军,吴哲辉.下推自动机的状态转换图与下推自动机的化简[J].计算机科学,2006,33(3):271-274. 被引量:10
  • 3董韫美.CFL句子计数和分层词典序枚举[J].中国科学(E辑),2006,36(12):1375-1413. 被引量:2
  • 4中国科学院软件研究所计算机科学实验室报告.Technical Report ISCAS-LCS-05-05(SAQ Report no.37:上下文无关语言的句子计数和自然枚举.September 2005).
  • 5中国科学院软件研究所计算机科学实验室报告.Technical Report ISCAS-LCS-98-14(SAQ Reportno.22):定义在上下文无关语言上的递归函数(Ⅰ),December 1998.
  • 6Hopcroft J E, Motwani R, Ullman J D.自动机理论、语言和计算导论.2nd ed.北京:清华大学出版社,2002.169-305.
  • 7Makinen E. On lexicographic enumeration of regular and context-free languages. Aeta Cybemetica, 1997, 13:55 - 61.
  • 8Domosi P. Unusual algorithms for lexicographical enumeration. Acta Cybernetica, 2000, 14(3): 461-468.
  • 9Earley J. An efficient context-free parsing algorithm. Comm. ACM, 1970, 13(2): 94 - 102.
  • 10Hopcroft J E,Motwani R,Ullman J D.自动机理论、语言和计算导论[M].2版.北京:清华大学出版社,2003:169.305.

引证文献4

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部