期刊论文详细信息
Journal of Computer Science
Removing Useless Productions of a Context Free Grammar through Petri Net | Science Publications
Mansoor Al-A'ali1  Ali A. Khan1 
关键词: Formal methods;    context- free grammar;    useless productions;    petri net;   
DOI  :  10.3844/jcssp.2007.494.498
学科分类:计算机科学(综合)
来源: Science Publications
PDF
【 摘 要 】

Following the proposal for a Petri Net (PN) representation of the Context Free Grammar (CFG)[1], we propose in this paper, an algorithm to eliminate the useless productions of CFG. First the CFG is represented by a PN. Then, based on the reachability, an algorithm is developed to eliminate Useless-productions. The algorithm is analyzed and implemented in Pascal using examples of a CFG. The proposed algorithm is better than the existing techniques in the sense that PN model is easy to understand and requires fewer computations and easily implemented on computers.

【 授权许可】

Unknown   

【 预 览 】
附件列表
Files Size Format View
RO201911300649062ZK.pdf 68KB PDF download
  文献评价指标  
  下载次数:16次 浏览次数:17次