The reversal of a string w, denoted w^R, is the string "spelled backwards". For example (reverse)^R = esrever. A careful definition can be given by induction on the length of

a string:

1. If w is a string of length 0, then w^R = epsilon
2. If w = ua, where a is an element of all alphabet and u is an element of (alphabet)*, is a string of length n+1>0, then w^R = au^R/

Prove the following by induction
(w^R)^R = w

Similar Questions
    1. answers icon 1 answer
    1. answers icon 1 answer
    1. answers icon 0 answers
  1. Hi,I have to write a method that returns my first name, middle initial, and last name as a single String and call the method in
    1. answers icon 2 answers
more similar questions