Expand description

Encoding and decoding of the (10, 6, 3) code.

Functions

Try to decode the given 10-bit word to the nearest codeword, correcting up to 1 error.

Encode the given 6 data bits into a 10-bit codeword.