GATE / CS ARCHIVE

GATE CSE 2013 / QUESTION 33

DFA language and equivalent states

Theory of Computation · Finite Automata · Full GATE CSE 2013 paper

GATE 2013, Q33 2 marks · MCQ
Report issue

Finite Automata

Question 33, GATE 2013: A DFA starts in nonaccepting s; s--1→t and s--0→f. Nonaccepting t loops on 1 and goes to f on 0. Accepting f loops on 0, 1. Which claims are false?1 complement of its language is context-free.2 its language has regex(11*0+0)(0+1)*0*1*.3 this three-state DFA is minimal.4 it accepts every binary string of length≥2. A1, 3; B2, 4; C2, 3; D3, 4.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

The accepting state is reached once a 0 occurs and then loops on both symbols. The language is all binary strings containing at least one 0. Its complement is 1*, hence context-free. The given regular expression describes that same language: its leading component reaches a first 0 and the remaining factors allow arbitrary continuation. The two nonaccepting states have identical future acceptance behavior, so the three-state DFA is not minimal. It does not accept 11. Thus statements 1 and 2 are true and statements 3 and 4 are false. The question asks for the false statements, so the pair 3 and 4 gives option D.

Before the first 0, the machine is in s or t; after the first 0 it stays in accepting f forever. Thus its language is 1*0(0+1)*. The regex’s first factor(11*0+0) is precisely 1*0, and its trailing 0*1* can always be empty, so the expression describes the same language. States s and t accept exactly the same suffixes (those containing a0), hence can be merged. Finally11 is a length 2counterexample to claim 4. Therefore claims 3and4, and only those, are false.

Original paper, page 7 · Answer key