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
Top TS PGECET Computer Science & Information Technology Questions