- 2071 Shrawan (CS II) · 2+5 marks
Hamming distance and weight importance; syndrome decoding
Short answer
Hamming weight and distance define error detection/correction capability; dmin = minimum non-zero weight for linear codes. Syndrome decoding computes s=rH^T; if non-zero, the syndrome pattern identifies the error. Example: for (6,3) code, r=100011 gives s=(110), matching column 3, so bit 3 is in error; corrected codeword 101011.
What is the importance of hamming distance and hamming weight in coding theory? Explain with example the syndrome decoding method in linear block coding.
Importance of Hamming distance and weight
- Hamming weight (number of 1s) and Hamming distance (number of differing positions) measure how far codewords are apart.
- For a linear code, minimum distance = minimum non-zero weight, so it is found easily.
- sets the error-control power of the code: it detects up to errors and corrects up to errors.
- Decoders choose the codeword at minimum Hamming distance from the received word (maximum-likelihood for a binary symmetric channel).
Syndrome decoding in linear block codes
For a code with generator and parity-check matrix , every codeword satisfies . A received word is , where is the error pattern. The syndrome is
so it depends only on the error, not on the sent codeword.
Steps:
- Compute .
- If , accept as the codeword.
- Otherwise look up the coset leader (most likely error pattern, usually single-bit) with that syndrome; for a single error in bit , equals the -th column of .
- Correct: .
Example: (6,3) code
Syndrome table (single errors):
| Error pattern | Syndrome |
|---|---|
| 000000 | 000 |
| 100000 | 101 |
| 010000 | 011 |
| 001000 | 110 |
| 000100 | 100 |
| 000010 | 010 |
| 000001 | 001 |
Message 101 gives codeword . Suppose (bit 3 flipped).
From the table, , so , message 101 recovered.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Short note: Syndrome calculation in linear systematic block code · Communication Systems, chapter 8
- Hamming weight and distance; (7,4) cyclic code for 1011 · Communication Systems, chapter 8 · asked 2×
- Hamming weight/distance; validate x = 0111000 with given H · Communication Systems, chapter 8 · asked 2×
- Hamming distance and weight; (6,3) code check for 100101 · Communication Systems, chapter 8
- Hamming distance and weight; rate 1/3 convolutional encoder · Communication Systems, chapter 8
- Hamming weight and distance; validate code 100011 · Communication Systems, chapter 8
- Redundancy, Hamming distance, linear vs cyclic · Data Communication, chapter 8
- Linear block coding with example · Data Communication, chapter 8 · asked 3×
- Sampling, holding, quantizing, coding and decoding · Digital Control System, chapter 1
- Hamming distance and minimum distance · Data Communication, chapter 8 · asked 2×