dantrim / hamming-codec

Simple encode/decode utilties for bit-error correcting Hamming codes
MIT License
14 stars 4 forks source link

Parity bits in LSB or MSB #8

Closed dantrim closed 2 years ago

dantrim commented 3 years ago

Currently, the parity bits are inserted into the LSB bit positions. It seems that in some examples they are either emplaced at the LSB or the MSB positions, leading to some ambiguity in the definition of the algorithm. I think it does not matter so long as it is clearly stated, but perhaps add this as a check or an option into the encoding scheme.