edited by
30,610 views
88 88 votes

Consider the DFAs $M$ and $N$ given above. The number of states in a minimal DFA that accept the language $L(M) \cap L(N)$ is_____________.

15 Answers

Best answer
164 164 votes

$L(M) = (a+b)^* \ a = \{a, aa, ba, aaa, aba, bba, \ldots\}$

$L(N) = (a+b)^* \ b = \{b, ab, bb, aab, abb, bbb, \ldots\}$

So, $L(M) \cap L(N) = \{\}$. So, in the minimal DFA, we just have $1$ start state with all transitions going to it self and no final state.

edited by
36 36 votes

Another Approach to the same problem 

Good Read

15 15 votes
ANSWER-1;
Explanation:-
DFA (M)  accept all the string  end with "a".
DFA(N) accept all the string end with "b"

so there is nothing common between both DFA
means
L(M) ∩L(N)={}
so there is only one state to represent a empty string.which is starting and  final state.
10 10 votes
One easier way to solve this question is to take product of two DFAs given.
Product of M and N will give us DFA with 4 states: (A,C), (A,D), (B,C) and (B,D). In this (A,C) will be the initial state of DFA and (B,D) will be the final state (since we are taking intersection).
Now draw transition of this dfa using the given two DFA. We will find that no transition leads us to (B,D) final state. Which shows that intersection is none. Hence we need only one state to represent it.
5 5 votes
M=> it is the DFA for "ends with a" => (a+b)*a

N=>it is the DFA for " ends with b"=>(a+b)*b

so the intersection would result in null..

so only 1 state is required..
3 3 votes

M1 :  language of all strings ends with a

M:   language of all strings ends with b

all strings over alphabet {a,b} either ends with a or ends with b, 

hence intersection of these languages will result an empty set { }.

so, there will be only 1 state which is not final.

Answer:
Position:
Show:

Related questions

43 43 votes
3 answers 3 answers
17.3k
17.3k views
Misbah Ghaya asked Feb 12, 2015
17,295 views
Consider a system with byte-addressable memory, $32\text{-bit}$ logical addresses, $4\;\text{kilobyte}$ page size and page table entries of $4\;\text{bytes}$ each. The si...
57 57 votes
5 answers 5 answers
19.0k
19.0k views
Misbah Ghaya asked Feb 12, 2015
19,033 views
The output of the following C program is_____________.void f1 ( int a, int b) { int c; c = a; a = b; b = c; } void f2 ( int * a, int * b) { int c; c = * a; *a = *b; *b = ...
46 46 votes
6 answers 6 answers
23.8k
23.8k views
go_editor asked Feb 13, 2015
23,775 views
The number of states in the minimal deterministic finite automaton corresponding to the regular expression $(0+1)^* (10)$ is _____.
52 52 votes
7 answers 7 answers
12.1k
12.1k views
Misbah Ghaya asked Feb 13, 2015
12,118 views
Consider the following $2 \times 2$ matrix $A$ where two elements are unknown and are marked by $a$ and $b$. The eigenvalues of this matrix are $-1$ and $7.$ What are the...