Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2018/ii/paper-1/3h/solution
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 1 3H Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Let a memoryless source have probabilities , and let a uniquely decodable -ary code have word lengths and mean length . The Shannon source coding theorem statesand that some prefix code satisfies
For the lower bound, the Kraft inequality gives . Set . The Gibbs inequality, or nonnegativity of relative entropy, givesTherefore .
New to topics? Read the docs here!