in Theory of Computation
3,568 views
0 votes
0 votes
let D= {w | w contains an even no. of a's and an odd no. of b's and does not contain the substring ab }

give a DFA with Five states that recognizes D and a regular expression that generates D.
in Theory of Computation
by
3.6k views

3 Answers

1 vote
1 vote
Best answer


Let me know if i am wrong :)

selected by
by

3 Comments

how will it accept the string "aa" ? u forgot the connecting line of that state.
0
0

question says even a's "and" odd b's and no 'ab'  so there is no 'aa' in the langauage

0
0
ok now i got it.. thank you so much :)
0
0
0 votes
0 votes

minimal  dfa will also have 5 states

0 votes
0 votes

please correct me if I am wrong

Related questions