GATE Computer ScienceModerateGATE CSE · UGC NET

Characters with frequencies 5, 9, 12, 13, 16, 45 are Huffman-coded. What is the total number of bits needed to encode the whole text (sum of frequency × code length)?

  1. A. 233
  2. B. 224
  3. C. 218
  4. D. 252

Correct answer: B. 224

Successive merges produce 14, 25, 30, 55, 100; the sum of all merged weights is 224.

More Algorithms questions

Exams that ask this topic