Problem

Binary codes that use multiple check digits, called parity bits, to detect and correct s...

Binary codes that use multiple check digits, called parity bits, to detect and correct single digit transmission errors are called Hamming codes. Suppose we want to encode four bits: b1 b2 b3 b4. Three parity bits will be added at the end of the code, each calculated by using a different set of bits so the new code will contain the original four-bit code and three parity bits. It will now look like b1 b2 b3 b4 P1 P2 P3. We will use congruence modulo 2 to define the three parity bits as follows:

For example, to the four bit code 1100, we would add the following three parity bits:

The transmission would look like 1100011. However, if there is interference in the transmission, and the receiver picks up the code as 0100011, how will the error be detected and corrected?

Because each of the original four bits shows up in at least two parity bit calculations, a single-bit error will show up in at least two parity bits, as the following table shows.

There was an error detected in parity bit 1, which involved b1, b2, and b3. An error was also detected in parity bit 3 which involved b1, b3, and b4. Notice that the parity bits that detected errors involved b1 and b3. Because no error was detected in parity bit 2, which also involved b3, we conclude that b3 must not be the source of the error. The error must be in b1, and the code can be corrected by replacing the 0 with a 1 for the first bit in the four-bit code.

The transmission 1111111 was received as 1001111 with two single-digit errors. Will this type of error be detected? Can it be corrected? Explain.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search