Chapter 3 Revision: Pushdown Automata & CFG
Context-Free Grammars (CFGs) and Pushdown Automata (PDAs) elevate computational power beyond regular languages by introducing a last-in, first-out (LIFO) stack. This memory model is fundamental for compiler parsing and hierarchical syntax trees.
Use these flashcards for active recall. Try to answer the question out loud before clicking the card to flip it.
Flashcards 🎴
What are the components of a Pushdown Automaton (PDA)?
• Q: Finite state set.
• Σ: Input alphabet.
• Γ: Stack alphabet.
• δ: Transition function (Q × (Σ ∪ {ε}) × (Γ ∪ {ε}) → P(Q × (Γ ∪ {ε}))).
• q_0: Start state.
• F: Accept states.
What is Chomsky Normal Form (CNF) for Context-Free Grammars?
What operations are Context-Free Languages (CFLs) CLOSED and NOT CLOSED under?
• NOT CLOSED under: Intersection and Complement. (However, the intersection of a CFL with a Regular language is always a CFL).
What does the Pumping Lemma for Context-Free Languages state?
1. |vxy| ≤ p
2. |vy| ≥ 1 (at least one of v or y is non-empty)
3. u v^i x y^i z ∈ L for all i ≥ 0.
Why does adding a SECOND stack to a Pushdown Automaton make it equivalent to a Turing Machine?