Take
where
This grammar is in Weak Chomsky normal form. In the original grammar, occurs only in and has the sole production . Thus every use of
is replaced in by , while every later production is unchanged. Conversely, the ternary production can always be expanded into those two original steps. Therefore is equivalent to in the sense of an equivalent grammar.
The compressed initial production gives the leftmost derivation
It has steps, whereas part (b) gives for every derivation in Chomsky normal form. The Weak Chomsky normal form ternary rule has compressed exactly one pair of binary productions, so the derivation is strictly shorter as required.

Articles by others on the same topic (0)

There are currently no matching articles.