I want to decode the following bit stream using Hamming code: 01110110
Once using even parity and once odd parity. I will show my work. For even parity:
$ p_{1} \; p_{2} \; 0 \; p_{3} \; 1 \; 1 \; 1 \; p_{4} \; 0 \; 1 \; \; 1 \; 0$
Now, we check:
$ p_{1}: p_{1} \; 0 \; 1 \; 1 \; 0 \; 1 $ , since there is an odd number of 1’s, $ p_{1}=1$
$ p_{2}: p_{2} \; 0 \; 1 \; 1 \; 1 \; 1 $ , since there is an even number of 1’s, $ p_{2}=0$
$ p_{4}: p_{3} \; 1 \; 1 \; 1 \;0 $ , since there is an odd number of 1’s, $ p_{3}=1$
$ p_{8}: p_{4} \; 0 \; 1 \; 1 \;0 $ , since there is an even number of 1’s, $ p_{4}=0$
so the following hamming code is $ $ 1 \; 0 \; 0 \; 1\; 1 \; 1 \; 1 \; 0 \; 0 \; 1 \; \; 1 \; 0$ $
As for odd, the parities will just be the opposite and the code will be
$ $ 0\; 1 \; 0 \; 0 \; 1 \; 1 \; 1 \; 1 \; 0 \; 1 \; \; 1 \; 0$ $
Can someone tell me if my work is correct? Because I am a bit confused and would appreciate the help.
The post Decoding bit streams using Hamming Code appeared first on 100% Private Proxies - Fast, Anonymous, Quality, Unlimited USA Private Proxy!.