Paper 1, Section II, G
Define the Hamming code. Show that it is a perfect, linear, 1-error correcting code.
I wish to send a message through a noisy channel to a friend. The message consists of a large number of letters from a 16 -letter alphabet . When my friend has decoded the message, she can tell whether there have been any errors. If there have, she asks me to send the message again and this is repeated until she has received the message without error. For each individual binary digit that is transmitted, there is independently a small probability of an error.
(a) Suppose that I encode my message by writing each letter as a 4-bit binary string. The whole message is then bits long. What is the probability that the entire message is transmitted without error? How many times should I expect to transmit the message until my friend receives it without error?
(b) As an alternative, I use the Hamming code to encode each letter of as a 7-bit binary string. What is the probability that my friend can decode a single 7-bit string correctly? Deduce that the probability that the entire message is correctly decoded is given approximately by
Which coding method is better?