Homework 9#
Due: Thursday, December 3, 2026 23:59
Submit: Gradescope, through
Blackboard’s assignment area.
Please write your homework by hand, scan your work to a legible PDF, and clearly mark the pages associated with each exercise. Show your computations. Total: 40 points.
1. (A code for two message bits) #
Points: 20
Encode the message
Reference notes: Introduction to coding theory for code rate, and The Hamming cube and Hamming distance for the sections Minimum distance and Recovery with a bounded number of errors, and the theorem Correction and detection with one decoder.
(A) 4 points. Construct the code.(i) 2 points. Complete the encoding table (point per code word). Message Code word 00011011(ii) 2 points. Complete the table (point each for and , and point for ). Quantity Value Block length Number of code words Rate
(B) 6 points. Check the distance.(i) 3 points. Compute the distances between the six pairs of different code words (point per distance). (ii) 1 point. State the minimum distance. (iii) 2 points. Use the distance criterion in the notes to determine whether the code can correct a single error while reporting an error whenever two or three bits flip (point for applying the criterion and point for the conclusion).
(C) 5 points. Locate errors and recover the message. The received word is11101011. Assume that no more thanerrors occurred. Number bit positions from left to right, starting at . 1 point: Give its distance from each of the four code words.
1 point: Specify how many errors occurred, if this can be determined.
1 point: Specify the positions of the errors, if possible.
2 points: Recover the sent message, or state why this is not possible.
(D) 5 points. Locate errors and recover the message. The received word is00000011. Assume that no more thanerrors occurred. Number bit positions from left to right, starting at . 1 point: Give its distance from each of the four code words.
1 point: Specify how many errors occurred, if this can be determined.
1 point: Specify the positions of the errors, if possible.
2 points: Recover the sent message, or state why this is not possible.
2. (A code for three message bits) #
Points: 20
Encode the message
(A) 4 points. Construct the code.(i) 2 points. Complete the encoding table (point per code word). Message Code word 000001010011100101110111(ii) 2 points. Complete the table (point each for and , and point for ). Quantity Value Block length Number of code words Rate
(B) 6 points. Check the distance.(i) 3 points. Compute the distances between thepairs of different code words. (ii) 1 point. State the minimum distance. (iii) 2 points. Use the distance criteria in the notes to state the maximum number of errors the code is guaranteed to correct (point) and the maximum number it is guaranteed to detect ( point), considering correction and detection separately.
(C) 5 points. Locate errors and recover the message. The received word is101011. Assume that no more thanerrors occurred. Number bit positions from left to right, starting at . 1 point: Give its distance from each of the eight code words.
1 point: Specify how many errors occurred, if this can be determined.
1 point: Specify the positions of the errors, if possible.
2 points: Recover the sent message, or state why this is not possible.
(D) 5 points. Locate errors and recover the message. The received word is000110. Assume that no more thanerrors occurred. Number bit positions from left to right, starting at . 1 point: Give its distance from each of the eight code words.
1 point: Specify how many errors occurred, if this can be determined.
1 point: Specify the positions of the errors, if possible.
2 points: Recover the sent message, or state why this is not possible.