Skip to content

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

  1. A
    3
  2. B
    4
    Correct answer
  3. C
    5
  4. D
    6

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.