Assignment:
[Huffman Coding] Design a Huffman code for a source with alphabe x = [x1 ,x2 , ...., x9] and corresponding probability vector
p = (0.2,0.15,0.13,0.12,0.1,0.09,0.08,0.07,0.06)
Find the average codeword length of the resulting code and compare it with the entropy of the source.
Provide complete and step by step solution for the question and show calculations and use formulas.