- 2071 Shrawan (CS II) · 2+4+2 marks
Importance of source coding; Huffman for eight symbols at 1000 symbols/s
Short answer
Source coding removes redundancy, bringing bit rate near entropy to save bandwidth. For the eight symbols, entropy is 2.6640 bits/symbol, Huffman average length = 2.72 bits/symbol, coding efficiency = 97.94%, and output bit rate = 1000 × 2.72 = 2720 bits/s.
Explain the importance of source coding in Digital Communication System. A discrete memory less source emits one of the eight symbols with probabilities P = {0.25, 0.20, 0.2, 0.15, 0.08, 0.07, 0.03, 0.02}. If the output symbols are encoded using Huffman code, find the Coding efficiency and output bit if the symbol rate of the source is 1000 symbols per second.
Importance of source coding
Source coding represents the source output with the minimum average number of bits by removing redundancy:
- It brings the average code length close to the entropy (Shannon's source coding theorem: ).
- It lowers the bit rate, so less bandwidth, power and storage are needed.
- Variable-length prefix codes (Huffman, Shannon–Fano) give short words to likely symbols and remain uniquely decodable.
Huffman code
for (sum = 1).
Reduction (sum of two lowest moved up as high as possible):
| Stage | Probabilities (descending) | Combined |
|---|---|---|
| 1 | 0.25, 0.2, 0.2, 0.15, 0.08, 0.07, 0.03, 0.02 | 0.03 + 0.02 = 0.05 |
| 2 | 0.25, 0.2, 0.2, 0.15, 0.08, 0.07, 0.05 | 0.07 + 0.05 = 0.12 |
| 3 | 0.25, 0.2, 0.2, 0.15, 0.12, 0.08 | 0.12 + 0.08 = 0.2 |
| 4 | 0.25, 0.2, 0.2, 0.2, 0.15 | 0.2 + 0.15 = 0.35 |
| 5 | 0.35, 0.25, 0.2, 0.2 | 0.2 + 0.2 = 0.4 |
| 6 | 0.4, 0.35, 0.25 | 0.35 + 0.25 = 0.6 |
| 7 | 0.6, 0.4 | 0.6 + 0.4 = 1 |
| Symbol | Huffman code | ||
|---|---|---|---|
| x1 | 0.25 | 01 | 2 |
| x2 | 0.2 | 11 | 2 |
| x3 | 0.2 | 000 | 3 |
| x4 | 0.15 | 001 | 3 |
| x5 | 0.08 | 101 | 3 |
| x6 | 0.07 | 1000 | 4 |
| x7 | 0.03 | 10010 | 5 |
| x8 | 0.02 | 10011 | 5 |
Entropy:
| Symbol | |||
|---|---|---|---|
| x1 | 0.25 | 2.0000 | 0.5000 |
| x2 | 0.2 | 2.3219 | 0.4644 |
| x3 | 0.2 | 2.3219 | 0.4644 |
| x4 | 0.15 | 2.7370 | 0.4105 |
| x5 | 0.08 | 3.6439 | 0.2915 |
| x6 | 0.07 | 3.8365 | 0.2686 |
| x7 | 0.03 | 5.0589 | 0.1518 |
| x8 | 0.02 | 5.6439 | 0.1129 |
| Total | 1 | 2.6640 |
Average length and efficiency:
(A fixed 3-bit code would give .)
Output bit rate
(The information rate is bits/s.)
Answer: coding efficiency = 97.94 %; output bit rate = 2720 bits/s.
✓ 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
- Importance of source coding; Shannon-Fano vs fixed length (seven symbols) · Communication Systems, chapter 6
- Importance of source coding; Shannon-Fano vs BCD (four symbols) · Communication Systems, chapter 6
- Importance of source coding; fixed vs Shannon-Fano (five symbols) · Communication Systems, chapter 6
- Source vs channel coding; Huffman for five symbols · Communication Systems, chapter 6
- Information rate and coding efficiency: BCD vs Huffman · Communication Systems, chapter 6
- Huffman code for eight symbols (1/2 ... 1/128) · Data Communication, chapter 8
- Huffman code for symbols A to E · Multimedia System, chapter 5
- Huffman code for symbols A to E (0.4, 0.3, ...) · Data Communication, chapter 8
- Huffman code for symbols A0 to A4 · Data Communication, chapter 8