

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Friday 1 June 2007 9.00 to 11.
Attempt THREE questions. There are FOUR questions in total.
The questions carry equal weight.
Cover sheet None Treasury Tag Script paper
1 Consider an alphabet with m letters each of which appears with probability 1/m. A binary Huffman code is used to encode the letters, in order to minimise the expected codeword-length (s 1 +... + sm)/m where si is the length of the codeword assigned to letter i. Set s = max[si : 1 6 i 6 m], and let nbe the number of codewords of length.
(a) Show that 2 6 ns 6 m.
(b) For what values of m is ns = m?
(c) Determine s in terms of m.
[Hint: You may find it useful to write m = a 2 k^ where 1 6 a < 2.]
(d) Prove that ns− 1 + ns = m, i.e. any two codeword-lengths differ by at most 1.
(e) Determine ns− 1 and ns. (f) Describe the codeword-lengths for an idealised model of English (with m = 27).
2 Consider an information source emitting a sequence of letters (Un) which are inde- pendent identically distributed random variables taking values 1,.. ., m with probabilities p 1 ,.. ., pm. Let u(n)^ = (u 1 ,... , un) denote a sample string of length n from the source. Given 0 < < 1, let M (n, ) denote the minimal size of a set of strings u(n)^ of total probability at least 1 − . Show the existence of the limit
lim n→∞
n
log 2 M (n, )
and determine its value. Comment on the significance of this result for coding theory.
3 State and prove the Hamming and Gilbert–Varshamov bounds for codes. State and prove the corresponding asymptotic bounds.
Information and Coding