Library
Back to reading

Who was Richard Hamming?

Richard Hamming (1915-1998): The Mathematician Who Made Digital Errors Correctable

Richard Wesley Hamming was an American mathematician and computer scientist who created the first widely studied family of binary error-correcting codes and the distance measure that bears his name. His work showed how carefully arranged redundancy can let a receiver identify and correct corruption rather than merely notice that something went wrong.

Hamming's contribution sits between Claude Shannon's existence theorem and later coding systems. He supplied explicit block codes, parity-check logic, and a geometric language for comparing codewords. Those ideas remain fundamental even when modern systems use BCH, Reed-Solomon, turbo, LDPC, or polar codes.

Mathematics, War, and Computation

Hamming was born in Chicago on 11 February 1915. He studied mathematics at the University of Chicago and the University of Nebraska and completed his doctorate at the University of Illinois in 1942.

During the Second World War he worked at Los Alamos, where large numerical calculations supported the Manhattan Project. The experience made computation a practical problem of reliability, approximation, and scarce machine time rather than an exercise in symbolic mathematics alone.

Bell Labs and the Weekend Failure Problem

Hamming joined Bell Telephone Laboratories in 1946, working near researchers such as Claude Shannon. Early relay computers could detect some faults or malformed input and stop, protecting later calculations from undetected corruption but wasting unattended hours.

Hamming often explained his coding work through the frustration of weekend runs that terminated after a single error. The motivating question was direct: if a machine has enough information to know that a bit is wrong, can the added information also locate the error and allow the computation to continue?

Parity Checks as an Address

A Hamming code adds parity bits whose check sets overlap in a deliberate pattern. Each transmitted position participates in a distinct combination of checks. When one bit changes, the failed checks form a binary address identifying the erroneous position.

The familiar Hamming (7,4) code carries four information bits and three parity bits. It can correct any single-bit error in the seven-bit codeword. An extended version adds overall parity and is commonly used for single-error correction with double-error detection.

Hamming Distance

The Hamming distance between two equal-length words is the number of positions in which they differ. If valid codewords are far apart, a received word altered in a small number of positions remains closer to the word that was probably sent than to any competing codeword.

A code with minimum distance d can detect up to d minus one errors and correct up to the integer part of (d minus one) divided by two, under the usual bounded-error model. Distance turns redundancy into geometry and gives designers a concise way to state error capability.

The 1950 Paper

Hamming's Error Detecting and Error Correcting Codes appeared in the Bell System Technical Journal in 1950. It presented minimum-redundancy constructions for single-error detection, single-error correction, and single-error correction with double-error detection, together with a general theory.

The paper recognised cost as well as possibility. Redundant bits consume channel capacity and encoding and correction require equipment. Error correction is valuable when the cost of retransmission, human intervention, or undetected failure exceeds that overhead.

Syndromes, Bounds, and Coding Theory

The pattern of parity-check results is now called a syndrome. Syndrome decoding separates the received data from a compact summary of constraint violations and became central to algebraic block coding, including BCH codes developed by Alexis Hocquenghem and Dwijendra Ray-Chaudhuri.

The Hamming bound compares the number of possible received words around valid codewords with the available word space. Perfect Hamming codes meet the bound for single-error correction: their radius-one neighbourhoods exactly cover the space without overlap or gaps.

Beyond Error-Correcting Codes

Hamming contributed to numerical analysis, digital filters, computer architecture, programming languages, and the Hamming window used in spectral analysis. He treated numerical computation as a way to gain understanding, with approximation and algorithm design guided by the scientific question rather than by arithmetic output alone.

He received the ACM A.M. Turing Award in 1968. In 1976 he moved to the Naval Postgraduate School, where his teaching on research practice encouraged scientists and engineers to identify consequential problems, prepare for opportunities, and examine the habits that limit their own work.

Legacy

Hamming died on 7 January 1998. His codes continue in error-correcting memory and control applications, while Hamming distance appears in communications, storage, pattern recognition, cryptography, and computer science.

His enduring idea is that reliability can be designed into representation. Noise and component faults cannot always be eliminated, but added structure can make likely errors distinguishable and correctable. Modern forward error correction scales that principle to channels and data volumes he could not have imagined.

Back to reading