Question
Let be an arbitrary regular language accepted by a minimal DFA with states. Which one of the following languages must necessarily be accepted by a minimal DFA with states?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2021 answer key
Solution
Recall the DFA state complementation property and the state-minimality theorem for regular languages.
Let be a minimal DFA accepting language , where .
The complement of , given by , is recognized by the DFA , obtained simply by swapping accepting and non-accepting states while keeping the exact same state set and transition function .
Because indistinguishability of states is symmetric (two states and are distinguishable in if and only if they are distinguishable in by the exact same strings), is also minimal. Hence, the minimal DFA for must necessarily have exactly states.
For operations like adding or subtracting a single word , or concatenation , the minimal DFA size can increase or decrease significantly depending on .
C
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2021 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 19 of 65, printed as CS Q.9
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.