Hamming code
From WikiTech, the free technology encyclopedia
Error-correcting code devised at Bell Labs (1950)
6 sources from Bell System Technical Journal, CIO, Association for Computing Machinery and 3 more. Checked by ByteExplained editors on 3 December 2026. How we check facts
Hamming code is a family of error-correcting codes that add extra check bits to binary data so that a receiver or computer can locate and repair a single wrong bit without asking for the data to be sent again.[1][2] It is named after the mathematician Richard Hamming, who devised it at Bell Labs.[3]
History
In 1947 Hamming left a calculation running on Bell Labs computers over a weekend. On Monday he found that an early error had spoiled the results, leaving him with nothing to report. He reasoned that if a machine could detect an error, it should also be able to work out where the error was.[4] His paper "Error Detecting and Error Correcting Codes" appeared in the Bell System Technical Journal in April 1950.[2][3] It was concerned with large digital computers, where a single undetected failure can ruin all later work, especially during unattended runs.[1] Bell Telephone Laboratories also filed a patent application for an "Error-Detecting and Correcting System" by Hamming and Bernard D. Holbrook in January 1950.[5]
How it works
A simple parity bit can only show that one bit has changed. Hamming added several parity checks, each covering a different selection of bit positions. Read together, the results of these checks form a number that points to the position of the faulty bit, with zero meaning no error.[1][4] Because the data is binary, fixing that bit simply means flipping it.[4] In the well-known (7,4) code, four data bits become seven coded bits, and any two valid codewords differ in at least three positions.[2] Adding one more overall parity bit lets the code correct a single error and also detect a double error.[1]
Legacy
Hamming's work built on the information theory set out by Claude Shannon in 1948, which showed that reliable digital communication was possible with error-correction coding.[2] Many computers still use Hamming's techniques to correct errors in main memory,[6] although other codes are now more common in most communication systems.[2]
See also
References
- ^ Error Detecting and Error Correcting Codes (R. W. Hamming). Bell System Technical Journal. 1950-04. zoo.cs.yale.edu
- ^ CIO Blast from the Past: 60 years of Hamming codes. CIO. cio.com
- ^ Richard W. Hamming – A.M. Turing Award Laureate. Association for Computing Machinery. amturing.acm.org
- ^ Richard Wesley Hamming biography. MacTutor, University of St Andrews. mathshistory.st-andrews.ac.uk
- ^ Error-Detecting and Correcting System (Patent). IEEE REACH. reach.ieee.org
- ^ Memorial Tributes: Volume 10 – Richard W. Hamming. National Academy of Engineering. 2002. nationalacademies.org




