$01^*01^*(0 \lor 1)^* \lor 10^*10^*1(0 \lor 1)^*$ is wrong

43 Views Asked by At

I have the following finite automata. I would like to know its regular expression. I gave $01^*01^*(0 \lor 1)^* \lor 10^*10^*1(0 \lor 1)^*$, but it seems my answer is wrong. Can you tell me why?

enter image description here

1

There are 1 best solutions below

1
On BEST ANSWER

It seems (almost) correct to me. I guess what you meant was $$01^*01^∗\color{red}{0}(0∨1)^∗∨10^∗10^∗1(0∨1)^∗$$