Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/ii/paper-1/4j/a/solution

Take the productions
and the word . There is only one parse tree: its root uses and each child uses . There are nevertheless exactly two derivations,
and
according as the left or right occurrence of is replaced first. This illustrates that derivations record replacement order while a context-free grammar parse tree does not.

New to topics? Read the docs here!