Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
CNFandPDA

CNFandPDA

Ratings: (0)|Views: 175|Likes:
Published by tariqravian

More info:

Categories:Types, School Work
Published by: tariqravian on Jul 06, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

10/08/2012

pdf

text

original

 
Chomsky Normal Form
Chomsky Normal Form (CNF)
: If a CFG hasonly productions of the formnonterminal
string of two nonterminalsor nonterminal
one terminalthen the CFG is said to be in Chomsky NormalForm (CNF).
 
 Note
It is to be noted that any CFG can beconverted to be in CNF, if the null productions and unit productions areremoved. Also if a CFG contains nullable productions as well, then the correspondingnew production are also to be added. Whichleads the following theorem
 
Theorem
All NONNULL words of the CFL can begenerated by the corresponding CFGwhich is in CNF
i.e.
the grammar in CNFwill generate the same language exceptthe null string.Following is an example showing that aCFG in CNF generates all nonnull wordsof corresponding CFL.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->