- 2074 Asoj (CS II) · 3+2+2 marks
Source vs channel coding; Huffman for five symbols
Short answer
Source coding removes redundancy; channel coding adds it for reliability. For five symbols with probabilities 0.55,0.15,0.15,0.1,0.05, Huffman gives S0=0, others 3-bit, average length 1.90 bits/symbol, efficiency 97.04%.
Distinguish between the Source coding and Channel coding. A discrete memoryless source has an alphabet of five symbols S0, S1, S2, S3, S4 with probabilities of 0.55, 0.15, 0.15, 0.1 and 0.05 respectively. Determine the Huffman code for each symbol and calculate the coding efficiency.
Source coding vs channel coding
| Source coding | Channel coding |
|---|---|
| Removes redundancy from the source output | Adds controlled redundancy |
| Aim: efficiency (fewer bits per symbol) | Aim: reliability (error detection/correction) |
| Reduces bit rate and bandwidth | Increases bit rate and bandwidth |
| Uses symbol probabilities | Uses algebraic structure of codes |
| Limited by entropy: | Limited by channel capacity: |
| Examples: Huffman, Shannon–Fano, LZW | Hamming, cyclic (CRC), convolutional |
| Placed right after the source | Placed before the modulator |
Huffman code
Probabilities: S0 = 0.55, S1 = 0.15, S2 = 0.15, S3 = 0.1, S4 = 0.05.
Reduction (sum of two lowest moved up as high as possible):
| Stage | Probabilities (descending) | Combined |
|---|---|---|
| 1 | 0.55, 0.15, 0.15, 0.1, 0.05 | 0.1 + 0.05 = 0.15 |
| 2 | 0.55, 0.15, 0.15, 0.15 | 0.15 + 0.15 = 0.3 |
| 3 | 0.55, 0.3, 0.15 | 0.3 + 0.15 = 0.45 |
| 4 | 0.55, 0.45 | 0.55 + 0.45 = 1 |
| Symbol | Huffman code | ||
|---|---|---|---|
| S0 | 0.55 | 0 | 1 |
| S1 | 0.15 | 100 | 3 |
| S2 | 0.15 | 101 | 3 |
| S3 | 0.1 | 110 | 3 |
| S4 | 0.05 | 111 | 3 |
Coding efficiency
| Symbol | |||
|---|---|---|---|
| S0 | 0.55 | 0.8625 | 0.4744 |
| S1 | 0.15 | 2.7370 | 0.4105 |
| S2 | 0.15 | 2.7370 | 0.4105 |
| S3 | 0.1 | 3.3219 | 0.3322 |
| S4 | 0.05 | 4.3219 | 0.2161 |
| Total | 1 | 1.8438 |
Answer: S0 = 0 and the other four symbols get 3-bit codes (table); bits/symbol, efficiency 97.04 %.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Source coding; Huffman for five symbols (0.3, 0.25, 0.2, 0.15, 0.1) · Communication Systems, chapter 6
- Huffman code for seven-symbol source · Communication Systems, chapter 6
- Importance of source coding; fixed vs Shannon-Fano (five symbols) · Communication Systems, chapter 6
- Importance of source coding; Huffman for eight symbols at 1000 symbols/s · Communication Systems, chapter 6
- Huffman code for five-symbol DMS vs fixed length · Communication Systems, chapter 6
- Importance of source coding; Shannon-Fano vs BCD (four symbols) · Communication Systems, chapter 6
- Huffman code for five symbols (0.2, 0.35, ...) · Data Communication, chapter 8
- Huffman code for symbols A to E (0.4, 0.3, ...) · Data Communication, chapter 8
- Huffman code for six symbols (0.04, 0.1, ...) · Data Communication, chapter 8
- Huffman code for symbols A to E · Multimedia System, chapter 5