12.07.2015 Views

Context-Free Grammars - Chomsky Normal Form - Hampden ...

Context-Free Grammars - Chomsky Normal Form - Hampden ...

Context-Free Grammars - Chomsky Normal Form - Hampden ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CNF Derivations<strong>Context</strong>-<strong>Free</strong><strong>Grammars</strong> -<strong>Chomsky</strong><strong>Normal</strong> <strong>Form</strong>Robb T.KoetherHomeworkReview<strong>Chomsky</strong><strong>Normal</strong> <strong>Form</strong>New start symbolEliminate all ε-rulesEliminate all unitrulesTheoremIf a grammar G is in CNF and a string w in L(G) has lengthn, then w is derived from G in exactly 2n − 1 steps.Eliminate all mixedrulesEliminate all longrulesDerivations inCNFTheMembershipProblem forCFGsAssignment

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!