Minimum Code Distance and Error Detection
Use the closest pair of valid codewords to determine how many flipped bits a code is guaranteed to detect.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
A code with minimum Hamming distance \(d\) detects every error pattern affecting between one and \(d-1\) bit positions.
Trace a repetition code
With only words 000 and 111, minimum distance is three. A received word differing from its transmitted word in one or two positions cannot equal the other valid word. See Hamming distance.
Check more errors
With three flips, each word becomes the other. Clean validity checks alone cannot detect that change. Parity checks give a smaller example of limited detection.[1][2]
Look for the closest pair of valid codewords
The code containing only 0000 and 1111 has minimum distance four. Flipping one, two or three bits of either codeword cannot produce the other, so all patterns of up to three flips are detectable by membership. Four flips can change it into the other codeword. See Hamming distance.
Valid words: 0000 and 1111
Distances from 0000 to corrupted examples: 1,2,3 → invalid
Flip all 4 → 1111, valid other word
Check correction radius separately
At distance two from either codeword, a received word with two ones ties between them. For guaranteed unique correction from a code of distance \(d\), require fewer than \(d/2\) flips.