Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 3 4G Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 3 4H Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 11 4 Solution Created 2026-10-03 Updated 2026-10-07
The key is to widen the forbidden intersection while controlling a product of densities. We first derive the two ingredients, with constants explicit enough to yield the numerical base in the question.
For two nonempty set families on coordinates, suppose every cross-intersection has size greater than an integer . Their complements are separated from by Hamming distance greater than . Let be the least integer with , where . Iterating Harper inequality, and using , shows that its radius- neighbourhood has at least vertices. The complementary set family is disjoint from that neighbourhood, soFor the needed weaker neighbourhood bound follows simply by taking the ball around its single vertex; define . If a displayed index forces a full neighbourhood, the other set family would be empty, already excluded.
The provided binary entropy function bound givesIndeed, for this follows from , obtained by integrating ; for larger use . The two nonnegative deficits in the preceding product have sum at least . Their squared sum is at least . Thus the cross-intersection bound from cube separation is
Now suppose a pair of set families forbids every cross-intersection in . Put , and fix . Split both set families by the last coordinate. The following three replacements preserve the indicated forbidden intervals on coordinates:For example, in the third row the same second set has witnesses in both sections of , so its intersection with a first-section member must avoid both shifted intervals; their union is .
If the first replacement increases the density product by a factor at least , use it. Otherwise interchange the names of the two set families if needed so thatIf the second replacement gives a factor at least , use it. If neither does, use the third. To bound its loss, putWe have , , and consequently . The third replacement's product factor isSince , its minimum on is at an endpoint. ThereThus each step either gains a factor without increasing interval width, or widens the interval by one and loses at most a factor . This is the forbidden-intersection density increment, with its loss proved rather than hidden in an asymptotic error.
Start with and . Stop when or . Dimension drops at every step. The positive lower product factors ensure that a nonempty starting pair stays nonempty; it therefore cannot reach a forbidden interval containing all . Write for the number of widening steps, for the number of gain steps, and putThe terminal density product satisfies . Always , since a widening step lowers by one.
If the procedure stops at , the terminal forbidden interval is . Every cross-intersection is therefore greater than , and the cross-intersection bound from cube separation gives . At least steps were needed to lower to zero, so . Since ,If instead the procedure stops at , the number of steps is at least , so . Using and givesThese estimates hold for every nonempty pair forbidding the original intersection, with in our application.
For , the two positive exponential decay rates are, respectively,Both exceed . Hence andThe empty set family is immediate. This proves the numerical bound directly from Harper inequality and the supplied binary entropy function estimate.
For , the identical forbidden-intersection density increment applies. For , use in the first stopping estimate. Its decay rate is at leastFor the second stopping estimate, gives the still stronger rate . At the floor is exact and the first rate is .
It remains to handle without silently absorbing a constant into an exponential. Then is zero or one. Fix an -set . The sets containing are paired as and , and each pair intersects in exactly . Since , these are distinct pairs, and at most one member of each belongs to . ThereforeFor , the forbidden self-intersection is zero, so the set family is empty. We have proved the claimed base for all dimensions in the second case as well.
Finally, the same base is not forced by a forbidden intersection near . Take and every subset of size at most . Every intersection has size at most , below , including self-intersections. By pairing complementary sets this set family has more than members, whereassince . Thus it is a large family avoiding a high intersection, and it contradicts the proposed bound.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 10 3 Solution Created 2026-10-03 Updated 2026-10-07
Identify the hypercube graph with , joining two sets when their symmetric difference has size one. Write for the closed graph neighbourhood of , and for its radius- neighbourhood in Hamming distance. In the simplicial order on the discrete cube, smaller sets come first, with lexicographic order within each rank: the smallest differing coordinate belongs to the earlier set. Let be the first vertices in this order. Harper theorem isEquivalently, minimizes the external vertex boundary at fixed size. We will also obtain for every integer .
Here is a complete proof by simplicial section compression. First note two properties of the simplicial order on the discrete cube. Its restriction to either face obtained by fixing one coordinate is the corresponding order on the smaller hypercube graph. Also, the closed graph neighbourhood of an initial segment is an initial segment. To verify the latter, a nonempty initial segment contains every level below its last level , and a lexicographic prefix at level . For , its closed graph neighbourhood contains every set of size at most , and its only further members are the upper shadow of . An -set lies in this upper shadow exactly when its lexicographically earliest -subset lies in . That earliest subset is obtained by deleting the largest element. These earliest subsets vary monotonically in lexicographic order, so the upper shadow is another lexicographic prefix. For , the closed graph neighbourhood of is the union of levels zero and one. The empty initial segment causes no exception.
Induct on , with immediate. Fix a coordinate and write the sections of as , deleting from the latter section. Replace them by the initial segments with , . The sections of the old closed graph neighbourhood areBy induction their sizes are at least and , respectively. These are exactly the sizes of the new sections, because both sets in each new union are initial segments and hence nested. Thus simplicial section compression preserves size and never enlarges the closed graph neighbourhood.
Repeatedly compress any section that is not already an initial segment. Every change strictly reduces the sum of the global simplicial positions of the included vertices. This nonnegative integer decreases only finitely often, so the process ends at a family whose sections in every coordinate are initial segments. If itself is an initial segment, the induction is complete. Otherwise choose the earliest absent vertex and the latest present vertex , with . They cannot agree in any coordinate: agreement would put them in one compressed section, where an earlier absent vertex cannot precede a later present one. Hence . Nor can a vertex lie between them: if is present, pairing it with would force ; if absent, pairing it with would force . Thus are consecutive, and is obtained from by replacing its last vertex with the next vertex .
There are only two possibilities for these terminal families for simplicial section compression. If , consecutiveness makes the last -set and the first -set. Complementarity forces , and . For , the corresponding contains all sets of size at most except , and additionally . Every -set has at least two -subsets, so at least one belongs to . The missing has a -subset in . Consequently contains every set of size at most , which is exactly .
If , then . Since are complementary, the smaller one contains coordinate . Consecutiveness forces to be the last -set containing , and the first -set avoiding :The initial segment consists of all sets of size less than and all -sets containing . Its closed graph neighbourhood contains all sets of size at most and all -sets containing . For , each such -set has -subsets containing , so removing only leaves one in . All sets of size at most are still in , because all levels below belong to . Hence again . For , the two families are related by exchanging coordinates and both have the whole as their closed graph neighbourhood. These comparisons finish the induction and prove Harper theorem.
For the radius- version, repeatedly use the one-step result. At each step the comparison family remains an initial segment, and its closed graph neighbourhood is monotone in its size. If , applying Harper theorem to therefore gives . Induction on proves the asserted extension.
A Lévy family of graphs has vanishing concentration of measure functions after distances have been scaled by the graph diameter. More explicitly, for connected finite graphs of diameter , use normalized graph distance and uniform probability measure. For every fixed , requireFor this normalization is normalized Hamming distance , since its diameter is .
If , the corresponding initial segment contains the Hamming ball about of radius . The radius- version of Harper theorem impliesUse the precise Hoeffding inequality for . One can also derive this estimate directly: the moment-generating function of is ; the exponential Markov inequality followed by minimization at gives the bound. With , we have . Thus, whenever ,This proves that the hypercube graphs form a Lévy family of graphs. The stronger fixed-positive-mass formulation follows as well. For any , choose with . The Chebyshev inequality for , whose variance is , makes the Hamming ball of radius have fewer than vertices. An initial segment of size at least contains that ball. Enlarging by and using the same Hoeffding inequality gives a complement proportion tending to zero uniformly over all such . The normalization matters: with unscaled unit Hamming distance, cubes do not satisfy the metric version at every fixed radius; for a radius below one, a half-cube has no enlargement.
Equality in Harper theorem does not determine a down-set up to isomorphism. In , takeThis is a down-set of size nine. Its closed graph neighbourhood contains every set of size at most two, because all singletons belong to . Every triple contains an edge of the four-cycle among the listed pairs, so every triple also belongs to . The four-element set does not. Hence .
The size-nine simplicial order on the discrete cube initial segment is all sets of size at most one together with the pairs . Every triple contains one of these pairs, and the four-element set is again absent from its closed graph neighbourhood. Its neighbourhood therefore also has size , proving extremality of . Nevertheless the induced graphs are not isomorphic: in , the empty set has degree four, the four singletons have degree three, and the four pairs have degree two. The initial segment has two vertices of degree four, namely and . Since a graph automorphism preserves induced degree of a vertex, no automorphism of the cube can carry one family to the other. This gives nonunique down-set extremizers for Harper theorem even under the stronger test of induced graph isomorphism.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 36 3 Solution Created 2026-10-03 Updated 2026-10-06
The Hoeffding inequality states that if are independent random variables with almost surely, then for The same bound holds for the lower tail. Consequently the two-sided tail is at most twice this bound. When all ranges have length zero, the sum is deterministic and every positive tail probability is zero.
We construct an exponential packing of a Hamming cube. Choose an inclusion-maximal separated set in with separation at least for the Hamming distance. It exists by a finite greedy procedure: keep adding any vertex at distance at least from all selected vertices until none remains. By maximality, every vertex is within distance strictly less than of some member of . This is the principle that maximal separated sets give covers.
For a uniformly random vertex and any fixed vertex , the mismatch indicators in different coordinates are independent Bernoulli random variables with success probability . Hence has the binomial distribution with parameters . The lower-tail Hoeffding inequality givesThus the Hoeffding lower-tail bound for Hamming balls shows that every strict-radius ball has at most vertices. Using a strict ball handles noninteger without changing the required separation.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 1 3G Solution Created 2026-09-24 Updated 2026-10-06
For a block code, the minimum distance of a code is the minimum Hamming distance between distinct codewords, where Hamming distance counts positions in which two equal-length binary strings differ. We use equal-length codewords, so the fact that the codomain allows arbitrary finite strings creates no ambiguity. Minimum distance means every two distinct codewords differ in at least positions and some pair differs in exactly .
Changing at most bits cannot turn a codeword into another codeword. Testing membership therefore detects every such nonzero error. For , suppose a received word lies within distance of two codewords. The triangle inequality would put their mutual distance at most , a contradiction. Hence the radius- Hamming balls are disjoint and nearest-codeword decoding corrects all errors of weight at most .
For an alphabet of size , start with and the standard unit vectors in . Their minimum distance of a code is one. Repeat every coordinate times; every distance is multiplied by , so the resulting code has minimum distance of a code exactly . A one-letter alphabet has no pair of distinct codewords and therefore no finite minimum distance of a code under this definition; the construction concerns the usual nontrivial coding situation.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 109 2 i Solution Created 2026-10-03 Updated 2026-10-06
Identify the Boolean hypercube with the subsets of . For a family , write for its closed vertex neighbourhood, consisting of the family and all vertices at Hamming distance one from it. Order subsets first by increasing size and, within a fixed size, use lexicographic order: at the smallest coordinate on which they differ, the set containing that coordinate comes first. This is the simplicial order on the discrete cube. Harper's theorem states that if is its initial segment of size , thenThus simplicial initial segments minimize the external vertex boundary for each prescribed family size. The closed-neighbourhood and external-boundary formulations are equivalent because . No edge boundary is involved in this assertion.
We now give the deduction Harper theorem implies the Kruskal-Katona theorem, keeping track of the two different orders. For a family of -sets with , adjoin every smaller set:Its closed vertex neighbourhood is exactlywhere is the upper shadow. Applying Harper theorem to shows that, among -uniform families of fixed size, the lexicographic initial segment minimizes the upper shadow: all the lower-level contributions to the two neighbourhood sizes are identical.
To convert this into a statement about the lower shadow of a -uniform family , take and map each member to , where reverses the ground-set coordinates. Complementation changes lower shadows to upper shadows, and the coordinate reversal preserves their sizes. Moreover, the resulting lexicographic order corresponds exactly to colexicographic order on the original -sets: precedes in colexicographic order precisely when the largest element of lies in . After complementation and reversal, the smallest differing coordinate lies in the image of , as required for the stated lexicographic order. Hence a colexicographic initial segment minimizes the lower shadow, which is the Kruskal-Katona theorem. The cases and are immediate and need no adjoining construction.
For its usual numerical form, write the unique greedy binomial representationThen the Kruskal-Katona theorem saysHere is why the shadow of the colexicographic initial segment has exactly that size. Its first block consists of all -sets in . If any members remain, they have the form , where runs through a colexicographic initial segment of -sets. The lower shadow consists of all -sets in , together with adjoined to the lower shadow of that remainder. These two blocks are disjoint. Recursing gives precisely the displayed sum. For , both the initial segment and its shadow are empty.
The Erdős-Ko-Rado theorem states that an intersecting family , with , satisfiesThe bound is attained by all -sets containing one fixed element. For the proof Erdős-Ko-Rado theorem from shadows, take complements to obtain an -uniform family of the same size, and let be its rank- lower shadow. Every member of is disjoint from some member of , so . Iterating the Kruskal-Katona theorem bounds below by the rank- shadow of the colexicographic initial segment of size . This iteration is valid because lower shadows of colexicographic initial segments are again colexicographic initial segments, as the preceding block description shows.
If , that initial segment contains all -sets in and at least one further set containing . Since , its rank- shadow contains every -set in and at least one -set containing . Thus , implyingcontrary to their disjointness. This proves the bound. If , all -sets intersect and the trivial maximum is instead .
For an intersecting family in a product alphabet, label the alphabet by . Partition the words into the classesEach class has words, and any two distinct words in it disagree in every coordinate. An intersecting family therefore contains at most one word per class. There are classes, and fixing the first coordinate gives an intersecting family of that size. Consequently the exact maximum isFor this just says that the single word may be included.
Finally, for a weakly intersecting family in a product alphabet, associate to each word its support . The occurring supports form an intersecting family of nonempty subsets, and the fibre over support has words. Put . When , , and a support family can contain at most one of each complementary pair . For odd , the larger support in each pair has size greater than , soAll supports of size greater than are mutually intersecting, so taking every word over those supports achieves this bound. Thus the required extremal family is the strict-majority support family, with sizeThis is the weighted intersecting family bound on an odd Boolean lattice. For , strict inequality between the complementary fibre weights forces this extremal family to be unique. For , it is a largest family but need not be the only one; for example, all supports containing one fixed coordinate also attain the same size. For , no word has a nonempty support, so the maximum is zero, again agreeing with the formula.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 1 3G Solution Created 2026-09-24 Updated 2026-10-05
The ideal observer performs maximum a posteriori decoding: for received word , it maximizes , equivalently . Maximum-likelihood decoding maximizes the latter conditional likelihood alone. Minimum-distance decoding minimizes the Hamming distance . Ties may be resolved arbitrarily among maximizers.
For independent errors in a binary symmetric channel,For , its ratio on increasing the distance by one is . Thus maximum-likelihood decoding and minimum-distance decoding select exactly the same codewords. At the allowed endpoint , they agree on a possible observation ; impossible observations have zero likelihood for every codeword, so an arbitrary maximum-likelihood tie rule need not agree with minimum distance. This qualification is needed for the literal assumption .
For the specified observation, the Hamming distances from 000 and 111 are two and one. Their likelihoods are and , respectively. After multiplying by the priors, their joint probabilities are and , so their posterior probabilities are and . Therefore
Past exam of the mathematics course of the University of Cambridge 2018 ia Paper 4 6E Solution Created 2026-09-24 Updated 2026-10-03
The Hamming distance satisfies the triangle inequality coordinate by coordinate: if , then or . Summing these indicator inequalities proves the claim. A word at distance exactly from is obtained by choosing the coordinates to flip, so
Past exam of the mathematics course of the University of Cambridge 2018 ib Paper 2 20H iii Solution Created 2026-09-24 Updated 2026-10-03
Measure vertices by their Hamming distance from the target and let be the expected hitting time when that distance is . We already know . From distance one, one of the coordinate flips reaches the target and the other flips move to distance two. First-step analysis therefore givesFor ,
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 2 3H Solution Created 2026-09-24 Updated 2026-10-03
The binary symmetric channel with crossover probability has channel matrixMaximum-likelihood decoding chooses a codeword maximizing , while minimum-distance decoding chooses one minimizing the Hamming distance . For a block of length sent through a binary symmetric channel,When , the final factor decreases strictly with the distance. Thus maximum-likelihood and minimum-distance decoding agree.
For the length-three repetition code , majority decoding is wrong exactly when at least two bits flip. Therefore
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 215 3 i Solution 2026-10-03
Couple two noisy voter model chains by choosing the same update vertex, the same refresh coin and refreshed spin, and, for a voter update, the same chosen neighbor. Let be their Hamming distance. If is -regular, conditioning on the current disagreement set givesbecause every disagreeing vertex is counted in exactly neighbor sets. ThereforeThe coupling inequality for total variation and give
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 1 11G Created 2026-09-24 Updated 2026-09-29
A binary linear code of length and rank is a -dimensional vector subspace . Its minimum distance is the least Hamming weight of a nonzero codeword, equivalently the least Hamming distance between distinct codewords.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 2 3G Solution Created 2026-09-24 Updated 2026-10-03
Let and let be the parity-check matrix whose columns are the distinct nonzero vectors of the finite field vector space . The binary Hamming code isA perfect code has Hamming balls of radius about its codewords partitioning the whole ambient space, where is its minimum Hamming distance of a linear code.
No column of is zero and no two columns agree, so has no word of Hamming weight one or two. Three suitable columns sum to zero, so . For any received word , its syndrome is either zero or is the unique column of equal to that syndrome. In the first case ; in the second,so is at Hamming distance one from a codeword. Uniqueness follows from . Thus the radius-one balls partition , and the code is perfect.
For , the dual code is the binary simplex code of length seven. Every nonzero dual word evaluates a nonzero linear functional on the seven nonzero vectors of , and exactly four of those evaluations are one. Hence every nonzero word of has weight