GATE / CS ARCHIVE

GATE CSE 2021 SET 2 / QUESTION 9

GATE CSE 2021 Set 2 Q9

Theory of Computation · Finite Automata · Full GATE CSE 2021 Set 2 paper

GATE 2021 Set 2, Q9 1 mark · MCQ
Report issue

Finite Automata

Question 9, GATE 2021: A regular language L⊆{0,1}* has a minimal DFA with k states. Which language must also have a k-state minimal DFA? A L−{01}; B L∪{01}; C {0,1}*−L; D L·L.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Complement a complete minimal DFA by exchanging accepting and nonaccepting states. Reachability is unchanged, and every distinguishing suffix still distinguishes the same pair with acceptance reversed. Consequently no states merge and the minimal state count remains k. Thus the complement language, C.

For any states p,q distinguished in L by suffix w, exactly one of their w-runs ends accepting. Flipping all final-state flags preserves that exclusive difference, proving minimality rather than merely giving an upper bound of k states. Completeness matters: a missing transition must first be represented by a dead state before taking a DFA complement.

Original paper, page 59 · Answer key