Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/iii/paper-224/2/b/solution

The code-distribution correspondence starts from the Kraft inequality. For codeword lengths put
Conversely, a probability mass function determines ideal lengths , up to integer rounding. For the source law ,
using nonnegativity of Kullback-Leibler divergence and .

New to topics? Read the docs here!