0
$\begingroup$

Good evening everyone! Can someone help me with the following task? So we have this NFA: NFA

I was supposed to create a regular expression out of it. Now the solution says: $a^{+}b^{+}(c|ca^{*}b^{+})^{*}$ Unfortunately I don't understand how this is possible. If I look at the NFA, then we can accept a word that only includes one a without any b's. But the regular expression in the solution does not make that possible. Or am I missing something? I also converted the NFA to a DFA however that didn't help much.

Thanks!

$\endgroup$

2 Answers 2

2
$\begingroup$

The RE is wrong. It also includes abcb which is not in the language of the automaton.

$\endgroup$
1
$\begingroup$

The direct edge (a) from initial state 1 to final state 3 is not included in the RE.

$\endgroup$
2
  • $\begingroup$ But why is that so? Does that mean, that the RE is wrong? $\endgroup$
    – Momo
    Commented Oct 5, 2020 at 12:41
  • $\begingroup$ @Daisy Sure looks like it. $\endgroup$ Commented Oct 6, 2020 at 23:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.