ISRO Scientist/Engineer CSE 2020Theory of Computation › Regular and Context-Free Languages
ISRO Scientist/Engineer CSE 2020 PYQ: Minimum number of states required in DFA accepting binary strings not ending in $\text{“101”}$ is
Minimum number of states required in DFA accepting binary strings not ending in $\text{“101”}$ is
- A3
- B4Correct answer
- C5
- D6
Answer
(B) $4$
Approach
Build the minimal DFA for the complementary language (strings ending in "101"), then swap final and non-final states. The complement of a DFA's language is obtained by toggling accepting states, and this preserves minimality, so the state count is unchanged.
Reviewed by ISRO IQ Editorial Team.