Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2007/iii/paper-31/1/f/solution
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 31 1 f Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
For the uniform 27-symbol model, . The uniform-source Huffman length distribution givesThus five symbols receive four-bit codewords and the other 22 receive five-bit codewords. To realize these lengths, start with all 32 binary words of length five and collapse any five disjoint sibling pairs into their four-bit parents. This leaves exactly five leaves at depth four and 22 at depth five. All source letters have the same probability, so which five letters receive the shorter codewords is arbitrary.
New to topics? Read the docs here!