Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2023/ii/paper-3/4i/d/iii/solution

The first grammar generates
because adds two 's and terminates the derivation.
In the second grammar, is a nonproductive nonterminal: every right-hand side of a -production still contains a . Consequently the branch never yields a terminal word. Every terminal derivation from instead uses repeatedly and ends with , so
The grammars are therefore equivalent, although they are not isomorphic.

New to topics? Read the docs here!