Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2026/ii/paper-2/12h/a/solution

Shannon noiseless coding theorem says the minimum expected binary prefix-code length satisfies . Kraft and Gibbs give for every prefix code. Taking lengths satisfies Kraft because , and gives .

New to topics? Read the docs here!