NFA from regular expression

101 Views Asked by At

I'm trying to make an NFA from the following regular expression.

enter image description here

I'm not sure about the edges between nodes $q2$ and $q4$, maybe someone can point out where everything went wrong.

1

There are 1 best solutions below

2
On BEST ANSWER

You should merge $q_2$ and $q_4$ and remove the $\lambda$-transitions between them, but keep the transition labelled by $c$. You should also replace $q_6 \xrightarrow{a} q_7$ by $q_5 \xrightarrow{a} q_7$. The states $q_6$ and $q_7$ should then be both final.