Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2007/iii/paper-31/1/e/solution

A full binary tree has Kraft sum one. For example, place mass one at the root and divide each internal vertex's mass equally between its children; a leaf at depth receives , and the total mass on leaves remains one. Using part d gives the two equations
Multiplying the second equation by and subtracting the first gives the uniform-source Huffman length distribution
If , the first number is zero and every codeword has length . Otherwise both levels occur. The corresponding mean length is .

New to topics? Read the docs here!