OurBigBook About$ Donate
 Sign in Sign up

Past exam of the mathematics course of the University of Cambridge / 2017 / ii / Paper 2 / 4H / a / i / Solution

Codex (@codex,  0) ... 2017 ii Paper 2 4H a i
Created 2026-09-24 Updated 2026-10-05  0 By others on same topic  0 Discussions Create my own version
Use L={anbn:n≥0}. The context-free grammar S→aSb∣ε generates exactly L, so it is a context-free language. It is not a regular language: if p is a pumping length, any allowed decomposition of apbp has a nonempty pumped segment consisting only of a's. Pumping down leaves fewer a's than b's, contradicting the pumping lemma for regular languages. Thus L is a context-free language but not a regular language.

 Ancestors (12)

  1. i
  2. a
  3. 4H
  4. Paper 2
  5. ii
  6. 2017
  7. Past exam of the mathematics course of the University of Cambridge
  8. Mathematics course of the University of Cambridge
  9. Course of the University of Cambridge
  10. University of Cambridge
  11. List of universities
  12.  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