Hi all,
This is a homework. I want to know if I'm on the right way, The problem is: show that if L is a subset of sigma* is a regular language, then the following language is also a regular one:
$L^'$ ={w | there is x, y $\in \sigma*$ | w = xy $\wedge$ yx $\in$ to L}
To do that, I've constructed a NFA that accept L. Then I've inverted the transitions of the NFA so that it could accept the inverted language. I Made old initial state a final state, and then I added a new initial state.
Is that correct? Thanks.

