retagged by
503 views
2 votes
2 votes

Here is the DFA and I need to convert it to regular expression. I get two different answers when removing states in different order.

i get b(c+ab)*d when I remove B first and then A while I get (bc*a)*bc*d when I eliminate A first. Which one is right?

retagged by

1 Answer

0 votes
0 votes
the correct regex will be   $a(c+ba)^{*}d$.

step1 : (c+ba)* is a loop occur at state B

step2: to reach A to B  a is needed and  from b to c "d" is needed.