Re: Is this correct ?



On 2007-09-17, freebsd.dev@xxxxxxxxx <freebsd.dev@xxxxxxxxx> wrote:
I need to Prove that (w R)R = w for all w ??*

Where w is a string and wR is reverse of w.

As mentioned, you must prove that for all strings, of course it's not
enough just to give an example.

My crystal ball is hazy, but I suspect you have been given a formal
definition of R, something like

_R = _
where _ means an empty string,
and
(aw)R = wR a
where a is any character and w is a string - in this way one can define
the reverse of a string in terms of a slightly shorter string, etc.

Anyway, whatever formal definition of R you have been given, you
likely should use it.

(Funny how the introductory courses seem to proceed at the same pace...
I bet that in late October we'll get the pumping lemma again)

Harri H.
.



Relevant Pages

  • pumping lemma (third try)
    ... My wannabe attempt of a proof is between the ... some string x followed by its reverse.} ... I will assume that L is regular and therefore the pumping lemma ...
    (comp.theory)
  • Re: Reverse words in a string (Another Interview question)
    ... >> I'm using a linked list to contain words that will be output in reverse ... A stack is exactly that. ... C's string handling sucks. ... > void reverse_string(char * ostr) ...
    (comp.programming)
  • Re: EXCEL: How to scan text reversed (like ACCESS: InStrRev)?
    ... InStrRev function. ... You could use a UDF to reverse the string, at least in later versions ... Function Reverse(str As String) As String ... you could use a UDF implementing Regular Expressions ...
    (microsoft.public.excel.worksheet.functions)
  • Re: A function of reverse complement
    ... I see how you reverse the strand. ... I do not understand how you want to complement the strand. ... Function Rev(Forw As String) As String ... >> Dim strReverseSeq As String ...
    (microsoft.public.excel.programming)
  • Re: A function of reverse complement
    ... I see how you reverse the strand. ... I do not understand how you want to complement the strand. ... Function Rev(Forw As String) As String ... >> Dim strReverseSeq As String ...
    (microsoft.public.excel.programming)