Start typing to search every page on this site.

Use ↑ and ↓ to move through results, then Enter to open one.

    Skip to main content

    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 as Let be the set of encoded words.

    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.

    1. (A) 4 points. Construct the code.

      1. (i) 2 points. Complete the encoding table ( point per code word).

        Message Code word
        00
        01
        10
        11
      2. (ii) 2 points. Complete the table ( point each for and , and point for ).

        QuantityValue
        Block length
        Number of code words
        Rate
    2. (B) 6 points. Check the distance.

      1. (i) 3 points. Compute the distances between the six pairs of different code words ( point per distance).

      2. (ii) 1 point. State the minimum distance .

      3. (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).

    3. (C) 5 points. Locate errors and recover the message. The received word is 11101011. Assume that no more than errors 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.

    4. (D) 5 points. Locate errors and recover the message. The received word is 00000011. Assume that no more than errors 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 as where all sums are computed modulo . Let be the set of encoded words.

    1. (A) 4 points. Construct the code.

      1. (i) 2 points. Complete the encoding table ( point per code word).

        Message Code word
        000
        001
        010
        011
        100
        101
        110
        111
      2. (ii) 2 points. Complete the table ( point each for and , and point for ).

        QuantityValue
        Block length
        Number of code words
        Rate
    2. (B) 6 points. Check the distance.

      1. (i) 3 points. Compute the distances between the pairs of different code words.

      2. (ii) 1 point. State the minimum distance .

      3. (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.

    3. (C) 5 points. Locate errors and recover the message. The received word is 101011. Assume that no more than errors 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.

    4. (D) 5 points. Locate errors and recover the message. The received word is 000110. Assume that no more than errors 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.

    On this page