Let L ⊆ {0, 1}* be an arbitrary regular language accepted by a minimal DFA with k states. Which one of the following languages must necessarily be accepted by a minimal DFA with k states?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2021 Set 2 · Q9
Time
Select one answerSingle correct
Solution
Official answer: C) {0, 1}* - L
Regular Expressions and Finite AutomataLet be the minimal DFA accepting with states.
The complement of is . The DFA accepting is constructed by simply inverting the set of final states:
Reachability: Since all states in are reachable from and the transition function is unchanged, all states in remain reachable.
Distinguishability: Any two distinct states that are distinguished by a string in (meaning one leads to an accepting state and the other to a non-accepting state) will still be distinguished by in (since the acceptance status of all states is inverted).
Therefore, is also minimal and has precisely states.
For the other operations (difference with a singleton set, union with a singleton set, concatenation), the number of states in the minimal DFA can change depending on .
Hence, the correct option is (C).
Try the question first, then check your work.
Examiner trap
Consider the complementation operation on a DFA and how swapping final and non-final states affects state reachability and distinguishability.
This Regular Expressions and Finite Automata previous year question is Q9 of the GATE CSE 2021 Set 2 paper. Find more GATE CSE PYQs on Regular Expressions and Finite Automata in Theory of Computation, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Regular Expressions and Finite Automata PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Regular Expressions and Finite Automata has 41 GATE CSE PYQs across 24 papers from 2011 to 2026. 14 of them are 1-mark MCQs like this one, and GATE CSE 2021 Set 2 has 3.
How GATE tests Regular Expressions and Finite AutomataIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.