UGC NET Paper 2 (Computer Science)Very hard

For symbol frequencies 5, 9, 12, 13, 16, 45 a Huffman code has a total weighted path length (encoded bits) of:

  1. A. 224
  2. B. 210
  3. C. 235
  4. D. 200

Correct answer: A. 224

Merges cost 14 + 25 + 30 + 55 + 100 = 224; code lengths are 1 for 45, 3 for 12, 13, 16 and 4 for 5 and 9.

More UGC NET Computer Science and Applications questions

Exams that ask this topic