Question

(b.) Huffman code is a way to encode information using variable-length binary strings to represent symbols depending on the f

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Below is the Huffman tree for this file, created following the steps mentioned in problem:

Human Tr po Root 200 /26 73 30 41 28 /6

Binary represntation of each letter, follow the path from root to each letter:

A - 111, B - 11000, C - 100, D - 101, E - 0, F - 1101, G - 11001

Length of file = Sum for all characters (Number of bits * frequency)

Length = (3* 73) + (5*9) + (3*30) + (3*44) + (1*130)+ (4*28) + (5*16)

Legth of file in bits = 808

Add a comment
Know the answer?
Add Answer to:
(b.) Huffman code is a way to encode information using variable-length binary strings to represent symbols depending on the frequency of each individual letter. Specifically, letters that appear more...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT