This is an old version, saved 3 Dec 2026, 23:31 by TechWritereditor. It is the current version.

Hamming code

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]

Contents
  1. History
  2. How it works
  3. Legacy
  4. See also
  5. References

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

  1. ^ Error Detecting and Error Correcting Codes (R. W. Hamming). Bell System Technical Journal. 1950-04. zoo.cs.yale.edu
  2. ^ CIO Blast from the Past: 60 years of Hamming codes. CIO. cio.com
  3. ^ Richard W. Hamming – A.M. Turing Award Laureate. Association for Computing Machinery. amturing.acm.org
  4. ^ Richard Wesley Hamming biography. MacTutor, University of St Andrews. mathshistory.st-andrews.ac.uk
  5. ^ Error-Detecting and Correcting System (Patent). IEEE REACH. reach.ieee.org
  6. ^ Memorial Tributes: Volume 10 – Richard W. Hamming. National Academy of Engineering. 2002. nationalacademies.org