Question
Official answer and solution
- Official answer
- 1
- From
- Official GATE 2015 answer key
Solution
Find the languages recognized by DFAs M and N, take their intersection, and find the minimum number of states.
-
Analyze DFA :
- Start state , accepting state .
- Any string ending with symbol transitions to , while any string ending with transitions to .
- Hence, .
-
Analyze DFA :
- Start state , accepting state .
- Any string ending with symbol transitions to , while any string ending with transitions to .
- Hence, .
-
Intersection language :
- A string cannot end simultaneously in and in .
- Thus, (the empty language).
-
Minimal DFA for the empty language:
- A DFA over alphabet that accepts requires only a single non-accepting state with self-loops on both and .
- Hence, the minimal DFA contains exactly state.
Final answer
1
Common trap
Constructing the Cartesian product DFA (2 x 2 = 4 states) without minimizing it to 1 trap state.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 1
- Question
- 62 of 65, printed as CS Q.52
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.