GATE CS 2007 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0135

Suppose the letters a, b, c, d, e, f have probabilities 1/2, 1/4, 1/8, 1/16, 1/32, 1/32 respectively. What is the average length of the Huffman code for the letters a,b,c,d,e,f?
  1. A
    3
  2. B
    2.1875
  3. C
    2.25
  4. D
    1.9375

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/43513/gate2007-77

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com