r/programminghomework • u/Beginner__Bot • Mar 24 '18
Construct an NFA with ε-transitions that begin with 01 or contain 101 or end with 10 ? (am i right?)
Full question : Construct an NFA with ε-transitions and Σ={0,1} which accepts those strings that begin with 01 or contain 101 or end with 10 (or any combination of these conditions).
Here is my attempt at it
https://i.imgur.com/p7Zzzv6.png
Don't feel too confident about this..
Do i need epsilon between the 101 bit. So like 1-epsilon-0-epsilon-1 ??
1
Upvotes
1
u/benmandude Mar 24 '18
I'm not very competent in this arena, gave myself a headache trying to solve this.
But I did find a good resource for you. http://automatonsimulator.com/
Make sure to click NFA at the top.
1
u/kallekro Mar 24 '18
Your NFA does not look right given the specifications. How would it handle a string like 01101? Your automaton can start with either 01 or 101, and then never those characters again. You need some transitions that go back the automaton again. You also have two transitions with no symbol, I assume those were supposed to be epsilon transitions?