in Algorithms recategorized by
4,216 views
3 votes
3 votes

Consider a source with symbols $A, B, C, D$ with probabilities $1/2, 1/4, 1/8, 1/8$ respectively. What is the average number of bits per symbol for the Huffman code generated from above information?

  1. $2$ bits per symbol
  2. $1.75$ bits per symbol
  3. $1.50$ bits per symbol
  4. $1.25$ bits per symbol
in Algorithms recategorized by
4.2k views

3 Answers

3 votes
3 votes
Best answer

ans is B 

selected by

2 Comments

Can you please explain? how seven bits will come?
0
0
why only 2 bits for value 1/8 ?
0
0
1 vote
1 vote



 59
Bits required per symbol:
A – 0 (1 bit)
B – 10 (2 bit)
C – 110 (3 bit)
D – 111 (3 bit)
Average number of bits per symbol = 1 * 1 / 2 + 2 * 1 / 4 + 3 * 1 / 8 + 3 * 1 / 8 = 7 / 4 = 1.75.
So, option (B) is correct.

0 votes
0 votes

Ans is B

Bits required per symbol: 
A – 0 (1 bit) 
B – 10 (2 bit) 
C – 110 (3 bit) 
D – 111 (3 bit) 
Average number of bits per symbol = 1 * 1 / 2 + 2 * 1 / 4 + 3 * 1 / 8 + 3 * 1 / 8 = 7 / 4 = 1.75. 
So, option (B) is correct.

https://www.youtube.com/watch?v=MXq9L5lstD4

Answer:

Related questions