edited by
5,003 views
3 votes
3 votes

6 Answers

Best answer
4 votes
4 votes

DFA

Note : last 1 followed by even number of 0 does not mean 0 cannot come before 1.

Some example of strings, 01,0100, 101, 10100.

selected by
0 votes
0 votes
0 votes
0 votes
We need minimum 5 states for this .

(The verified answer is wrong , it is not accepting 101 or 10100 )

Related questions

0 votes
0 votes
0 answers
1
zshaikh asked May 10, 2023
223 views
For the following regular expression:a+|(ab)+Over the alphabet:{a,b}Give an epsilon-NFA that recognizes the same language.
3 votes
3 votes
1 answer
2
0 votes
0 votes
1 answer
3
admin asked Apr 28, 2019
963 views
Let $C_{n} = \{x| x \text{ is a binary number that is a multiple of $n$}\}.$ Show that for each $n\geq1,$ the language $C_{n}$ is regular$.$
0 votes
0 votes
3 answers
4
anumita asked Jun 6, 2017
3,676 views
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 express...