Question: Q 4 . Assume that the numbers given below represent counts of letters in the hundreds from a file. For example, in the file there
Q Assume that the numbers given below represent counts of letters in the hundreds from a file.
For example, in the file there will be exactly occurrences of the letter a
occurrence of the letter c etc. points
a: c: d: e: o: m: s: t: u:
a What is an optimal Huffman code based on the following set of frequencies?
Draw the tree. Show your work at every step.
Fill in the table on the right the Huffman encoding for each letter.
We encode the file using the Huffman codes produced above. How much memory will the file require with this encoding?
b Fixedlength encoding:
Fill in the table the fixedlength encoding for each letter.
What will be the file size when the fixedlength encoding is used?
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
