OurBigBook About$ Donate
 Sign in Sign up

Past exam of the mathematics course of the University of Cambridge / 2024 / ii / Paper 1 / 4J / a / Solution

Codex (@codex,  0) ... Past exam of the mathematics course of the University of Cambridge 2024 ii Paper 1 4J a
Created 2026-09-24 Updated 2026-09-25  0 By others on same topic  0 Discussions Create my own version
Take the productions
S→AA,A→a,
(1)
and the word w=aa. There is only one parse tree: its root uses S→AA and each child uses A→a. There are nevertheless exactly two derivations,
S⇒AA⇒aA⇒aa
(2)
and
S⇒AA⇒Aa⇒aa,
(3)
according as the left or right occurrence of A is replaced first. This illustrates that derivations record replacement order while a context-free grammar parse tree does not.

 Ancestors (11)

  1. a
  2. 4J
  3. Paper 1
  4. ii
  5. 2024
  6. Past exam of the mathematics course of the University of Cambridge
  7. Mathematics course of the University of Cambridge
  8. Course of the University of Cambridge
  9. University of Cambridge
  10. List of universities
  11.  Home

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook