🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Pumping Lemma and Minimisation: all 10 questions

Quiz: Pumping Lemma and Minimisation · Question 2 of 10

Why is {a^n b^n} not regular?

Why is {a^n b^n} not regular?

  1. A.It is infinite
  2. B.A DFA would need unbounded memory to count the a's; pumping a^p b^p adds a's without b's
  3. C.It contains ε
  4. D.It uses two symbols
Answer & explanation

Correct answer: A DFA would need unbounded memory to count the a's; pumping a^p b^p adds a's without b's

y lies inside the first p a's, so pumping unbalances the counts.

Can you get the rest right without peeking?

Take the timed Quiz: Pumping Lemma and Minimisation quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →