Information Theory and Coding Basics
Data are added up one byte at a time, and the low 8 bits of the sum are sent along as a check value (checksum). Which of the following errors cannot be detected by this check?
- AAn error in which just one bit flips within one of the bytes
- BAn error in which the value of one of the bytes becomes larger by 1
- CAn error in which the order of two bytes is swapped
Show answer and explanation
Answer: C. An error in which the order of two bytes is swapped
Addition gives the same result in any order, so if two bytes are swapped the sum stays the same and the error cannot be detected. A single bit flip, or a change of 1 in the value of one byte, always changes the low 8 bits of the sum, so it is detected. With a CRC, the effect on the remainder of the division depends on the position of each bit, so in many cases such swaps are also detected.
- A. A single bit flip changes the sum by 2^k (k from 0 to 7), so the low 8 bits always change and the error is detected.
- B. The sum changes by 1, so the low 8 bits change too and the error is detected.
- C. Correct. Changing the order of addition leaves the sum the same, so the error is not detected.
Continue: 9 more Information Theory and Coding Basics questions