- 2074 Chaitra (CS II) · 2+6 marks
Hamming distance and weight; rate 1/3 convolutional encoder
Short answer
Hamming weight is the count of 1s in a vector; Hamming distance is the number of differing positions between two vectors. A rate-1/3 convolutional encoder uses a shift register, three modulo-2 adders with specific generator taps, and a commutator to output three bits per input bit, with flushing zeros appended.
Define Hamming distance and Hamming weight. Explain the operation of a 1/3 convolutional encoder.
Hamming weight and distance
- Hamming weight : number of 1s in a code vector. .
- Hamming distance : number of positions in which two vectors differ, . .
The minimum distance of a code sets its error-control power: it detects up to errors and corrects up to errors.
Rate-1/3 convolutional encoder
A rate-1/3 convolutional encoder produces 3 output bits for every input bit. It uses a shift register of length (constraint length), three modulo-2 adders and a commutator. Example with and generators , , :
m -->[ m_i ]-->[ m_i-1 ]-->[ m_i-2 ]
| | |
+-----------------------------> c1 = mi
+----(+)----------------+-----> c2 = mi+mi-2
+----(+)----+----(+)----+-----> c3 = mi+mi-1+mi-2
commutator reads c1, c2, c3 in turn
Operation:
- The register starts cleared (00).
- A message bit enters stage 1; older bits shift right.
- Each adder forms the mod-2 sum of the stages connected to it (taps given by its generator).
- The commutator sends , so the output rate is three times the input rate ().
- After the message, zeros flush the register back to 00.
Example: input 101
| Register | ||
|---|---|---|
| 1 | 1 0 0 | 111 |
| 0 | 0 1 0 | 001 |
| 1 | 1 0 1 | 100 |
| 0 (flush) | 0 1 0 | 001 |
| 0 (flush) | 0 0 1 | 011 |
Output: 111 001 100 001 011.
The encoder has states; its behaviour can be shown by a code tree, state diagram or trellis, and it is decoded with the Viterbi algorithm. The low rate gives a large free distance and strong error correction, at the cost of three times the bandwidth.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Error detection vs correction; rate ½ convolutional encoder · Communication Systems, chapter 8
- Rate 1/3 convolutional encoder: encode 10011 · 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 weight and distance; validate code 100011 · Communication Systems, chapter 8
- Hamming distance and minimum distance · Data Communication, chapter 8 · asked 2×
- Redundancy, Hamming distance, linear vs cyclic · Data Communication, chapter 8
- Minimum Hamming distance; find k and n · Data Communication, chapter 8
- Convolutional encoder c(3,1,3), input 00110 · Data Communication, chapter 8