in Theory of Computation
1,700 views
2 votes
2 votes
Suppose L is a regular language of all a's and b's where the number of a's is divisible by m and the number of b's is divisible by n. If M is the minimal DFA accepting language L, then what is the number of states in M ? Is it nm or (n+1)(m+1) ?
in Theory of Computation
1.7k views

1 comment

It is n*m

3
3

2 Answers

5 votes
5 votes

....

2 Comments

In such questions where we the number of states in minimal DFA are asked, do we have to count the trap state also?
0
0
yes we will count the trap state also it is not NFA it DFA for invalid string there will be a trap state if u remove that ur ans will be wrong
0
0
1 vote
1 vote
Finite automata is capable of performing modular counting. By saying mod2 it means it has seen 2 inputs for the same. Similarly for xmodn, means n states required.   So, n*m.

1 comment

X mod n means n states are required.

So, n*m. What is m? Please explain.
0
0

Related questions