Problem P1
Distance Theorem and Nearest Neighbour Decoding
Considering the -ary code:
Part A
We can explain why can detect up to four errors by using the Definition of Distance Theorem. The minimum distance , by inspection, hence
Where errors are detected.
Part B
Similarly, given that , we can use the Definition of Distance Theorem to explain why can correct up to two errors:
Where errors are corrected.
Part C
A word that has a Hamming distance exactly to two different codewords in is:
Part D
From the previous part, we can conclude that does not always correct three errors because the previous example could correct to either or , hence having a chance of correction.
Problem P2
Error Correcting and Detecting
Suppose you are starting to design a code that has to detect or correct a specific number of errors.
Part A
Given that we have to detect up to errors, we can use the Definition of Distance Theorem to find the minimal distance required:
Part B
Similarly, given that we have to correct up to errors, we can use the Definition of Distance Theorem to find the minimal distance required:
Problem P3
Finding Parameters
In the code , there are the following parameters: , , , and .
Problem P4
Repetition Codes and Parameters
Consider the -ary alphabet and the space of all messages of length over .
Part A
Repeating the symbols of all messages in leads to the repetition code…
+ symmetrical codewords, I guess? I’m ignoring those for the sake of time, though.
Part B
Hence the parameters of this code are .
Problem P5
Hamming’s Original Code
Given the following possible codewords of the original code proposed by R. Hamming:
Part A
The four parameters of this code are .
Part B
We can show that the code detects two errors and corrects one error with the Definition of Distance Theorem:
Problem P6
Chance of Correctly Decoding
Let the code be given, used in a symmetric channel with symbol error probability .
Part A
We can determine its parameters as .
Part B
Supposing that a codeword is sent and a word is received, we can compute probability of correctly decoding as:
where is the error of a single symbol being incorrect.
Part C
As a percentage, the probability of incorrectly decoding , when or , is found by substitution and subtracting from 1.