Paper 1, Section I, I
Part II, 2020
(a) Briefly describe the methods of Shannon-Fano and of Huffman for the construction of prefix-free binary codes.
(b) In this part you are given that , and .
Let . For , suppose that the probability of choosing is .
(i) Find a Shannon-Fano code for this system and the expected word length.
(ii) Find a Huffman code for this system and the expected word length.
(iii) Verify that Shannon's noiseless coding theorem is satisfied in each case.