Consider the DFAs M and N given above. The number of states in a minimal DFA that accepts the language L(M) ∩ L(N) is …
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2015 Set 1 · Q52
Time

Your answerNumerical answer
Solution
Official answer: 1
Regular Expressions and Finite AutomataLet us analyze the languages accepted by the two DFAs:
DFA :
Starts at state (non-accepting).
Any input ending with the symbol 'a' leads to state (accepting).
Any subsequent 'b' transitions back to .
Hence, (all strings ending in 'a').
DFA :
Starts at state (non-accepting).
Any input ending with the symbol 'b' leads to state (accepting).
Any subsequent 'a' transitions back to .
Hence, (all strings ending in 'b').
Intersection :
A string cannot simultaneously end in 'a' and end in 'b'.
Therefore, .
A minimal DFA that accepts the empty language over the alphabet consists of a single non-accepting state with self-loops on both 'a' and 'b'.
Thus, the number of states in the minimal DFA is 1.
Try the question first, then check your work.
Examiner trap
Identify the set of strings accepted by each automaton based on their terminal symbols, then find the minimal DFA accepting the intersection of these languages.
This Regular Expressions and Finite Automata previous year question is Q52 of the GATE CSE 2015 Set 1 paper. Find more GATE CSE PYQs on Regular Expressions and Finite Automata in Theory of Computation, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Regular Expressions and Finite Automata PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Regular Expressions and Finite Automata has 41 GATE CSE PYQs across 24 papers from 2011 to 2026. 6 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2015 Set 1.
How GATE tests Regular Expressions and Finite AutomataIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.