Changes to Hamming code

TechWritereditor · 3 Dec 2026, 23:24 · “New page”

+ added − removed (first version)

Title

Removed:  
Added: Hamming code

Short description

Removed:  
Added: Error-correcting code devised at Bell Labs (1950)

Type

Removed:  
Added: technology

Summary

Removed:  
Added: A Hamming code is a way of adding a few extra check bits to binary data so that a single flipped bit can be found and corrected automatically. Richard Hamming devised the method at Bell Labs and published it in 1950.

Fact box

Removed:  
Added: Type: Error-correcting code
Added: Inventor: Richard Hamming
Added: Developed: 1947, at Bell Labs
Added: Published: April 1950, Bell System Technical Journal
Added: Example: (7,4) code, 4 data bits in 7 coded bits
Added: Uses: Computer memory error correction

Article

Added: **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]
 
Added: ## History
Added: 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]
Added:  
Added: ## How it works
Added: 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]
Added:  
Added: ## Legacy
Added: 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]
Added:  
Added: ## See also
Added: - [[Claude Shannon]]
Added: - [[Bell Labs]]
Added: - [[Dynamic random-access memory]]

Sources

Removed:  
Added: Error Detecting and Error Correcting Codes (R. W. Hamming) | https://zoo.cs.yale.edu/classes/cs323/doc/Hamming.pdf | Bell System Technical Journal | 1950-04
Added: CIO Blast from the Past: 60 years of Hamming codes | https://www.cio.com/article/205691/cio-blast-from-the-past-60-years-of-hamming-codes.html | CIO
Added: Richard W. Hamming – A.M. Turing Award Laureate | https://amturing.acm.org/award_winners/hamming_1000652.cfm | Association for Computing Machinery
Added: Richard Wesley Hamming biography | https://mathshistory.st-andrews.ac.uk/Biographies/Hamming/ | MacTutor, University of St Andrews
Added: Error-Detecting and Correcting System (Patent) | https://reach.ieee.org/primary-sources/error-detecting-and-correcting-system-patent/ | IEEE REACH
Added: Memorial Tributes: Volume 10 – Richard W. Hamming | https://www.nationalacademies.org/read/10403/chapter/23 | National Academy of Engineering | 2002

Categories

Removed:  
Added: Error correction
Added: Milestones in computing

Other names

Removed:  
Added: Hamming codes
Added: Hamming(7
Added: 4)
Added: Single-error-correcting code