In this activity, weβll explore construction of 1-error correcting codes using parity-check matrices. We will also see how to efficiently decode for these codes. Afterwards, weβll discuss as a class some of the following topics: generalizing this construction to more errors, extending binary Hamming codes to \(q\)-ary Hamming codes, or the dual of a linear code.
Construct a generator matrix for the code in the previous exercise. It may be helpful to use Calculation Tools to do the needed calculations depending on the form of the parity-check matrix you chose.
Have a group member choose a secret message in \(GF(3)^2\text{,}\) encode it using the generator matrix from the previous exercise, and then introduce a single error into the resulting codeword. Share the received erroneous codeword with the rest of your group.
Have the rest of the group decode the received erroneous codeword from the previous exercise by checking distances to the codewords. What was the original codeword and message?
Now letβs use the parity-check matrix to decode the received erroneous codeword from two exercises ago. Compute the syndrome of the received erroneous codeword. Can you find a relationship between the syndrome, the columns of the parity-check matrix, and the error that was introduced?