Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
TOPICS
Search

Hamming Code


A binary Hamming code H_r of length n=2^r-1 (with r>=2) is a linear code with parity-check matrix H whose columns consist of all nonzero binary vectors of length r, each used once (Hamming 1950, MacWilliams and Sloane 1977). H_r is an (n=2^r-1,k=2^r-1-r,d=3) code. Hamming codes are perfect single error-correcting codes.

If y is a received row vector, its syndrome is Hy^T, with arithmetic in the two-element finite field. A single error in position j adds the jth standard basis vector to the transmitted codeword, so the syndrome is column j of H. The decoder identifies that column and flips bit j. Under the assumption of at most one error, a zero syndrome means that no bit was flipped (Hamming 1950, 3Blue1Brown 2020).

For r=3, the family gives the Hamming (7,4) code, which has parameters (7,4,3).

The chessboard coin puzzle uses the same column-sum operation to send a chosen syndrome. It adds a zero column so a mandatory flip can leave that value unchanged.


See also

Error-Correcting Code, Hamming (7,4) Code, Hamming Distance, Hamming Graph, Perfect Code

Explore with Wolfram|Alpha

References

3Blue1Brown. "Hamming Codes Part 2: The One-Line Implementation." YouTube. Sep. 4, 2020. https://www.youtube.com/watch?v=b3NxrZOu_CE.Hamming, R. W. "Error Detecting and Error Correcting Codes." Bell System Tech. J. 29, 147-160, 1950. https://doi.org/10.1002/j.1538-7305.1950.tb00463.x.MacWilliams, F. J. and Sloane, N. J. A. The Theory of Error-Correcting Codes. Amsterdam, Netherlands: North-Holland, 1977.

Referenced on Wolfram|Alpha

Hamming Code

Cite this as:

Weisstein, Eric W. "Hamming Code." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/HammingCode.html

Subject classifications