Three-bit lossy Hamming code
ID: three-bit-lossy-hamming-code
Let be independent fair bits. The encoder sends their majority bit: zero when at least two inputs are zero, and one otherwise. The decoder reconstructs or by repeating that received bit three times. This is lossy compression: different original strings deliberately share a reconstruction.
There are eight equally likely inputs. The strings and have zero Hamming distance from their reconstructions; each of the other six has Hamming distance one. One transmitted bit represents three source symbols, soEvery input has average Hamming distortion at most , whereas the population average is . The actual block code therefore obeys , but does not reach the optimal long-block rate.
This construction uses the same reconstruction strings as the threefold binary repetition code, but the tasks differ. An error-correcting encoder expands one source bit into three transmitted bits; this lossy compression example compresses three source bits into one transmitted bit. The source distribution and the direction of the mapping matter.
New to topics? Read the docs here!
