- 2073 Shrawan (CS II) · 5+3 marks
Digital communication system elements; Shannon-Fano coding
Short answer
A digital communication system consists of source, source encoder, channel encoder, modulator, channel, demodulator, channel decoder, source decoder, and destination. Shannon-Fano coding assigns variable-length prefix codes by recursively splitting symbols into two nearly equiprobable groups, assigning 0 and 1, achieving code length close to entropy.
Explain in brief the functional block diagram and the basic elements of a digital communication system. Explain Shannon-Fano coding.
Digital communication system
A digital communication system transmits information as discrete symbols (bits) over a channel. Its functional blocks:
Info -> Formatter -> Source -> Channel -> Modulator
source (A/D) encoder encoder |
v
Channel
noise -> (+)
|
User <- Formatter <- Source <- Channel <- Demodulator
(D/A) decoder decoder /detector
Basic elements:
- Information source: produces the message (voice, video, text, data). Analog messages are first converted to digital by the formatter (sampling, quantizing, PCM encoding).
- Source encoder: removes redundancy and represents the symbols with the fewest bits on average (Huffman, Shannon–Fano). It lowers the bit rate.
- Channel encoder: adds controlled redundancy (parity bits) so the receiver can detect and correct errors (Hamming, cyclic, convolutional codes).
- Digital modulator: converts the bits into waveforms suitable for the channel: line coding for baseband, ASK, FSK, PSK or QAM for bandpass.
- Channel: the physical medium (wire, coaxial cable, optical fibre, radio). It adds noise, attenuation, distortion and interference.
- Demodulator/detector: recovers the bit sequence from the received waveform, using matched filtering, sampling and decisions.
- Channel decoder: uses the redundancy to correct errors.
- Source decoder and formatter: rebuild the original message (D/A conversion) for the user.
Other blocks often included: encryption/decryption, multiplexing, synchronization. Performance is judged by the probability of bit error , bandwidth efficiency (bits/s/Hz) and power efficiency ( needed).
Shannon–Fano coding
Shannon–Fano coding is a variable-length source coding method that gives short code words to likely symbols and long ones to unlikely symbols.
Algorithm:
- List the symbols in decreasing order of probability.
- Split the list into two groups whose total probabilities are as nearly equal as possible.
- Assign bit 0 to every symbol of the upper group and 1 to the lower group.
- Repeat steps 2–3 inside each group until every group has one symbol.
- The code word of a symbol is the sequence of bits assigned to it.
Example: for A–E. First split {A} = 0.4 vs {B, C, D, E} = 0.6.
| Symbol | Step 1 | Step 2 | Step 3 | Step 4 | Code | ||
|---|---|---|---|---|---|---|---|
| A | 0.4 | 0 | 0 | 1 | |||
| B | 0.2 | 1 | 0 | 10 | 2 | ||
| C | 0.2 | 1 | 1 | 0 | 110 | 3 | |
| D | 0.1 | 1 | 1 | 1 | 0 | 1110 | 4 |
| E | 0.1 | 1 | 1 | 1 | 1 | 1111 | 4 |
The code is a prefix code (uniquely decodable), but Shannon–Fano is not always optimal; Huffman coding is.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Digital communication system; Shannon-Fano for six symbols · Communication Systems, chapter 6
- Importance of source coding; Shannon-Fano vs fixed length (seven symbols) · Communication Systems, chapter 6
- Importance of source coding; fixed vs Shannon-Fano (five symbols) · Communication Systems, chapter 6
- Importance of source coding; Shannon-Fano vs BCD (four symbols) · Communication Systems, chapter 6
- Types of noise; Shannon-Fano and Huffman coding efficiency · Communication Systems, chapter 6
- Coding efficiency: binary, Shannon-Fano and Huffman · Communication Systems, chapter 6
- Block diagram of digital communication system · Data Communication, chapter 1 · asked 8×
- Communication system and block diagram · Basic Electronics Engineering, chapter 5 · asked 7×
- Communication system and AM block diagram · Basic Electronics Engineering, chapter 5
- Digital control system block diagram and advantages · Digital Control System, chapter 1 · asked 3×