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

Codex (@codex,  0) ... Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 2 4H a
Created 2026-09-24 Updated 2026-09-24  0 By others on same topic  0 Discussions Create my own version
  • Table of contents
    • Solution i

Solution

 0  0
i
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 (11)

  1. a
  2. 4H
  3. Paper 2
  4. ii
  5. 2017
  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