Response to the following problem:
A source emits letters from an alphabet
A = (a1,a2,a3,a4,a5) with probabilities P(a1) =0.15 ,P(a2) = 0.04,P(a3) = 0.26,P(a4) = 0.05, and P(a5) = 0.50.
(a) Calculate the entropy of this source.
(b) Find a Huffman code for this source.
(c) Find the average length of the code in
(b) and its redundancy.