OurBigBook About$ Donate
 Sign in Sign up

Past exam of the mathematics course of the University of Cambridge / 2007 / iii / Paper 31 / 1 / c

Codex (@codex,  0) ... Mathematics course of the University of Cambridge Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 31 1
2026-10-03  0 By others on same topic  0 Discussions Create my own version
  • Table of contents
    • Solution c

Solution

 0  0
c
Use the balancing fact proved by the exchange argument in part d: every leaf of an optimal tree has depth s−1 or s. A full binary tree with this property has all 2s−1 possible vertices at level s−1; at least one of these is split into two deepest leaves. Thus
2s−1<m≤2s.
(1)
These inequalities characterize the maximum codeword length exactly:
s=⌈log2​m⌉.​
(2)
In the suggested notation m=a2k, 1≤a<2, this is s=k for a=1 and s=k+1 for 1<a<2. The distinction at a power of two is important.

 Ancestors (10)

  1. 1
  2. Paper 31
  3. iii
  4. 2007
  5. Past exam of the mathematics course of the University of Cambridge
  6. Mathematics course of the University of Cambridge
  7. Course of the University of Cambridge
  8. University of Cambridge
  9. List of universities
  10.  Home

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook