Past exam of the mathematics course of the University of Cambridge 2007 ii Paper 1 11G Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 3 4G Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2009 ii Paper 3 4H 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 2011 ii Paper 3 4G Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 67 2 b Solution Created 2026-10-03 Updated 2026-10-07
For the three-bit majority function, the pair products count how many pairs of input bits are both one. Their sum is zero at Hamming weights zero and one, one at weight two, and three at weight three. Subtracting twice the triple product corrects the last value. HenceThis is a multilinear polynomial of degree three, and its top coefficient is nonzero. Uniqueness of the Boolean multilinear polynomial excludes a degree-two alternative. The polynomial method for quantum query lower bounds therefore yields , and the integer number of queries gives
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 59 4 a Solution Created 2026-10-03 Updated 2026-10-07
A decision tree queries individual input bits, chooses subsequent queries from previous answers and labels each leaf with an output. Its decision-tree depth is the largest number of queries on any root-to-leaf path; is the least such depth over trees computing . An evasive Boolean function on bits has .
Remove repeated queries along any path, since their answers are already known. A leaf at depth fixes bits and leaves at least one bit free. The inputs reaching it form a subcube on which is constant, say . Its contribution to the alternating sum isHere is the Hamming weight. The leaf subcubes partition the input cube, so adding their contributions provesThe contrapositive is the alternating-sum criterion for decision-tree evasiveness: a nonzero alternating sum forces all bits to be necessary in the worst case.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 4 3G Solution Created 2026-09-24 Updated 2026-10-06
Work over the finite field . Reduce polynomials modulo , so their monomials are square-free. The binary Reed-Muller code consists of the evaluation vectors of polynomials of degree at most at all points of , in a fixed order. This is a linear code of length and dimension , for . Square-free monomials give independent evaluation functions, as follows inductively by splitting according to the last variable.
The minimum Hamming distance of a linear code equals its least nonzero Hamming weight. The result isHere is the repetition code, while is the full binary vector space and has distance one. For the induction step, write , where and . Its evaluation vector is , the Reed-Muller bar-product recursion. If , its nonzero Hamming weight is at least , with the full-space endpoint treated as above. If , every position where contributes exactly one to the sum of the two weights; hence the weight is at least . The monomial is one exactly on points, attaining the bound. Degrees greater than give the same full code; the zero code at negative degree has no nonzero word whose weight could define a finite minimum.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 1 10G ii Solution Created 2026-09-24 Updated 2026-10-05
For any vector , use its Hamming weight . The stated product identity also follows directly by summing each coordinate independently:For , interchange the two finite sums with . Character orthogonality evaluates the inner sum over codewords, whereas the product identity evaluates the sum over all binary vectors. ThusMultiply by to obtain the MacWilliams identity in the paper's weight-enumerator convention:Both sides are polynomials, so equality for extends to as well; the intermediate quotient is not a restriction on the final identity.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 1 10G i Solution Created 2026-09-24 Updated 2026-10-05
A linear code of length and rank is a -dimensional linear subspace of . The Hamming weight of a vector counts its nonzero coordinates. Thus the sum of the coefficients of the weight enumerator is the number of codewords:Since the zero vector is the unique word of weight zero, . Symmetry of the enumerator therefore implies . Conversely means that the all-one vector belongs to . Translation is then a bijection of which replaces weight by , proving the polynomial symmetry. For length zero the same conclusion holds with the unique empty vector.
The dual code is , using the standard bilinear form over . If , each summand of the character sum equals one. Otherwise choose with ; replacing by permutes the summands and reverses their sign. The sum equals its own negative and must be zero. ConsequentlyThis is character orthogonality for the additive group of the code.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 109 3 i Solution Created 2026-10-03 Updated 2026-10-05
We prove the edge-isoperimetric theorem for binary initial segments by counting edges of the induced subgraph. Identify each vertex of the hypercube graph with an integer via its binary digits; the binary order on the discrete cube is increasing integer order. Let be its Hamming weight, and setA vertex in the initial segment has exactly neighbours of smaller label, obtained by changing a one to zero. Each induced edge is counted once, so an initial segment of size has induced edges.
The arithmetic ingredient is the binary digit-sum inequalityHere is a proof, including the parity cases needed for arbitrary sizes. Pair the numbers to obtainWrite and induct on , assuming . If , the claim is immediate. Otherwise the recurrences express as follows:Every pair on the right has smaller total size. The induction hypothesis bounds the right sides below by zero: the required lower bounds for the two terms are respectively , , and in the last three rows. This establishes the binary digit-sum inequality.
Now induct on to show that every -vertex subset of has at most induced edges. The zero-dimensional case is immediate. Split a set into its two coordinate sections , of sizes . By induction the edges within the sections number at most . The edges between the sections form a matching in a graph, so at most are present. HenceFinally, is a regular graph of degree , so its edge boundary in a graph satisfies . For the binary initial segment , equality holds. Therefore
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 3H Solution Created 2026-09-24 Updated 2026-10-03
The relation makes this a length-seven binary cyclic code. Since , the generator polynomial of a cyclic code givesThe polynomial itself is a codeword of Hamming weight three, so the minimum distance is at most three. A nonzero word of weight one cannot vanish at the nonzero element . If a weight-two word vanished there, then ; because has order seven and , this forces . Hence there are no nonzero words of weight below three, and
The equation gives in the finite field , and thereforeBy the root-evaluation syndrome for a cyclic code, this is the syndrome of the single error . Since , minimum-distance decoding uniquely corrects one error. Subtracting and adding agree over , so the decoded codeword is
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