Skip to main content

Information rate and coding efficiency: BCD vs Huffman

Short answer

Entropy H = 2.0572 bits/symbol. Information rate = 14400 × 2.0572 ≈ 29.62 kbps. BCD uses 4 bits per symbol, efficiency = 2.0572/4 = 51.43%. Huffman coding yields average length 2.10 bits/symbol, efficiency = 2.0572/2.10 = 97.96%.

If a source emits symbols Xi = {A, B, C, D, E, F} in the BCD format with probabilities P(Xi) = {0.3, 0.1, 0.02, 0.15, 0.4, 0.03} at a rate Rs = 14.4 kbaud, find the following: i) Information rate ii) Coding efficiency both with BCD and Huffman coded signal

Given: six symbols A–F with P={0.3,0.1,0.02,0.15,0.4,0.03}P = \{0.3, 0.1, 0.02, 0.15, 0.4, 0.03\} (sum = 1); symbol rate rs=14.4r_s = 14.4 kbaud = 14 400 symbols/s; BCD format = 4 bits per symbol.

Entropy:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
A0.31.73700.5211
B0.13.32190.3322
C0.025.64390.1129
D0.152.73700.4105
E0.41.32190.5288
F0.035.05890.1518
Total12.0572
H=2.0572 bits/symbolH = 2.0572\ \text{bits/symbol}

i) Information rate

R=rsH=14 400×2.0572=29 624.29 bits/s≈29.62 kbpsR = r_s H = 14\ 400 \times 2.0572 = 29\ 624.29\ \text{bits/s} \approx 29.62\ \text{kbps}

ii) Coding efficiency

BCD coding: each symbol uses 4 bits, Lˉ=4\bar L = 4.

ηBCD=2.05724=51.43%\eta_{BCD} = \frac{2.0572}{4} = 51.43\%

(The line bit rate would be 14 400×4=57.614\ 400 \times 4 = 57.6 kbps.)

Huffman coding:

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.4, 0.3, 0.15, 0.1, 0.03, 0.020.03 + 0.02 = 0.05
20.4, 0.3, 0.15, 0.1, 0.050.1 + 0.05 = 0.15
30.4, 0.3, 0.15, 0.150.15 + 0.15 = 0.3
40.4, 0.3, 0.30.3 + 0.3 = 0.6
50.6, 0.40.6 + 0.4 = 1
Symbolpip_iHuffman codelil_i
E0.411
A0.3012
D0.150013
B0.100004
F0.03000105
C0.02000115
LˉH=0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.03(5)+0.02(5)=0.4+0.6+0.45+0.4+0.15+0.1=2.10 bits/symbolηH=2.05722.10=97.96%\begin{aligned} \bar L_H &= 0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.03(5)+0.02(5) \\ &= 0.4+0.6+0.45+0.4+0.15+0.1 = 2.10\ \text{bits/symbol} \\ \eta_H &= \frac{2.0572}{2.10} = 97.96\% \end{aligned}

Bit rate with Huffman coding: 14 400×2.1=30.2414\ 400 \times 2.1 = 30.24 kbps.

Answer: R≈29.62R \approx 29.62 kbps; efficiency with BCD = 51.43 %, with Huffman = 97.96 %.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Communication Systems chapter 6 questions →