Skip to content
Official PYQ · 2011

GATE CS 2011 Q45 — Regular Expressions and Finite Automata

Explain with AI

A deterministic finite automaton (DFA\text{DFA}) DD with alphabet Σ={a,b}\Sigma = \{a, b\} is given below.

Which of the following finite state machines is a valid minimal DFA\text{DFA} which accepts the same languages as DD?

Choose one option
View worked solution

Answer: A

To find the minimal DFA, we partition the states of the given DFA DD using the state minimization algorithm.

Let the states of the given DFA DD be:

  • q0q_0 (Start state, non-accepting)
  • q1q_1 (Non-accepting state)
  • q2q_2 (Accepting state)

The transition table for DD is:

Stateaabb
→q0\to q_0q1q_1q2q_2
q1q_1q1q_1q2q_2
∗q2*q_2q1q_1q2q_2

Step 1: Initial Partition (P0P_0)
Divide the states into non-accepting and accepting sets:P0={{q0,q1},{q2}}P_0 = \{ \{q_0, q_1\}, \{q_2\} \}

Step 2: Check equivalence of q0q_0 and q1q_1
For input aa:δ(q0,a)=q1∈{q0,q1}andδ(q1,a)=q1∈{q0,q1}\delta(q_0, a) = q_1 \in \{q_0, q_1\} \quad \text{and} \quad \delta(q_1, a) = q_1 \in \{q_0, q_1\}For input bb:δ(q0,b)=q2∈{q2}andδ(q1,b)=q2∈{q2}\delta(q_0, b) = q_2 \in \{q_2\} \quad \text{and} \quad \delta(q_1, b) = q_2 \in \{q_2\}Since both q0q_0 and q1q_1 transition to the same state groups for all inputs, they are equivalent (q0≡q1q_0 \equiv q_1).

Step 3: Minimal DFA States and Transitions
The minimal DFA has two states:

  • State A={q0,q1}A = \{q_0, q_1\} (Start state, non-accepting)
  • State B={q2}B = \{q_2\} (Accepting state)
The transitions are:
  • From AA: on a→Aa \to A, on b→Bb \to B
  • From BB: on a→Aa \to A, on b→Bb \to B
This matches the DFA shown in Option A.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Regular Expressions and Finite Automata questions