Prove that if L is regular, then L^R is regular

  • Context:
  • Thread starter Thread starter Julio1
  • Start date Start date
  • Tags Tags
    Regular
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
Julio1
Messages
66
Reaction score
0
Prove that if $L$ is regular, then $L^R=\{w^R, w\in L\}$ is regular.

Hello MHB! I need if you can help me with this problem. Thank you.
 
Physics news on Phys.org
One way is to take a regular expression $r$ that generates $L$ and construct an expression that generates $L^R$. It is built by recursion on $r$.

Another way is to take a DFA accepting $L$ and reverse all arrows. One also has to add a new initial state and add $\varepsilon$-transitions from it to all old accepting states.