GATE CS 2024, set 1 · Question 50 · Theory of Computation · Multiple select (MSQ) · 2 marks · no negative marks

Consider the 5-state DFA M accepting the language L(M) ⊂ (0+1)^* shown below. For any string w ∈ (0+1)^* let n₀(w) be the number of 0's in w and n₁(w) be the number of 1's in w.
Which of the following statements is/are FALSE ?

DFA with five states labelled 1 to 5 over the alphabet {0, 1}. State 1 is the start state (incoming arrow from nowhere) and the only accepting state (double circle). Transitions: from state 1 on 0 to state 2; from state 1 on 1 to state 4. From state 2 on 1 to state 1; from state 2 on 0 to state 3. From state 3 on 1 to state 2; from state 3 on 0 to state 1 (long curved arrow over the top). From state 4 on 0 to state 1; from state 4 on 1 to state 5. From state 5 on 0 to state 4; from state 5 on 1 to state 1 (long curved arrow along the bottom).
  1. (A) States 2 and 4 are distinguishable in M
  2. (B) States 3 and 4 are distinguishable in M
  3. (C) States 2 and 5 are distinguishable in M
  4. (D) Any string w with n₀(w) = n₁(w) is in L(M)
Answer

Answer (B), (C)

Answer from the official GATE CS 2024 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes