[Jump to code hierarchy]

Weight-two code[1]

Description

A length-\(n\) binary code whose codewords all have Hamming weight two. Such codes provide slightly extra redundancy for storage of small-scale information such as ZIP codes or decimal digits.

Cousin

  • Two-weight code— Codewords of two-weight codes have one of two possible Hamming weights, while those of weight-two codes have Hamming weight two.

References

[1]
R. W. Hamming, Letter, April 5, 1978.
Page edit log

Your contribution is welcome!

on github.com (edit & pull request)— see instructions

edit on this site

Zoo Code ID: weight_two

Cite as:
“Weight-two code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2022. https://errorcorrectionzoo.org/c/weight_two
BibTeX:
@incollection{eczoo_weight_two, title={Weight-two code}, booktitle={The Error Correction Zoo}, year={2022}, editor={Albert, Victor V. and Faist, Philippe}, url={https://errorcorrectionzoo.org/c/weight_two} }
Share via:
Twitter | Mastodon |  | E-mail
Permanent link:
https://errorcorrectionzoo.org/c/weight_two

Cite as:

“Weight-two code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2022. https://errorcorrectionzoo.org/c/weight_two

Github: https://github.com/errorcorrectionzoo/eczoo_data/edit/main/codes/classical/bits/constant_weight/weight_two.yml.