I'm just wondering about this question I've been working on for my review homework. I tried to solve it on my own and I feel my proof makes decent sense but not the best sense. Please try to give any hints or comments to help me with this thanks.
Question:
If w: {1,...,L} => {0,1} is a binary string, the complement of w, denoted w^c, is the string of length L defined by w^c(i) = 1 - w(i). The reverse of w, denoted w^R, is the string of length L defined by w^R(i) = w(L + 1 - i). Use these definitions to give a careful proof that, for every binary string x, (x^C)^R = (x^R)^C.
My Answer:
Proof By Induction:
Hypothesis:
We can see that x is a binary string with length L and has other strings such as x^C and x^R which are within the length 0 < i ≤ L where i is the position of a character in the string x.
Base Case:
x = {0,1}, L = 2, x^c(1) = 1, x^c(2) = 0, (x^c)^R(1) = 0, (x^c)^R(2) = 1 x^R(1) = 1, x^R(2) = 0, (x^R)^C(1) = 0, (x^R)^C(2) = 1 => (x^c)^R = {0,1}, (x^R)^C = {0,1} thus the base case holds.
Inductive Step:
Suppose for every binary string L = K the base case is satisfied for every character in the string x for 0 < i ≤ L. Then for L = K + 1 we have (x^c)^R(i) = x^c(k+2-i) ≡ 1 - x^R(i) which satisfies the base case because for every character at pos i it is equal because of outer bracket functions.
conclude:
Thus the assertion holds for L = K + 1.
I appreciate all sorts of criticism and help towards this question so I can gain the knowledge on what I am doing wrong.