CSE 4295
Hamming Code
Sender and Receiver Calculation
Parity bit
Data bit
Green outline = current check group
View the binary position map
A position belongs to P1, P2, P4, etc. when its binary position has a 1 at that weight. For example, 5 = 101₂ belongs to P1 and P4.
Complete solution
Find and correct an error
What arrived at the receiver?
Click a bit to flip 0 ↔ 1. Click it again to restore it. Data bits and parity bits can both be corrupted.
Received word:
What this decoder can guarantee
Recheck every parity group
The receiver uses the same positions and parity rule as the sender. Pass gives syndrome bit 0; fail gives 1.
| Check | Positions | Received bits (XOR) | Observed parity | Result | Syndrome bit |
|---|
Combine the syndrome bits
Receiver decision
After decoding
Extracted data: