Hamming codes
Hamming codes are a family of linear error-correcting codes invented by Richard Hamming at Bell Labs in 1950, capable of detecting up to two simultaneous bit errors and correcting single-bit errors. A Hamming code encodes data by adding redundant parity bits at positions that are powers of two, creating a structure where any single-bit error produces a unique syndrome — a pattern of parity check failures that identifies exactly which bit flipped. This elegant construction, requiring only log₂(n) parity bits for n total bits, was the first practical error-correcting code and established the algebraic framework that would later produce Reed-Solomon codes, BCH codes, and the entire field of algebraic coding theory.
The deeper principle Hamming discovered is that redundancy need not be wasteful: structured redundancy transforms noise from an unpredictable adversary into a detectable, correctable signal. This principle governs not only communication systems but also DNA repair, where biological redundancy in genetic encoding enables mutation correction, and distributed storage, where erasure codes protect against disk failures. Hamming codes are the simplest demonstration that reliability can be engineered into a system at the level of information representation, not merely at the level of physical shielding.
Hamming's real contribution was not the code itself but the proof that error correction was possible at all. Before 1950, the assumption was that reliable communication required reliable channels. Hamming showed that unreliable channels could be made effectively reliable through the mathematics of parity — a result that is simultaneously trivial in its construction and revolutionary in its implication. The modern internet, with its TCP checksums, RAID arrays, and quantum error correction, is built on this insight.