Hamming code 汉明码
(重定向自SECDED)
.svg1251.png)
![The same [7,4] example from above with an extra parity bit. This diagram is not meant to correspond to the matrix H for this example.](/uploads/202502/09/Hamming(8,4).svg1251.png)

In telecommunication, Hamming codes are a family of linear error-correcting codes that generalize the Hamming(7,4)-code, and were invented by Richard Hamming in 1950. Hamming codes can detect up to two-bit errors or correct one-bit errors without detection of uncorrected errors. By contrast, the simple parity code cannot correct errors, and can detect only an odd number of bits in error. Hamming codes are perfect codes, that is, they achieve the highest possible rate for codes with their block length and minimum distance of three.