1,060 views
1 1 vote
Consider the set of all binary strings where the difference between the number of 0’s and number of 1’s is even. The minimum number of states in a DFA that accepts the given set is _____________?

(kindly explain the approach to this problem)

1 Answer

Best answer
2 2 votes
Given the difference between no of 0s and 1s is even which is possible only when both the no of 1s and 0s are even  or both are odd.

by this we will get 4 states but we can apply partition algorithm to get min 2 state dfa.
selected by
Position:
Show:

Related questions

0 0 votes
0 0 answers
793
793 views
arya_stark asked Oct 12, 2018
793 views
For a binary string x = a0a1 · · · an−1 define val(x) to be the value of x interpreted as a binary number, where a0 is the most significant bit. More formally, val(x) is ...
0 0 votes
1 1 answer
4.1k
4.1k views
suraj patel asked Jul 10, 2018
4,142 views
Construct the Minimum FA that accepts all the string of 0's and 1's whereA)Every String start and end with Zero.B)Every string Start and end with Same Symbol.
1 1 vote
3 3 answers
5.1k
5.1k views
kislaya Pant asked May 8, 2018
5,078 views
Ques:- Let ∑= {0, 1} What will be the number of states in minimal DFA, if the Binary number string is congruent to (mod 8)?*[ Can anybody explain this as I am getting 8 ...
2 2 votes
2 2 answers
2.4k
2.4k views
humblefool asked Nov 2, 2017
2,448 views
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 la...