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: |
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)!
Practice Questions on This Chapter (5)
What is the number of states in the minimal DFA over that accepts all binary strings whose 3rd symbol from the right end is 1?
Which of the following languages over is accepted by a Non-Deterministic PDA (NPDA), NOT by any Deterministic PDA (DPDA)?
If a Context-Free Grammar is in Chomsky Normal Form (CNF), how many derivation steps are required to derive a terminal string of length ?
Over , what is the minimum number of states in a DFA that accepts all binary strings whose decimal value (MSB first, empty string ) is divisible by ?
Over , what is the minimum number of states in a complete DFA accepting all strings whose 3rd symbol from the right (end) is a ()?