Computer Science EngineeringVery hard

Huffman coding is applied to frequencies 5, 9, 12, 13, 16, 45. What is the total weighted path length (sum of internal node weights)?

  1. A. 198
  2. B. 244
  3. C. 224
  4. D. 200

Correct answer: C. 224

Merges produce 14, 25, 30, 55 and 100, and 14+25+30+55+100 = 224.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic