Assume that a -bit Hamming codeword consisting of -bit data and check bits is , where the data bits and the check bits are given in the following tables: Which one of the following choices gives the correct values of and ?
View worked solution
Answer: A
In a standard 12-bit Hamming code with even parity, the bits are indexed from 1 to 12 (right-to-left):
| Position | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Bit | ||||||||||||
| Value | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 |
Using even parity, we set up the parity equations for the check bits:
- For (covers positions 1, 3, 5, 7, 9, 11): Substituting the given values:
- For (covers positions 8, 9, 10, 11, 12): Substituting the values (with ):
Thus, and , which corresponds to option A.
Free practice · Your answers on this page are not saved.
