recategorized by
6,085 views
2 votes
2 votes

Given the symbols A, B, C, D, E, F, G and H with the probabilities$\frac{1}{30}, \frac{1}{30}, \frac{1}{30}, \frac{2}{30}, \frac{3}{30}, \frac{5}{30}, \frac{5}{30}$ and $\frac{12}{30}$respectively. The average Huffman code size in bits per symbol is

  1. $\frac{67}{30}$
  2. $\frac{70}{34}$
  3. $\frac{76}{30}$
  4. $\frac{78}{30}$
recategorized by

2 Answers

Best answer
3 votes
3 votes

ans is C  76/30

selected by
2 votes
2 votes


A – 10100 – 5 bits
B – 10101 – 5 bits
C – 1100 – 4 bits
D – 1101 – 4 bits
E – 1011 – 4 bits
F – 100 – 3 bits
G – 111 – 3 bits
H – 0 – 1 bit
average Huffman code size = 5 * (1 / 30 ) + 5 * (1 / 30 ) + 4 * (2 / 30 ) + 4 * (3 / 30 ) + 3 * (5 / 30 ) + 3 * (5 / 30 ) + 1 * (12 / 30 ) = 76 / 30.
So, option (D) is correct.

Answer:

Related questions

3 votes
3 votes
1 answer
2
go_editor asked Jul 31, 2016
3,309 views
An all-pairs shortest-paths problem is efficiently solved using:Dijkstra's algorithmBellman-Ford algorithmKruskal algorithmFloyd-Warshall algorithm
4 votes
4 votes
3 answers
3