GATE / CS ARCHIVE

GATE CSE 2014 SET 1 / QUESTION 36

GATE CSE 2014 Set 1 Q36

Theory of Computation · Finite Automata · Full GATE CSE 2014 Set 1 paper

GATE 2014 Set 1, Q36 2 marks · MCQ
Report issue

Finite Automata

Question 36, GATE 2014: A two-state DFA over {0,1} starts in nonaccepting state u and has accepting state v. Transitions are u--0→u, u--1→v, v--0→u, v--1→v. Which expressions describe its language? I: 0*1(1+00*1)*. II: 0*1*1+11*0*1. III: (0+1)*1. Here + is union. A: I,II only. B: I,III only. C: II,III only. D: all three.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

1. Method and setup. Read the invariant of the DFA: after any nonempty input, v means the latest symbol was 1, and u means it was 0. The empty word is rejected. Test the expressions against this exact language, not just a few accepted examples; one accepted word missing from II disproves equivalence.

2. Work through the result and its assumptions. The two-state DFA accepts precisely strings ending 1. Expression III states this directly. In I, an initial 0*1 is followed by repetitions of either 1 or a nonempty block of zeros followed by 1, so it describes exactly the same strings. II omits 0101, which the DFA accepts. Thus I and III, B.

Original paper, page 16 · Answer key