Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2021/iii/paper-224/4/d/solution

For the uniform distribution, the code in part c has
because every summand is at most and at least one is strictly smaller. For , the explicit code , , has mean length .

New to topics? Read the docs here!