全部 标题 作者
关键词 摘要

OALib Journal期刊
ISSN: 2333-9721
费用:99美元

查看量下载量

相关文章

更多...
软件学报  2000 

Generating Sentences of CFL Based on Partition of CFG Production Set
基于产生式集划分的上下文无关语言句子生成

Keywords: CFG (context-free grammar),production set,production set partition,sentence generation,sentence generating strategy
上下文无关文法
,产生式集合,产生式集合划分,句子生成,句子生成策略.

Full-Text   Cite this paper   Add to My Lib

Abstract:

In this paper, a method is presented to partition productions of CFG (context-f ree grammar). It divides production set into two parts. The derivation with prod uctions in one part will never terminate, while it must terminate rapidly with p roductions in the other part. It is proved that the procedure of generating sent ences of CFL (context-free language) is using productions in one part to make t he sentential form longer and more complex first, and then using productions in the other part to terminate the procedure. A general controllable method is atta ined for generating sentences of CFL with restricted length or depth. The time a nd space complexity for generating one sentence is O(r+n), where n is th e restricted length or depth of sentences and r is the number of productions in given CFG. The generating strategies for different conditions are also discu ssed.

Full-Text

Contact Us

service@oalib.com

QQ:3279437679

WhatsApp +8615387084133