522 views

1 Answer

Best answer
0 votes
0 votes

There are 4 possibilities, with each possibility being a state

1) Even 'a' and Even 'b'   --> q0

2) Odd 'a' and Even 'b'   --> q1

3) Even 'a' and Odd 'b'   --> q2

4) Odd 'a' and Odd 'b'   --> q3

Since its an OR condition, any state other than q1 is a final state

selected by

Related questions

3 votes
3 votes
1 answer
2
Deepthi_ts asked Apr 17, 2017
4,204 views
Consider regular expression r, where r = (11 + 111)* over Ʃ = {0, 1}. Number of states in minimal NFA and DFA respectively are:ANFA – 3, DFA – 4BNFA – 3, DFA – 3...
0 votes
0 votes
1 answer
4
Srken asked Sep 4, 2022
321 views
How to convert (a+b)* into a minimal Dfa