wu :: forums
« wu :: forums - RegEx: reverse(L) »

Welcome, Guest. Please Login or Register.
Apr 25th, 2024, 5:43pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: SMQ, Grimbal, Eigenray, ThudnBlunder, Icarus, towr, william wu)
   RegEx: reverse(L)
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: RegEx: reverse(L)  (Read 3230 times)
Dudidu
Full Member
***





   


Posts: 227
RegEx: reverse(L)  
« on: Oct 27th, 2003, 9:22am »
Quote Quote Modify Modify

Let L be a regular language. Show that the following language is also regular.  
 
reverse(L) = { xy : yx [in] L}
 
Hint: You can look at the RegEx:half(L) thread in the CS section for hints and an example (e.g. my solution) how these kind of problems can be formally solved.
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: RegEx: reverse(L)  
« Reply #1 on: Oct 27th, 2003, 9:45am »
Quote Quote Modify Modify

I'd call it rotation(L), rather than reverse(L).. (since it isn't really reversing much)
And I think that's allready somewhere in this forum..
 
[e]of course William has his own ideas, and he called it Cycle(L)[/e]
« Last Edit: Oct 27th, 2003, 9:48am by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Dudidu
Full Member
***





   


Posts: 227
Re: RegEx: reverse(L)  
« Reply #2 on: Oct 28th, 2003, 12:02am »
Quote Quote Modify Modify

on Oct 27th, 2003, 9:45am, towr wrote:
And I think that's allready somewhere in this forum..

towr you are right ! (I'm so embarassed Embarassed recycling problems)
So, Lets change it a little bit... Let L be a regular language. Show that the following language is also regular.  
 
reverse(L) = { w : wR [in]  L}
 
* If w = x1x2...xn then wR = xnxn-1...x1.
 
Quote:
I'd call it rotation(L), rather than reverse(L).. (since it isn't really reversing much)
towr, now you can see that un-intensionally I choose the right name for the thread Wink.
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board