[Jump to code hierarchy]

Two-in-five code[1]

Alternative names: Two-out-of-five code.

Description

A nonlinear binary code consisting of the 10 weight-two five-bit strings, thereby providing an encoding for the decimal digits 0 through 9.

Protection

Detects some single bit-flips as well as unidirectional errors using the fact that each codeword has weight two. The code fails for any sequence of flips that maintains the constant weight.

Realizations

Used in the United States Postal Service’s POSTNET barcode system as well as the Postal Alpha-numeric Encoding Technique (PLANET).Forms the numerical part of the Code 39 barcode encoding.Early IBM computers [2,3].

Primary Hierarchy

Parents
The two-in-five code is a binary group-orbit code with group \(S_5\).
Two-in-five code

References

[1]
R. W. Hamming, Letter, April 5, 1978.
[2]
J. Svigals, “IBM 7070 data processing system”, Papers presented at the the March 3-5, 1959, western joint computer conference on XX - IRE-AIEE-ACM ’59 (Western) 222 (1959) DOI
[3]
T. Thompson, From Error-Correcting Codes Through Sphere Packings to Simple Groups (American Mathematical Society, 1983) DOI
Page edit log

Your contribution is welcome!

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

edit on this site

Zoo Code ID: two_in_five

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

Cite as:

“Two-in-five code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2022. https://errorcorrectionzoo.org/c/two_in_five

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