Question: Huffman Encoding Consider a message from an alphabet containing six symbols: = { A , B , C , D , E , F }

Huffman Encoding
Consider a message from an alphabet containing six symbols: ={A,B,C,D,E,F}. These symbols each have the following relative frequencies,
?bar(f)(A)=.25?b
ar(f)(B)=.10?b
ar(f)(C)=.15?b
ar(f)(D)=.05?b
ar(f)(E)=.10?b
ar(f)(F)=.35
a.(5 pts) What is the minimum number of bits required per symbol to construct a fixed-length encoding over this alphabet? If you transmit a message
containing 1,000,000 symbols using this encoding, how many bits do you need to encode the message?
b.(10 pts) Construct a Huffman Encoding over these symbols for a message of 1,000,000 symbols. Show each step of the process, including the partial
Huffman Trees.
c.(5 pts) How many bits are needed to transmit the message with 1,000,000 symbols using your Huffman encoding? Additionally, suppose that for some
reason the frequencies of symbols were estimated in error, and it's actually the case that ?bar(f)(D)=.35 and ?bar(f)(F)=.05. How many bits would be
required in this case, using the Huffman Encoding you determined in part b. In this case, would the fixed-length encoding be better?
Huffman Encoding Consider a message from an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!