GATE CS 2023 | Question 63

Theory of Computation › Regular Grammar · NAT · 2 marks · Answer: 4

  1. Question 63Theory of Computationnat2 marks
    The minimum number of states in a DFA for does not contain three or more consecutive 1's is __________

    Answer: 4

    Solution

    Answer: 4 Track the number of trailing 1's: state (0 trailing 1's / reset), (one trailing 1), (two trailing 1's) — all accepting — and a dead state reached on the third consecutive 1. That is 4 states, and they are pairwise distinguishable, so 4 is minimum.

More GATE PYQ on Regular Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2023 in real GATE exam mode

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

Create free account →