Context-Free Grammars - Chomsky Normal Form - Hampden ...
Context-Free Grammars - Chomsky Normal Form - Hampden ...
Context-Free Grammars - Chomsky Normal Form - Hampden ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Homework Review<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 unitrulesEliminate all mixedrulesEliminate all longrulesDerivations inCNFSolution(d) ab, ba, aab ∈ L(G).(e) a, b, ε /∈ L(G).(f) False, T aba.(g) True, T =⇒ ∗ aba.(h) False, T T.(i) True, T =⇒ ∗ T.TheMembershipProblem forCFGsAssignment