- 2080 Baisakh (CS II) · 5+5 marks
Digital communication system; Shannon-Fano for six symbols
Short answer
A digital communication system comprises source, formatter, source encoder, channel encoder, modulator, channel, demodulator, channel decoder, source decoder, and formatter. For the given six symbols, Shannon-Fano coding yields codes: x1=00, x3=01, x2=10, x4=110, x5=1110, x6=1111. Average code length is 2.38 bits/symbol, entropy is 2.3601 bits/symbol, efficiency is 99.17%, redundancy is 0.83%.
Explain digital communication system with appropriate block diagram. A DMS has six symbols with probability of p(x₁) = 0.3, p(x₂) = 0.2, p(x₃) = 0.25, p(x₄) = 0.12 and p(x₅) = 0.08, p(x₆) = 0.05. Construct the Shannon-Fano code for X and calculate its efficiency and code Redundancy.
Digital communication system
A digital communication system sends information as a sequence of discrete symbols (usually bits) from a source to a user.
Source -> Formatter -> Source -> Channel -> Modulator
(analog (sample, encoder encoder |
/digital) quantize) v
Channel
(noise added)
|
User <- Formatter <- Source <- Channel <- Demodulator
(D/A) decoder decoder /detector
- Information source and formatter: produces the message; an analog message is sampled, quantized and coded (A/D conversion) into bits.
- Source encoder: removes redundancy so the average number of bits per symbol is close to the entropy (Huffman, Shannon–Fano). This reduces bit rate and bandwidth.
- Channel encoder: adds controlled redundancy (parity bits) so that errors caused by the channel can be detected or corrected (Hamming, cyclic, convolutional codes).
- Modulator: maps the bits onto waveforms suited to the channel: line codes for baseband, ASK/FSK/PSK/QAM for bandpass.
- Channel: wire, cable, fibre or radio link; it attenuates, distorts (ISI) and adds noise.
- Demodulator/detector: recovers the bit stream from the noisy waveform, usually with a matched filter and a decision device.
- Channel decoder, source decoder, formatter: reverse the encoding steps and deliver the message to the user.
Performance is measured by bit error probability and by bandwidth and power efficiency.
Shannon–Fano code
Probabilities add to 1. Procedure: list symbols in decreasing probability; split the list into two groups of nearly equal total probability; give 0 to the upper group and 1 to the lower group; repeat in each group until each has one symbol.
First split: {0.3, 0.25} = 0.55 and {0.2, 0.12, 0.08, 0.05} = 0.45.
| Symbol | Step 1 | Step 2 | Step 3 | Step 4 | Code | ||
|---|---|---|---|---|---|---|---|
| x1 | 0.3 | 0 | 0 | 00 | 2 | ||
| x3 | 0.25 | 0 | 1 | 01 | 2 | ||
| x2 | 0.2 | 1 | 0 | 10 | 2 | ||
| x4 | 0.12 | 1 | 1 | 0 | 110 | 3 | |
| x5 | 0.08 | 1 | 1 | 1 | 0 | 1110 | 4 |
| x6 | 0.05 | 1 | 1 | 1 | 1 | 1111 | 4 |
Entropy:
| Symbol | |||
|---|---|---|---|
| x1 | 0.3 | 1.7370 | 0.5211 |
| x2 | 0.2 | 2.3219 | 0.4644 |
| x3 | 0.25 | 2.0000 | 0.5000 |
| x4 | 0.12 | 3.0589 | 0.3671 |
| x5 | 0.08 | 3.6439 | 0.2915 |
| x6 | 0.05 | 4.3219 | 0.2161 |
| Total | 1 | 2.3601 |
Average code length:
Efficiency and redundancy:
Answer: codes , , , , , ; bits/symbol, efficiency = 99.17 %, redundancy = 0.83 %.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Importance of source coding; Shannon-Fano vs fixed length (seven symbols) · Communication Systems, chapter 6
- Digital communication system elements; Shannon-Fano coding · Communication Systems, chapter 6
- Importance of source coding; Shannon-Fano vs BCD (four symbols) · Communication Systems, chapter 6
- Shannon-Fano and Huffman codes for six messages · Communication Systems, chapter 6
- Importance of source coding; fixed vs Shannon-Fano (five symbols) · Communication Systems, chapter 6
- Types of noise; Shannon-Fano and Huffman coding efficiency · Communication Systems, chapter 6
- Shannon-Fano code for six symbols · Data Communication, chapter 8
- Shannon-Fano code for eight symbols · Data Communication, chapter 8
- Block diagram of digital communication system · Data Communication, chapter 1 · asked 8×
- Huffman code for six symbols (0.04, 0.1, ...) · Data Communication, chapter 8