GATE CS 2024 Set 1 | Question 50

Theory of Computation › Regular Grammar · MSQ · 2 marks · Answer: B, C

  1. Question 50Theory of Computationmsq2 marks
    Consider the 5-state DFA shown (state 1 is start and accepting). Which statements is/are FALSE?
    GATE CS 2024 Set 1 Question 50 figure
    • A.
      States 2 and 4 are distinguishable in M
    • B.
      States 3 and 4 are distinguishable in M
      ✓
    • C.
      States 2 and 5 are distinguishable in M
      ✓
    • D.
      Any string w with n0(w)=n1(w) is in L(M)

    Answer: B, C

    Solution

    Answer: (B) and (C) From the diagram, reading 0's cycles and reading 1's cycles . The DFA tracks , with accepting state 1 (residue 0). - States 2 and 4 both are "one step from accept" but on opposite symbols; they turn out equivalent/ distinguishable as the structure dictates: 2 and 4 are distinguishable (A true). - States 3 and 4: both need one more appropriate symbol to reach accept and behave identically under the residue counting -> indistinguishable -> statement (B) "distinguishable" is FALSE. - States 2 and 5 similarly are indistinguishable -> statement (C) is FALSE. - (D): any with gives residue 0 -> state 1 -> accepted, so (D) is TRUE.

More GATE PYQ on Regular Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2024 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →