Professional Documents
Culture Documents
Numericals - Huffman Coding PDF
Numericals - Huffman Coding PDF
Numericals - Huffman Coding PDF
1 DMS X has six symbols x1, x2, x3, x4, x5 and x6 with probabilities given in
table. Determine Huffman coding and calculate the efficiency of the code.
xi P(xi)
x1 0.30
x2 0.25
X3 0.20
X4 0.12
X5 0.08
X6 0.05
Q.2 A DMS X has five symbols x1, x2, x3, x4 and x5 with probabilities
P(x1) = 0.40, P(x2) = 0.16, P(x3) = 0.15, P(x4) = 0.19, and P(x5) = 0.10,
Determine Huffman coding and calculate the efficiency of the code.
Q.3. A DMS X has seven symbols x1, x2, x3, x4, x 5, x6 and x7 with probabilities
P(x1) = 0.05, P(x2) = 0.15, P(x3) = 0.2, P(x4) = 0.05, P(x5) = 0.15, P(x6) =
0.3 and P(x7) = 0.1. Determine Huffman coding and calculate the efficiency
of the code.