- Asked 2/48
- 2076 Asoj (CS II) · 4+5 marks
- 2074 Asoj (CS II) · 2+6 marks
Hamming weight and distance; (7,4) cyclic code for 1011
Short answer
Hamming weight is the number of 1s in a vector; Hamming distance is the number of differing positions between two vectors. For data 1011, non-systematic codeword is 1111111; systematic codeword is 1011100 (parity 100).
Define Hamming Weight and Hamming Distance. Construct a (7, 4) cyclic code using a generator polynomial g(x) = x³ + x² + 1 with data vector 1011.
Hamming weight
The Hamming weight of a code vector is the number of non-zero (1) elements in it.
Example: , .
Hamming distance
The Hamming distance between two code vectors of equal length is the number of positions in which they differ. It equals the weight of their modulo-2 sum: .
Example: , ; , so .
The smallest distance between any two codewords is the minimum distance ; for a linear code it equals the smallest non-zero weight. A code detects up to errors and corrects up to . For the (7,4) cyclic Hamming code : it detects 2 and corrects 1 error.
(7,4) cyclic code for data 1011
Given , . Convention: leftmost bit = highest power, so . Modulo-2 arithmetic.
Non-systematic form:
Non-systematic code vector: 1111111.
Systematic form:
- Divide by :
x^3 + x^2
-------------------------
x^3+x^2+1 ) x^6 + x^4 + x^3
x^6 + x^5 + x^3
-----------------------
x^5 + x^4
x^5 + x^4 + x^2
-------------------
x^2
- Remainder , parity bits .
- .
Systematic code vector: 1011 100 (message, then parity).
Check: , so is divisible by and is a valid codeword.
| Form | Code vector | Weight |
|---|---|---|
| Non-systematic | 1111111 | 7 |
| Systematic | 1011100 | 4 |
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- (7,4) cyclic code with g(x) = x³ + x² + 1 for 1011 · Communication Systems, chapter 8 · asked 2×
- Convolutional vs block codes; (7,4) cyclic code for 1011 · Communication Systems, chapter 8 · asked 2×
- Hamming distance and weight; (6,3) code check for 100101 · Communication Systems, chapter 8
- Hamming weight and distance; validate code 100011 · Communication Systems, chapter 8
- (7,4) cyclic code g(x) = 1 + x + x³ for 1011 · Communication Systems, chapter 8 · asked 2×
- Hamming weight/distance; validate x = 0111000 with given H · Communication Systems, chapter 8 · asked 2×
- Construct a (7,4) Hamming code · Data Communication, chapter 8
- Redundancy, Hamming distance, linear vs cyclic · Data Communication, chapter 8
- Minimum Hamming distance; find k and n · Data Communication, chapter 8
- Forward error correction using Hamming code · Data Communication, chapter 8