GATE CS 2017 Set 1 – Question 39

Numerical answer 2 marks Question 39 2017

Question 39

NAT 2 marks · no negative Algorithms

A message is made up entirely of characters from the set \(X = \{P, Q, R, S, T\}\). The table of probabilities for each of the characters is shown below.

CharacterProbability
P0.22
Q0.34
R0.17
S0.19
T0.08
Total1.00

If a message of 100 characters over \(X\) is encoded using Huffman coding, then the expected length of the encoded message in bits is ______.

Answers and explanations are free — they just need an account.

Where this question comes from

Source: GATE 2017 Computer Science and Information Technology, Set 1, Q39 (question number approximate)