482 views
1 votes
1 votes
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 votes
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

Related questions

401
views
0 answers
0 votes
arya_stark asked Oct 12, 2018
401 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 ... strings x such that val(x) is divisible by either 4 or 5.Ans is 5 or 20?
2.7k
views
1 answers
0 votes
suraj patel asked Jul 10, 2018
2,667 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.
3.3k
views
3 answers
0 votes
kislaya Pant asked May 8, 2018
3,344 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 ... since remainders will be 8 (0,1,2,3,4,5,6,7). But the answer is 4].
1.8k
views
2 answers
2 votes
humblefool asked Nov 2, 2017
1,765 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 ... then what is the number of states in M ? Is it nm or (n+1)(m+1) ?