GATE Computer ScienceVery hardGATE CSE
Let L = { w ∈ {a, b}* : the third symbol from the right end of w is a }; its minimal complete DFA has 8 states. How many states does the minimal complete DFA for the reversal Lᴿ have?
- A. 8
- B. 5
- C. 4
- D. 6
Correct answer: B. 5
Lᴿ = strings whose third symbol from the left is a: states for 0, 1, 2 symbols read, an accepting sink (third = a) and a dead sink (third = b): 5 states.
More Theory of Computation questions
- Let L = { a^i b^j c^k : i ≠ j or j ≠ k, i, j, k ≥ 0 }. Which statement is correct?
- A DFA over {a, b} has states 0–3, start 0 and accepting state 3. Transitions: 0 –a→ 1, 0 –b→ 0; 1 –a→ 2, 1 –b→ 0; 2 –a→ 2, 2 –b→ 3; 3 –a→…
- A TM (blank B) has rules: δ(q0,a) = (q1,X,R); δ(q0,Y) = (q3,Y,R); δ(q0,B) = (qa,B,S); δ(q1,a) = (q1,a,R); δ(q1,Y) = (q1,Y,R); δ(q1,b) =…
- Which regular expression (over {a, b}, + means union) generates exactly the strings with an even number of b's?
- The pumping lemma for regular languages states that some length p exists such that every w ∈ L with |w| ≥ p can be split w = xyz with |xy|…
- For a context-free grammar G given as input, how many of the following problems are undecidable? (a) Is L(G) = Σ? (b) Is L(G) regular? (c)…