Communication Theory, Mathematics Part B and the corresponding joint schools; Thursday 12 June 2008, 9.30am–11.15am. The complete three-page source and intact cover are preserved in a private editable transcription from original Part B bundle pages 127–129, supplied through the past-papers disclosure. No exact worked-answer advertisement was found in the bounded availability check. All logarithms in these solutions are to base two unless another base is shown.
Write , , and . In bits the mutual information is
Terms with zero joint probability contribute zero. On its positive support apply with :
Equality requires equality in every logarithmic inequality and no product mass outside the joint support, hence everywhere. Conversely that factorization makes every term zero. Thus mutual information is nonnegative and vanishes exactly for independence. For countable alphabets the same conclusion follows from the relative-entropy inequality, allowing the value .
The entropy chain rule gives
Conditional entropy is nonnegative, so . For finite entropies, if , equality holds exactly when , meaning is a function of almost surely. If , interchange the variables. When their entropies are equal, equality requires both functional relations. Zero conditional entropy has this characterization because each conditional probability distribution must be a point mass.
The conditional output distributions are permutations of the same triple, so both conditional entropies equal
With input probability , the three output probabilities are , , and . Therefore
Differentiating, the constant terms cancel because :
Thus there is a unique maximum. Its stationary equation reduces to , whose root in is
The other root is negative; strict concavity proves this is the global maximum.
For a finite probability distribution,
with . If the positive support has size , apply the given strict Jensen inequality to the random variable :
Equality requires and constant almost surely, so all probabilities are . Conversely the uniform distribution attains this bound. Thus , with exactly that equality case.
Define . The joint entropy identity follows by writing and expanding its logarithm. If , then and , giving the desired decomposition.
Group the first two symbols together and keep the third separate. If , the identity becomes
where . Binary entropy is at most one, with equality precisely at . Hence
Equality holds exactly when . When , , so the same conclusion holds at the boundary.
The capacity of a discrete memoryless channel is , in bits per channel use. For the binary symmetric channel with crossover probability , and . A uniform input makes the output uniform, attaining
For the binary erasure channel, let be its erasure indicator. This flag is visible in the output and independent of the input. If there is no erasure, the output reveals the input; otherwise it reveals nothing. Consequently
again attained by a uniform input. These formulas include crossover probabilities zero and one, and complete erasure.
Let be the original input, the output of the first channel, and the final output. The independent erasure flag is observable from . The mutual information chain rule, conditioning on that flag, gives
The same uniform input maximizes as in the binary symmetric channel. Thus
This scaling works because the erasure event is independent of both the input and the first channel noise.
Unique decipherability makes the map from to the concatenated binary string injective. Entropy is unchanged by an injective relabelling, and memorylessness gives independence, hence
Given , the string has at most possibilities. The entropy bound for finite alphabets therefore gives . Averaging,
The random length cannot simply be discarded: it can also carry information. Let be the maximum codeword length, finite since the alphabet is finite. Since is a function of and takes at most values,
Divide by and let . This proves . The conclusion also covers a deterministic source; the source's lowercase in its final expectation denotes the random source letter.
The entropy is
To construct a Huffman code, work with integer weights . Merge the two twos to make four. Of the remaining weights , merge three with the original four to make seven, and merge the new four with five to make nine. Finally merge seven with nine. Resolving the tie in this way gives, for example,
This is a prefix code and Huffman's optimality theorem makes it optimal. Its expected length is
Different choices at a tied merge can give different optimal codewords with the same expected length.
Figure 1.
An optimal five-symbol Huffman tree
. Edge labels give the binary digits, leaf labels give the source symbols and their probabilities, and interior labels give total descendant probability. Details.
Let . The Huffman encoder emits an average of binary digits per minute. Shannon's noisy-channel coding theorem states that for a discrete memoryless channel of capacity , every information rate strictly below bits per use is achievable with error probability tending to zero as block length grows; rates above are not achievable for unrestricted messages.
Thus a channel code carrying the Huffman bitstream reliably with buffering and arbitrarily long blocks can be chosen whenever
The strict inequality supplies positive coding and buffering slack. Huffman's expected-length bound is for a nontrivial finite source. Therefore the simpler bound is sufficient without knowing its exact Huffman lengths.
Distinguish this bitstream construction from the absolute source-channel limit. The noiseless source coding theorem permits long source blocks to be compressed to any rate above bits per source symbol, with arbitrarily small overhead. Together with channel coding, this gives the sharper limiting requirement ; is impossible by the source-channel converse. Further compression can exploit redundancy remaining in a single-symbol Huffman stream, so need not be the universal minimum channel symbol rate. At a positive-entropy source cannot be sent reliably at a finite rate.
A binary prefix code assigns each source symbol a distinct finite binary word, with no assigned word a prefix of another. It is instantaneous because a decoder can identify the symbol as soon as its last digit arrives, without reading digits from the next word. Such a code is optimal when it minimizes
among all binary prefix codes for that source distribution. Symbols of zero probability may be removed from the optimization.
Make a rooted binary tree with an edge labelled zero for the first branch and one for the second branch at each interior node. Put each source symbol at the leaf reached by following the successive digits of its codeword. The prefix property ensures no assigned word ends at an ancestor of another assigned word.
The route of a codeword is its root-to-leaf path; its length is the number of edges on that path, equal to the number of binary digits in the word. For an optimal tree with positive leaf probabilities, every interior node has two children: a node with just one child could be contracted, shortening all words below it and strictly reducing the expected length. The diagram in the earlier Huffman calculation is one such full binary tree.
The redundancy is , measured in bits per source symbol. Write for the total mass passing through interior node . Counting each codeword's length as one for each interior node its route visits gives
The entropy can be split into the conditional binary decisions along that route. Algebraically each node contributes
Summing telescopes: each non-root interior mass appears once positively as a parent and once negatively as a child. The root term is and the remaining leaf terms sum to . Hence
Subtracting this identity from the expected-length identity proves
Thus redundancy is the sum of the probability-weighted imbalances of the binary branch decisions. Nodes with no mass contribute zero by continuity. The formula holds for every full prefix tree, even without optimality.

Articles by others on the same topic (0)

There are currently no matching articles.