Hamming Code

Telecommunications Engineering

How It Works

The Hamming(7,4) forward error correction code encodes 4 data payload bits into a 7-bit codeword by appending 3 parity check bits. With a minimum Hamming distance d_min = 3 between valid codewords, the receiver calculates a 3-bit syndrome vector S = H · r^T to locate any single-bit transmission error, instantly flipping and correcting the corrupted bit without retransmission.

Governing Equation
$$ \mathbf{s} = \mathbf{H}\mathbf{r}^T \quad\vert\quad \mathbf{H} = [\mathbf{P}^T \mid \mathbf{I}_3] \quad\vert\quad d_{\min} = 3 \implies t = 1\,\text{Bit Error Correction} $$