Question:

Which language can be accepted by a PDA but not by an FA?

Show Hint

\[ \{a^n b^n\} \] is the classical example of a context-free language that is not regular.
Updated On: Jun 25, 2026
  • \(\{a^*b^*\}\)
  • \((ab)^*\)
  • \(\{a^n b^n \mid n\ge0\}\)
  • \(\{a,b\}^*\)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Concept: Finite Automata (FA) recognize regular languages. Pushdown Automata (PDA) recognize context-free languages. Every regular language can be accepted by a PDA, but some context-free languages require stack memory and cannot be accepted by an FA.

Step 1:
Examine the language.
Consider \[ L=\{a^n b^n \mid n\ge0\}. \] Examples: \[ ab,\quad aabb,\quad aaabbb. \]

Step 2:
Need for memory.
The machine must remember the number of \(a\)'s and compare it with the number of \(b\)'s. Finite automata cannot store an arbitrary count.

Step 3:
Use of stack.
A PDA pushes symbols while reading \(a\)'s and pops them while reading \(b\)'s. Thus a PDA can recognize the language.

Step 4:
Write the answer.
Hence the language accepted by PDA but not FA is \[ \boxed{\{a^n b^n \mid n\ge0\}} \] Therefore option (C) is correct.
Was this answer helpful?
0
0