Apex › Data & encoding

Hamming(7,4) — error correction that points at the mistake

The first error-correcting code (Hamming, 1950). Four data bits become a seven-bit codeword with parity bits at positions 1, 2, 4. Each parity bit checks the positions whose index has that bit set, so the three checks together read out the binary index of any single flipped bit — the syndrome is the error's address. Toggle the data, corrupt a bit in transit, and watch the code locate and fix it.

More in Data & encoding