I have these regular expressions:
a) 0(10)*
b) a(b+c+d)
c) b*(aa*b*+ε)
I created these state diagrams for them:
Are they correct?
I have these regular expressions:
a) 0(10)*
b) a(b+c+d)
c) b*(aa*b*+ε)
I created these state diagrams for them:
Are they correct?
If I deciphered your writing correctly, this is what you wrote:
a)
0(10)*
Correct.
But two remarks:
You could simplify to this:
b)
a(b+c+d)
Not correct. There are these issues:
a
is not a valid input, so the second state should not be an accepting state.a
. Once that is corrected, it becomes a state that is indistinguishable from the second sink, and so they could be mergedCorrection:
c)
b*(aa*b*+ε)
Correct!