The GATE Grind

GATE 2015 CS (CS2) – Question 45

Theory of Computation · Regular Expressions and Finite Automata · 2 marks · Numerical answer

Find the number of states in the minimal DFA for (0+1)*(10).

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 3

Explanation

The language consists of binary strings ending in ten. Track three suffix conditions: no useful partial match, last symbol one, and last two symbols ten (accepting). These states are distinguishable by suitable suffixes and suffice for every transition. The minimal DFA therefore has three states.

More Regular Expressions and Finite Automata questions

All Regular Expressions and Finite Automata questions →