BRZEN
Two-out-of-five code
Texto da Wikipédia (en), licença CC BY-SA. O BETARUBI mostra o verbete inteiro nesta página — a leitura não continua fora do site.
A two-out-of-five code uses ten possible combinations of two ones and three zeroes to encode the decimal digits using five bits. It is used for its error detection and correction properties, and is a constant-weight code because the Hamming distance to "00000" is the same for all strings. Each bit position is assigned a weight; the bit value is multiplied by this factor and then the products summed to decode the represented number.
