∑GateAndNet
PlannerSign Up
ADVANCEDFrequently Tested 4 min read 3 views

TOC 2027 Rank-Decider: Myhill-Nerode Minimal DFA Proofs, Inherent Ambiguity & Reductions

Computing exact minimal DFA state counts via Myhill-Nerode distinguishing extensions, Deterministic vs Nondeterministic CFL traps, inherently ambiguous languages, and RE vs co-RE reductions.

1. High-Yield Language Classification Cheat-Table (GATE 2026–2027 MSQ Goldmine!)

Formal Language LLExact Tightest ClassWhy?
{anbm:n,m≥0}\{a^n b^m : n, m \ge 0\} or {w∈{0,1}∗:#0(w)≡#1(w)(mod3)}\{w \in \{0,1\}^* : \#_0(w) \equiv \#_1(w) \pmod 3\}RegularBounded finite modular memory (33 states)
{wcwR:w∈{a,b}∗}\{w c w^R : w \in \{a,b\}^*\} or {anbn:n≥1}\{a^n b^n : n \ge 1\}DCFL (Deterministic CFL)Center marker c / transition a→ba \to b tells DPDA unambiguously when to pop!
{wwR:w∈{a,b}∗}\{w w^R : w \in \{a,b\}^*\} (Even Palindromes without center marker)CFL \setminus DCFLNPDA must nondeterministically guess midpoint!
{aibjck:i=j or j=k}\{a^i b^j c^k : i = j \text{ or } j = k\}CFL \setminus DCFL (Inherently Ambiguous!)Every CFG for it has two parse trees on anbncna^n b^n c^n!
{anbncn:n≥0}\{a^n b^n c^n : n \ge 0\} or {ww:w∈{a,b}∗}\{w w : w \in \{a,b\}^*\} or {ap:p prime}\{a^{p} : p \text{ prime}\}CSL \setminus CFL (Recursive!)Violates CFL Pumping Lemma, decidable in linear space
Lhalt={⟨M,w⟩:M halts on w}L_{\text{halt}} = \{\langle M, w \rangle : M \text{ halts on } w\}RE \setminus RECTM accepts if halts; complement Lhalt‾\overline{L_{\text{halt}}} is NOT even RE!
Leq={⟨M1,M2⟩:L(M1)=L(M2)}L_{\text{eq}} = \{\langle M_1, M_2 \rangle : L(M_1) = L(M_2)\} or Ltotal={⟨M⟩:L(M)=Σ∗}L_{\text{total}} = \{\langle M \rangle : L(M) = \Sigma^*\}Neither RE nor co-RERequires infinitely many halting checks (Π20\Pi_2^0-complete)!
Key Formulas Summary
Myhill-Nerode Theorem & Complement Equivalence
L is Regular  ⟺  Index(≡L)<∞,∣Qmin⁡(L)∣=Index(≡L)=∣Qmin⁡(L‾)∣L \text{ is Regular} \iff \text{Index}(\equiv_L) < \infty, \qquad |Q_{\min}(L)| = \text{Index}(\equiv_L) = |Q_{\min}(\overline{L})|
Note: Complementing a complete minimal DFA ONLY flips final <-> non-final states — exact same state count!
Mapping Reduction Directionality Rule (A <=_m B)
A≤mB:(B Decidable  ⟹  A Decidable)  ≡  (A Undecidable  ⟹  B Undecidable)A \le_m B: \quad (B \text{ Decidable} \implies A \text{ Decidable}) \;\equiv\; (A \text{ Undecidable} \implies B \text{ Undecidable})
Note: NEVER reduce B -> Halting Problem to prove B undecidable! Always reduce KNOWN Undecidable A -> Target B!
#TOC#Myhill-Nerode#Minimal DFA#DCFL#Inherent Ambiguity#Reductions#GATE CS 2027

Practice Questions on This Chapter (2)

Q1GATE CS 2027 Expected MSQMSQHARD
+2M • 0 Neg

Let L1L_1 be a Context-Free Language (CFL) and L2L_2 be a Regular Language over Σ={a,b}\Sigma = \{a, b\}. Which of the following languages are GUARANTEED to be Context-Free?

☑️ Multiple Select Question — pick one or more options, then click Check Answer.
Q2GATE CS 2026–27 ExpectedMCQMEDIUM
+2M • -0.67

Suppose language AA is known to be Undecidable and we construct a computable many-one reduction A≤mBA \le_m B. What can we conclude with 100%100\% certainty about BB?

⚡ Click an option above to verify instantly
Previous TopicMinimal DFA Construction, Pumping Lemma, CFGs & Pushdown AutomataNext Topic LL(1) & LR(0), SLR(1), LALR(1), CLR(1) Parsing Power & Conflicts