in GATE retagged by
850 views
2 votes
2 votes
Consider the following set of messages with their frequencies:
 $$\begin{array}{|c|c|c|} \hline \textbf{Message} & \textbf{Frequency}  \\ \hline A & 50\: \text{million}  \\ \hline B & 10\: \text{million}   \\ \hline C& 24\: \text{million} \\ \hline  D & 36\: \text{million}   \\ \hline \end{array}$$

The percentage improvement for total binary stream transmission using Huffman Encoding over simple encoding is _______ %.
in GATE retagged by
by
850 views

2 Comments

Normaly we would need (50+10+24+36)*2 = 240 bits

After huffman,

we would need (1*50+3*10+3*24+2*36) = 224 bits

improvement % = (240-224)/240 *100 = 6.66%

why is the ans 5 % ?
1
1
the answer should be 6.6666%
2
2

1 Answer

6 votes
6 votes
Best answer
In simple encoding  (50+10+24+36)*2 = 240 bits

After Huffman encoding ,

 (1*50+3*10+3*24+2*36) = 224 bits

%  improvement  is = (240-224)/240 *100 = 6.66%
selected by

2 Comments

@Bikram sir,

In simple encoding, on what basis and how u r multiplying with 2???
3
3
Two bits required to represent each message type.
2
2
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

64.3k questions

77.9k answers

244k comments

80.0k users