Below is a collection of Sbit words ri l 15 received after
Solution
Hamming codes are a class of codes that use a combination of paritybits and data bits to detect and correct the errors of the given codes.
In the given question we have 5 8-bit codes.
r1= 1 0 1 0 1 1 1 0
Now we create the data word for r1 as follows:
1. The word with parity bits will be : _ _ 1 _ 0 1 0 _ 1 1 1 0
20 21 22 23
P1 P2 D3 P4 D5 D6 D7 P8
This is in binary digit form, we consider it as 20 21 22 23 and P1 P2 D3 P4 D5 D6 D7 P8 indicate parity and data bits.
2. Each and every parity bit gives the parity for some of the bits in the code and this can be calculated by the position of the parity bit and the sequence of bits it checks and skips alternatively.
For 1st position : It check 1 bit and skip 1 bit alternatively ie
X _ 1 _ 0 1 0 _ 1 1 1 0
Here it checks the letters in bold and skips the normal letters. This is even parity so we set 1st position to 0.
0 _ 1 _ 0 1 0 _ 1 1 1 0
For 2nd position: It checks 2 bits and skips 2 bits alternatively ie
0 X 1 _ 0 1 0 _ 1 1 1 0
Here it checks the letters in bold and skips the normal letters. This is odd parity so we set 2nd position to 1.
0 1 1 _ 0 1 0 _ 1 1 1 0
For 4th position: It checks 4 bits and skips 4 bits alternatively ie
0 1 1 X 0 1 0 _ 1 1 1 0
This is odd parity so we set 4th position to 1.
0 1 1 1 0 1 0 _ 1 1 1 0
For 8th position:
0 1 1 1 0 1 0 X 1 1 1 0
This is again even parity so we set it to 0.
The code word thus obtained is 0 1 1 1 0 1 0 0 1 1 1 0.
In the similar way we can calculate for rest of the words from r2 to r5.

