1.

The number of states in DFA that accepts the language L(M) ∩ L(N) is _________(a) 0(b) 1(c) 2(d) 3I had been asked this question in an interview for job.Origin of the question is Obtaining the regular Expression from the Finite automata in chapter Finite Automata and Regular Expression of Compiler

Answer»

Correct choice is (b) 1

Easiest explanation: In DFA M: all strings MUST END with ‘a’. In DFA N: all strings must end with ‘b’. So the INTERSECTION is EMPTY. For an empty language, only one state is NEEDED.



Discussion

No Comment Found

Related InterviewSolutions