GATE IT 2006 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0140

The characters a to h have the set of frequencies based on the first 8 Fibonacci numbers as follows a:1, b:1, c:2, d:3, e:5, f:8, g:13, h:21A Huffman code is used to represent the characters. What is the sequence of characters corresponding to the following code?110111100111010
  1. A
    fdheg
  2. B
    ecgdf
  3. C
    dchfg
  4. D
    fehdg

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

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/3591/gate2006-it-48

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