Computer Science, asked by shark134, 11 months ago

Construct a DFA accepting all string w over {0,1} such that the number of 1's in w is 3 mod 4

Answers

Answered by renuagrawal393
17

Answer:

Input: a a b b b

Output: NOT ACCEPTED

// n = 2, m=3 (2 mod 3! = 3 mod 3)

Input: a a b b

Output: ACCEPTED

// n = 2, m = 2 (2 mod 3 = 2 mod 3)

Input: b b b

Output: NOT ACCEPTED

// n = 0, m = 3 ((0 mod 3 = 3 mod 3) <=> (0=0))

hope it helps you.....✌✌

Answered by kanimozhik914
0

Answer:

dfa accepting all string w over {0,1} such that the number of 1's in w is 3 mod 4

Similar questions