GATE / CS ARCHIVE

GATE CSE 2024 SET 1 / QUESTION 50

Minimize a DFA and test distinguishability

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

GATE 2024 Set 1, Q50 2 marks · MSQ
Report issue

Finite Automata

Question 50, GATE 2024: A DFA has start state 1 and only accepting state 1. For inputs (0,1), its transitions are: state 1→(2,4); state 2→(3,1); state 3→(1,2); state 4→(1,5); state 5→(4,1). Let n0(w),n1(w) count symbols. Which statements are false? A States 2 and 4 are distinguishable. B States 3 and 4 are distinguishable. C States 2 and 5 are distinguishable. D Every w with n0(w)=n1(w) is accepted.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C

Approach: Group states with the same future acceptance behavior, then interpret the resulting quotient machine.
1. Consider classes C0={1}, C1={2,5}, C2={3,4}. Only C0 accepts. From either member of C1, input 0 leads to C2 and input 1 to C0. From either member of C2, 0 leads to C0 and 1 to C1. From C0, 0 leads to C1 and 1 to C2.
2. This is a stable partition: members of each class have the same accepting status and transition to the same classes for each symbol. Induction on suffix length therefore proves that states 2 and 5 are equivalent, as are states 3 and 4. Claims B and C are false.
3. States 2 and 4 are distinguishable: suffix 1 sends 2 to accepting state 1 but sends 4 to nonaccepting state 5. Thus A is true.
4. Label C0,C1,C2 by residues 0,1,2. A 0 adds 1 modulo 3 and a 1 subtracts 1. Starting at residue 0, the machine accepts exactly when n0−n1 is divisible by 3. Equal counts satisfy this condition, so D is true.
Answer: B and C, because the question asks for false statements.

Original paper, page 31 · Answer key