Consider the following deterministic finite automaton (DFA) defined over the alphabet, . Identify which of the following language(s) is/are accepted by the given DFA.
GATE CSE 2025Theory of Computation › Finite Automata & Regular LanguagesVerified
GATE CSE 2025 PYQ: Consider the following deterministic finite automaton (DFA) defined over the alphabet, Σ = { a , b }…
- AThe set of all strings containing an even number of 's.
- BThe set of all strings containing the pattern .
- CThe set of all strings ending with the pattern .Correct answer
- DThe set of all strings not containing the pattern .
Answer
(C) The set of all strings ending with the pattern b a b b a b bab .
Approach
Read the DFA as a deterministic automaton and compare its accepted language against each description using discriminating strings. The DFA has four states and accepts exactly the strings over {a,b} that end with the substring bab.
The DFA accepts precisely the strings ending in 'bab'. Only option C matches this language; the other options fail on simple counterexamples.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.