Objectives:
CFGs can be transformed into an equivalent grammar with a simpler format.
The Chomsky Normal Form (CNF) is a CFG with no l-productions,
no unit-productions, and additional restrictions that limit the number of
variables and terminals in productions.
JFLAP will assists in the conversion to CNF and your text explains the
transformation algorithm on pp150-160.
Download and open ex7.1 in the grammar editor. Under the Convert menu
select Transform Grammar. Using the algorithms described in your text, use
the Do Step instructions to convert the grammar to CNF. (Use Proceed
button to move to the next steps as appropriate).
| Briefly describe in your own words how you: a) remove l-productions b) remove unit-productions c) remove useless productions d) convert a grammar to CNF |
| Briefly describe in your own words what restrictions are imposed
on CFGs which are in GNF. |