GATE CS 2021 Set 2 | Question 27

Theory of Computation › Regular Grammar · NAT · 1 mark · Answer: 256

  1. Question 27Theory of Computationnat1 mark
    Consider the deterministic finite automaton (DFA) shown in the figure. The number of strings of length 8 accepted by the above automaton is ______.
    GATE CS 2021 Set 2 Question 27 figure

    Answer: 256

    Solution

    From the start state, after reading any two symbols the automaton reaches the accepting state, and the accepting state has self-loops on both and . Hence every string of length is accepted; for length 8 there are strings.

More GATE PYQ on Regular Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2021 Set 2 in real GATE exam mode

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

Create free account →