Information Theory and Coding Basics

A SECDED code, which corrects 1-bit errors and detects 2-bit errors, is added to 32 bits of data. The number of check bits r of a Hamming code is the smallest value satisfying 2^r ≥ number of data bits + r + 1, and SECDED adds 1 bit of overall parity to this. Which of the following is the number of check bits needed?

  1. A6 bits
  2. B7 bits
  3. C8 bits
Show answer and explanation

Answer: B. 7 bits

With r = 5, 2⁵ = 32 < 32 + 5 + 1 = 38, which is not enough, and with r = 6, 2⁶ = 64 ≥ 32 + 6 + 1 = 39, so the Hamming code needs 6 check bits. SECDED adds 1 bit of overall parity to distinguish 1-bit errors from 2-bit errors, giving 7 bits and a 39-bit codeword. For 64 bits of data the same calculation gives 8 bits, which yields the 72-bit width used for ECC in server memory.

  • A. 6 bits is the number of check bits of a Hamming code that only corrects 1-bit errors. Detecting 2-bit errors needs one more bit of overall parity.
  • B. Correct. 6 + 1 = 7 bits.
  • C. 8 bits is the number of check bits needed to add SECDED to 64 bits of data.
Practice this topic Back to topic

Books on Information Theory and Coding Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Information Theory and Coding Basics questions

  1. Five Hamming (7, 4) codewords are lined up and sent in the order of bit 1 of each of the five codewords, then bit 2 of each, and so on (interleaving of depth 5). The receiver restores the original order and then corrects a 1-bit error in each codeword. Which of the following is the maximum length of a burst error, concentrated in consecutive bits, that can always be corrected?
  2. Which of the following correctly describes ARQ (automatic repeat request) and FEC (forward error correction), methods for dealing with errors in communication?
  3. In a binary symmetric channel, 0s and 1s are sent and each bit flips independently with probability 0.1. With the binary entropy function H(p) = −p log₂ p − (1 − p) log₂(1 − p), H(0.1) ≈ 0.469. Which of the following is closest to the channel capacity of this channel per transmission?
  4. Which of the following correctly states Shannon's channel coding theorem?
  5. To convert a Gray code into an ordinary binary number, the most significant bit is used as it is, and each lower bit is found as the exclusive OR of the binary bit already found one position higher and the Gray code bit in the same position. Which of the following is the 4-bit Gray code 1101 converted into binary?