Question: Following are the codes generated from a text for a Huffman tree construction. You are also given the following information: The frequency of each leaf
Following are the codes generated from a text for a Huffman tree construction.
You are also given the following information:
The frequency of each leaf node except and is
The left and right child nodes of the root have frequencies and respectively.
Now answer the following questions.
CO a Suppose in a Huffiman tree, the distances from the root to the pair of leaves denoting the
letters and are and respectively, which letter between them is more frequent in the
original text? Just mention the letter.
b Draw the Huffiman tree from the given coding table above.
c Continuing on what are the frequencies of and in the original text? Just mention
the frequencies.
Your lazy friend, Tom, used a very simple encoding method for compressing a text file. The text
file contains the string : Sudden Hello. He used a constant number of bits for encoding each of the
distinct characters in this text. The constant is ceill in this case. On the other hand, you
have compressed the text file using your own huffiman tree from
d Mention how many bits each of the characters in Tom's encoding scheme contain.
e Compare between the number of bits needed to decode the abovementioned string using
your friend's scheme and your Huffiman tree from Qb
handwritten answer only
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
