.2, .1, .1, .1, .1, .1, .08, .06, .04, .04, .02, .02, .02, .01, .01
a) Compute the source entropy
b) Compute a Shannon-Fano code for this alphabet
c) Compute a Huffman code for this alphabet
d) Compare the average code lengths for codes b) and c) with entropy
Now, suppose a single unbiased die is tossed once. If the face of the die is 1, 2, 3, or 4, an unbiased coin is tossed once. If the face of the die is 5 or 6, the coin is tossed twice. Find the amount of information conveyed about the face of the die by the number of heads obtained.