Finite Automata: GATE CS Previous Year Questions

Finite Automata · Theory of Computation

62 questions · asked in 27 of 27 years (2000–2026)

MCQ 45 · MSQ 5 · NAT 121-mark 34 · 2-mark 28

2000Questions per year2026

Questions 11–15 of 62

Q11GATE 2021 (Session 2)1 markNAT
Consider the following deterministic finite automaton (DFA)
start 0 1 0 1 0 1 0,1 0,1 0,1
The number of strings of length 8 accepted by the above automaton is _________

Q12GATE 2021 (Session 2)2 marksMCQ−0.67 if wrong
Suppose we want to design a synchronous circuit that processes a string of 0's and 1's. Given a string, it produces another string by replacing the first 1 in any subsequence of consecutive 1's by a 0. Consider the following example.

Input sequence:00100011000011100Output sequence:00000001000001100\begin{array}{ll} \text{Input sequence:} & 00100011000011100 \\ \text{Output sequence:} & 00000001000001100 \end{array}

A Mealy Machine is a state machine where both the next state and the output are functions of the present state and the current input.
The above mentioned circuit can be designed as a two-state Mealy machine. The states in the Mealy machine can be represented using Boolean values 0 and 1. We denote the current state, the next state, the next incoming bit, and the output bit of the Mealy machine by the variables s, t, b and y respectively.
Assume the initial state of the Mealy machine is 0.

What are the Boolean expressions corresponding to t and y in terms of s and b?

Q13GATE 20202 marksNAT
Consider the following language.

L={x∈{a,b}∗∣x \in \{a,b\}^*| number of a's in x divisible by 2 but not divisible by 3}

The minimum number of states in DFA that accepts L is _______

Q14GATE 20192 marksNAT
Let Σ\Sigma be the set of all bijections from {1,...,5} to {1,...,5}, where idid denotes the identity function, i.e. id(j)=j,∀jid(j)=j,\forall j. Let ∘\circ denote composition on functions. For a string x=x1x2...xn∈Σn,n≥0x = x_1x_2 ... x_n \in \Sigma ^n, n \geq 0, let π(x)=x1∘x2∘...∘xn\pi(x) = x_1\circ x_2\circ ... \circ x_n. Consider the language L={x∈Σ∗∣π(x)=id}L = \{x \in \Sigma ^* | \pi(x) = id\}. The minimum number of states in any DFA accepting L is _________ .

Q15GATE 20181 markMCQ−0.33 if wrong
Let N be an NFA with n states. Let k be the number of states of a minimal DFA which is equivalent to N. Which one of the following is necessarily true?

Keep practising

Topics in Theory of Computation

All CS topics ›