Constructing a Binary Hamming Code
Choose a distinct nonzero parity-check column for each coordinate and derive the distance and single-error correction rule.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Three syndrome bits can label seven single flips
Make a binary matrix \(H\) containing the seven distinct nonzero three-bit columns. Its kernel is a length-seven code. It has dimension four because the columns include the three standard basis vectors, so the matrix has rank three. A single changed bit produces its nonzero column. The decoder can locate that column and invert the affected coordinate when the one-error promise holds.
Distance follows from dependencies among columns
No weight-one or weight-two pattern lies in the kernel since columns are nonzero and distinct. Three columns such as \(001,010,011\) do sum to zero, so the minimum distance is three. One extra overall parity check yields an extended code with distance four. Syndromes give the general argument. Memory ECC describes how an extended code can distinguish selected error classes in stored data.[1]