One-hot

The 1- of-n code or even the one-hot encoding is binary numbers is, usually, to be used in a computer.

A decimal digit is represented in a 1 - of-n code by n bits, only one bit is set to 1, whereas the remaining n-1 bits are 0.

The Hamming distance is 2, which is why one -bit errors noted ( by determining whether the cross sum is exactly 1 ), but can not be corrected. 2-bit errors can not be reliably detected.

The code is very redundant, since n bits can encode up to different numbers.

The 1- of-n code can be found eg in keypads, displays, machine controllers, memory addressing and formerly also Nixie Tubes application.

8921
de