← RGPV CS-501-CBGS Theory of Computation December 2020 Solved Paper
Question
State the difference between PDA and FA.
Asked in: CS-501 | December 2020 | 1(a)
Answer
A finite automaton stores information only in its current state, whereas a pushdown automaton also has an unbounded LIFO stack. A DFA has transition function δ: Q×Σ→Q; an NPDA has δ: Q×(Σ∪{ε})×Γ→ finite subsets of Q×Γ*. FA recognize exactly regular languages; NPDA recognize exactly context-free languages. PDA can accept by final state or empty stack (equivalent for NPDA). For example, a PDA recognizes aⁿbⁿ by pushing one marker per a and popping one per b, rejecting mismatches. No FA can recognize this language by the pumping lemma. Every regular language is context-free, since a PDA can ignore its stack. FA are used in lexical analysis, while PDA model nested syntax and parsing.
← RGPV CS-501-CBGS Theory of Computation December 2020 Solved Paper
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion