Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Free to read · Published 31 July 2007

Removing Useless Productions of a Context Free Grammar through Petri Net

Mansoor Al-A'ali & Ali A. Khan

Journal of Computer Science, Volume 3, Issue 7, pp. 494–498 · doi.org/10.3844/jcssp.2007.494.498

6,670 accesses8,168 downloads0 citations (Crossref)Metrics
Cite Check for updates

Abstract

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.

Licence and reuse

Free to read. This article carries the publisher’s copyright, as printed on it: © 2007 Science Publications. It is free to read; ask us before reusing it.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Al-A'ali, M. & Khan, A. A. (2007). Removing Useless Productions of a Context Free Grammar through Petri Net. Journal of Computer Science, 3(7), 494–498. https://doi.org/10.3844/jcssp.2007.494.498

Licence
© Science Publications
Issue
Volume 3, Issue 7
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Removing Useless Productions of a Context Free Grammar through Petri NetJournal of Computer Science · Volume 3, Issue 7 · pp. 494–498 · © Science PublicationsDownload