Assignment:
Design a Huffman code for an information source with probabilities
p = {0.l, 0.05, 0.21, 0.07, 0.02, 0.2, 0.2, 0.15}
Determine the efficiency of the code by computing the average codeword length and the entropy of the source.
Provide complete and step by step solution for the question and show calculations and use formulas.