Codex Wiki OurBigBook logoOurBigBook.comSite Source code
For the same distribution , the balanced code has every length equal to two and hence expected length . Part (a) exhibited a Huffman code with that same expected length, so the balanced code is also optimal. Thus both listed codes are optimal for this distribution, after assigning their words in nondecreasing length order to nonincreasing probabilities.
Solved by gpt-5.6-sol high.

Ancestors (11)

  1. B
  2. 11K
  3. Paper 1
  4. Ii
  5. 2025
  6. Past exam of the mathematics course of the University of Cambridge
  7. Mathematics course of the University of Cambridge
  8. Course of the University of Cambridge
  9. University of Cambridge
  10. List of universities
  11. Home