← 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?
- A.It is infinite
- B.A DFA would need unbounded memory to count the a's; pumping a^p b^p adds a's without b's
- C.It contains ε
- 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 →