Friday, 23 November 2012


Well the first step to answering any question is to read it (something I seem to forget quite often on tests :\) so here it is:

Question 4:
Use Complete Induction or Mathematical Induction to prove that any binary string that begins and ends with the same bit has an even number of occurrences of substrings from $\{01,10\}$, e.g. $010$ has two: $01$ and $10$.  You may find it useful to combine this claim with a similar claim about binary strings that begin and end with different bits, and then prove the combined claims simultaneously.

The second step is to begin gathering important information on the topic. First thing I did was write down the binary strings for a number of lengths. From this it is always a good idea to make a guess as to whether or not the claim is false.

Length : Strings
0 : {}
1 : {0, 1}
2 : {00, 11}
3 : {000, 010, 111, 101}

So far it seems that the claim holds. Now the next question is why it would hold. Seeing as we are to use either Complete or Mathematical Induction, I chose to assume Complete Induction (as it assumes more than Mathematical) in order to approach the question.

No comments:

Post a Comment