Question

An alphabet contains symbols A, B, C, D, E, F. The frequencies of the symbols are...

An alphabet contains symbols A, B, C, D, E, F. The frequencies of the symbols are 35%, 20%, 15%, 15%, 8%, and 7%, respectively. We know that the Huffman algorithm always outputs an optimal prefix code. However, this code is not always unique (obviously we can, e.g., switch 0’s and 1’s and get a different code - but, for some inputs, there are two optimal prefix codes that are more substantially different). For the purposes of this exercise, we consider two Huffman codes to be different if there exists a symbol for which one of the codes assigns a shorter codeword than the other code.

• Trace the Huffman algorithm and construct two different Huffman codes for the above input.

• Compute the expected number of bits per symbol (i.e., the expected codeword length) for both codes.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
An alphabet contains symbols A, B, C, D, E, F. The frequencies of the symbols are...
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