Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 30 3 c Solution Created 2026-10-03 Updated 2026-10-14
To correct every pattern of errors by nearest-codeword decoding, it suffices to have minimum Hamming distance : the corresponding radius- Hamming balls are disjoint. For , the relative distance tends to , so the asymptotic Gilbert–Varshamov bound guarantees code rate at least in the limit. Therefore its immediate strict-rate guarantee isThe binary entropy is strictly increasing from zero to one on , since on . Let denote the inverse on this interval. The asymptotic condition becomes
There is also a finite-length boundary refinement for the precise requirement of correcting errors. If , then each weight for is at least . Expanding gives the entropy bound for a Hamming ballThe case follows directly from . Taking and using monotonicity of the binary entropy, the Gilbert–Varshamov bound yieldsThus the worst-case correction guarantee from the Gilbert–Varshamov bound even includes for the exact radius , with the number of messages rounded to an integer when necessary. No positive-rate guarantee of this form is obtained for ; one must not extend the increasing-entropy calculation past . Failure of this sufficient bound does not rule out better codes.
By contrast, the Shannon second coding theorem gives vanishing error probability on the binary symmetric channel wheneverThe factor of two comes from demanding disjoint correction balls for every error pattern of a prescribed weight. This is a worst-case distance requirement, and the Gilbert–Varshamov bound is itself only a sufficient existence bound. The Shannon second coding theorem controls the probability of decoding failure for the random channel; rare bad patterns may remain.
Finally, the number of actual errors has binomial distribution with mean . Correcting exactly its mean does not itself imply error probability tending to zero. To get that conclusion from the distance construction when , choose with and , and correct errors. The weak law of large numbers then makes the probability of exceeding the correction radius tend to zero.
Binary symmetric channel capacity and Gilbert–Varshamov worst-case correction rate
. Details. 