GATE / CS ARCHIVE

GATE CSE 2015 SET 1 / QUESTION 49

GATE CSE 2015 Set 1 Q49

Theory of Computation · Finite Automata · Full GATE CSE 2015 Set 1 paper

GATE 2015 Set 1, Q49 2 marks · NAT
Report issue

Finite Automata

Question 49, GATE 2015: Two complete DFAs over {a,b} each have start nonfinal state 0 and final state 1. M: on a, either state goes to 1; on b, either goes to 0. N: on a, either goes to 0; on b, either goes to 1. Find states in a minimal DFA for L(M)∩L(N).
Tap to enlarge
Answer & solution

Official answer: 1

M records whether the most recent symbol is a; N records whether it is b. Empty input is rejected by both initial states. A nonempty string cannot end in both symbols, so no string belongs to the intersection. Although a mechanical product construction offers up to four states, minimization merges all reachable states into one rejecting sink because every continuation is rejected. A DFA still requires its start state, so the answer is not zero.

Solution: The first DFA accepts exactly strings ending in a, and the second exactly strings ending in b. Their intersection is empty. The minimal complete DFA for the empty language is one nonaccepting state with loops on both symbols, so 1.

Original paper, page 18 · Answer key