622 views
1 votes
1 votes
Suppose L is a regular language of all a's and b's where the number of a's is divisible by 4 and 8 and number of b's is divisible by 10. If M is the minimal DFA accepts L then M contains __________________ number of states

for a considering 8 states

for b considering 10 states

concatenating both (i.e) join the end state of first with the start state of next

therefore 8 + 9 = 17 states

BUT THE SOLUTION GIVEN multiplies 8 * 10 =80

why?

in some places its added and that too considering that two states are merged to one, 10 is aken as 9

when is it performed like this and when is it multiplied

3 Answers

Best answer
0 votes
0 votes
U can't use concatenation over there...  If a string starts with b?
selected by
0 votes
0 votes
The product Automation is used for taking intersection,union or set difference of two DFA's M1 and M2.
We make the product automation and circle only those states as final state which are final in M1 and M2.

Concatenation DFA of M1 and M2 is different than product dfa.
0 votes
0 votes
a's are div by 4 and 8 so it requires 8 states and b's div by 10 req 10 states...  Cross product gives 80

Related questions

0 votes
0 votes
0 answers
1
RahulVerma3 asked Apr 2
67 views
Is this the correct Turing machine for the language $0^n 1^n0^n$?assuming $ at the end and begining of the input tape
0 votes
0 votes
0 answers
3
baofbuiafbi asked Nov 14, 2023
167 views
Prove the language L={(G,H)|G is a CFG, H is a DFA, and L(G)∩L(H)=∅} is undecidable.