Question: I defined the reverse w R of a string w by saying just write the symbols of w in opposite order. There is a more
I defined the reverse wR of a string w by saying just write the symbols of w in opposite order. There is a more precise way of defining the reverse that helps us prove useful results. This definition is given by the following two rules:
for any alphabet symbol x, define xR = x
for any string w and any alphabet symbol x, define (wx)R = xwR
Using this new definition,
a) prove that (w1w2)R = w2R w1R for any two non-empty strings w1, w2
b) For all k 2, prove that (w1 wK)R = wkR w1R for any k non-empty strings w1, . . . , wK.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
