INTERMEDIATE🔥 High-Yield Exam Topic 4 min read 3 views
Minimal DFA Construction, Pumping Lemma, CFGs & Pushdown Automata
Exact state counts for common minimal DFAs, Myhill-Nerode theorem, Pumping Lemma traps, Chomsky Normal Form derivation steps (2n - 1), and DPDA vs NPDA expressive power.
1. High-Speed Minimal DFA State Count Patterns
Over binary alphabet (or ):
- Strings of length divisible by : states
- Binary numbers divisible by : states if is odd; reduced if ( states when leading zeros allowed)
- Strings containing substring of length : states
- Strings starting with and ending with : 4 states
- Strings whose -th symbol from the right is : states in minimal DFA (only in NFA!)
2. Expressive Power of Automata Across the Chomsky Hierarchy
| Language Class | Grammar Type | Automaton Model | Deterministic == Non-Deterministic? |
|---|---|---|---|
| Regular (Type 3) | Right/Left-Linear | Finite Automaton | YES: |
| DCFL CFL (Type 2) | Context-Free () | Pushdown Automaton | NO! |
| CSL (Type 1) | Context-Sensitive ($ | \alpha | \le |
| RE (Type 0) | Unrestricted | Turing Machine | YES: |
🚨 Exam Trap Alert
Classic DPDA vs NPDA Examples:
- is a DCFL (center marker tells DPDA when to switch from push to pop).
- is a CFL but NOT DCFL (requires NPDA to guess the midpoint!).
- and are NOT Context-Free (CSL)!
📐 Quick Revision Formula Sheet
Chomsky Normal Form (CNF) Parse Steps
💡 Every CNF rule has the form A -> BC or A -> a
Subset Construction Bound
💡 Language: k-th symbol from the end is 1 requires 2^k DFA states vs k+1 NFA states!
#Automata Theory#TOC#Minimal DFA#Pumping Lemma#CFG#PDA#CNF
🎯 Practice PYQs on This Topic (3)
Q1.GATE CS TOCMCQMEDIUM
+2 Marks • -0.67 NegWhat is the number of states in the minimal DFA over that accepts all binary strings whose 3rd symbol from the right end is 1?
Q2.GATE CS TOCMCQMEDIUM
+2 Marks • -0.67 NegWhich of the following languages over is accepted by a Non-Deterministic PDA (NPDA), NOT by any Deterministic PDA (DPDA)?
Q3.UGC NET / GATE TOCMCQEASY
+1 Marks • -0.33 NegIf a Context-Free Grammar is in Chomsky Normal Form (CNF), how many derivation steps are required to derive a terminal string of length ?