3-SAT reduction to vertex cover 2026-10-07
A polynomial-time many-one reduction represents each variable by an adjacent literal pair and each clause by a triangle in a graph. Connect each occurrence vertex to its corresponding literal vertex. A vertex cover of size must choose one literal vertex per variable and two vertices per clause, and its omitted clause vertex forces a true literal. Conversely a satisfying Boolean valuation supplies such a cover. This establishes NP-hardness of the vertex-cover decision problem from 3-SAT.
Intersecting two-element set family 2026-10-06
A pairwise intersecting family of two-element sets is contained in a star graph or in the three edges of a triangle in a graph. If two members are and a third avoids , the third must be . Every member meeting all three belongs to that triangle.
For any fixed odd length , positive triangle in a graph density forces positive density of -cycles. A Szemerédi regularity lemma partition retains a triangle in a graph of regular dense pairs after the sparse and exceptional pairs are removed. Count embeddings of a proper three-colouring of into those three clusters. The constants depend on and , not on graph order.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 12 1 Solution Created 2026-10-03 Updated 2026-10-07
Write for the balanced graph blow-up of a complete graph, with classes of size ; containment here is as a subgraph, not necessarily an induced subgraph. The logarithmic form of the Erdős-Stone theorem is: for fixed and , there are and such thatThus the guaranteed balanced part size is at least , with independent of . We prove the logarithmic Erdős-Stone theorem by a density-to-cliques step and a constructive dense clique family blow-up lemma.
First choose a fixed large enough that , where is the edge count of the Turan graph. A uniformly chosen -vertex subset has expected edge count at least . If its induced graph contains no , the Turan theorem bounds that count by . Since the count is always at most , the probability that the subset contains an -clique is at least . Double counting the incidences between such subsets and their cliques gives, for ,for a fixed and all sufficiently large . Here . This is clique supersaturation by sampling.
We now prove the needed dense clique family blow-up lemma, with the following stronger induction invariant. Given any family of at least distinct -cliques, there is a complete -partite subgraph with each class of size , containing that many pairwise vertex-disjoint transversal members of , each with one vertex in every class. Extra edges within its classes can be ignored. We may suppose . For , any singletons suffice, and we may take once is large.
For , put . Repeatedly delete every member of the current family containing an -clique whose number of extensions is at most . Each such face is processed at most once, and there are at most possible faces. At most members are deleted. The remaining family has size at least , and every face that remains has more than extensions. Its family of -faces has size at least , since each face is in at most members.
Apply the induction hypothesis to these faces. It gives a complete -partite subgraph with vertices in each class and a matching of transversal -faces from the family. Form a bipartite graph whose left vertices are the and whose right vertices are the original vertices; join to when . Every left degree exceeds .
The following common neighbourhood from bipartite density estimate is elementary. In a bipartite graph with class sizes and at least edges, averaging over left subsets of size and using convexity of the integer sequence giveswhenever . The last inequality follows by comparing the factors in the two binomial coefficients; the integer convexity follows from the nondecreasing first differences .
ChooseFor large , , so . The estimate supplies selected faces with a common extension set of size at least . This extension set is disjoint from the selected faces: a vertex in any one of them cannot extend that face. Their union has vertices in each of the old classes, with all required cross edges; choose distinct common extension vertices as a new class. Attaching one different extension vertex to each selected face also gives disjoint members of . This completes the induction, with positive constants independent of . Apply it to the clique family above and take .
The logarithmic order cannot be increased in a uniform forcing result. Put , choose strictly between and one, and take a binomial random graph. Its edge density exceeds with probability tending to one, by the variance estimate for a sum of independent edge indicators. With , the expected number of ordered embeddings of is at mostFor and , the logarithm of this bound is negative of order . Markov's inequality therefore makes the probability of any such copy tend to zero. Both events hold simultaneously for some graphs of every sufficiently large order. There are graphs meeting the density hypothesis whose largest balanced blow-up has part size . This upper bound concerns what density can force; it is not an upper bound for every dense graph, since a complete graph has much larger blow-ups.
Finally, is the square of a cycle, for . Any three consecutive vertices form a triangle in a graph. In a proper three-colouring, once the first three colours are fixed, each subsequent vertex must repeat the colour three positions earlier. Closing the cycle is possible precisely when . Conversely, repeating the three colours gives such a colouring whenever . In that case embeds in , and the density exceeds the bipartite Turan theorem threshold by a fixed amount, so the theorem forces eventually. If , the balanced Turan graphs have density at least and contain no graph of chromatic number greater than three. They give a counterexample sequence. Exactly the cycle lengths divisible by three have the required property.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 12 2 Solution Created 2026-10-03 Updated 2026-10-07
For a fixed uniform hypergraph with vertices, uniformity , and at least one edge, define its Turán density bywhere is the maximum edge count of an -free hypergraph. The limit exists: averaging the edge count over all -vertex subsets of an extremal -vertex hypergraph, with , shows that the displayed normalized extremal numbers are nonincreasing. Thus their limit is their infimum.
For hypergraph supersaturation by sampling, choose so that . The expected edge count in a uniform -vertex subset of is at least . A subset containing no copy of has at most edges, while any subset has at most . Hence at least an fraction of the subsets contain . Every particular copy of lies in exactly such subsets, so their number is at leastfor . TakeFor , the requested integer lower bound is zero; for , the calculation proves it. This positive depends only on and . If the density hypothesis is impossible there is nothing to prove. For an edgeless , every -set is already a copy and the conclusion follows directly.
For the edge-triangle objective, let be the open neighbourhood of and define its local scoreIt counts the contribution to of edges and triangles in a graph containing . If are nonadjacent, making a false twin of changes the objective by , since no edge or triangle in a graph uses both. More generally, partition vertices into false-twin classes, meaning equal open neighbourhoods. If distinct classes have no edges between them, making every vertex of a twin of a representative of changes the objective by . Choose the direction with nonnegative change.
Among graphs maximizing the objective, choose one maximizing the sum of squared false-twin class sizes. The operation cannot split any old false-twin class and merges , so it would strictly increase that secondary quantity. Therefore no two distinct classes can be nonadjacent. An objective maximizer is a complete multipartite graph. This edge-triangle symmetrization works for every real , with no assumption on its sign.
For positive part sizes , the correct multipartite formula isThe first sum in the printed intermediate formula has inconsistent indices; the edge count is the pairwise-product sum above. Fix two part sizes with sum and let be the sum of all other sizes. All terms varying with the pair have the formChoose a maximizing partition with the fewest nonempty parts. If , merging those two parts cannot decrease and reduces the number of parts, a contradiction. Therefore this coefficient is positive for every pair. If two integer sizes differ by at least two, moving one vertex from the larger to the smaller increases their product and hence , again a contradiction. All sizes differ by at most one, so a maximizer is a Turan graph. This is balancing a multipartite edge-triangle objective.
Next maximize the same polynomial on the compact simplex of nonnegative real sizes summing to , starting with at least two possible parts. Choose a maximizer with the smallest positive support. The merging argument still applies, and now varying two positive unequal sizes towards equality improves the product. Thus every positive size is for some integer . A two-part choice has value when , so . The optimum is attained at rational sizes, and thereforeOne may take the initial simplex to have coordinates, so it includes every multipartite graph obtained above; zero coordinates are discarded.
Set . Dividing the right side by givesbecause is an integer at least two. Rearranging provesEquality in the continuous calculation occurs at two or three equal parts, explaining the triangle support line between bipartite and tripartite Turan graphs.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 12 3 Solution Created 2026-10-03 Updated 2026-10-07
We prove edit-distance stability for clique-free graphs by induction on , using the symmetric difference of edge sets as the distance. For , a -free graph is edgeless, and there is nothing to change. For , choose a vertex of maximum degree , let be its neighbourhood and put . Then is -free. WriteBoth deficits are nonnegative by the Turan theorem. Since every vertex of has degree at most ,The complete -partite graph formed from an -partite Turan graph on and the new class has at most edges. Thus , and direct subtraction givesBy induction, edit into a complete -partite graph using at most changes. Delete the edges inside , and add the missing edges between and . The resulting graph is complete -partite on the same vertex set, andwhere the inequality uses . The required edit distance is at most . Empty partition classes are allowed; a sufficiently dense nondegenerate case has the usual full complement of classes.
For the odd-cycle conclusion, use two standard consequences of the Szemerédi regularity lemma, stated explicitly. The triangle removal lemma says that for every , some ensures that a graph with at most triangles in a graph can be made triangle-free by deleting at most edges, for all sufficiently large . Also, for each fixed odd length and each , there is such that a graph with at least triangles in a graph contains at least copies of .
For clarity, the latter odd-cycle copies from positive triangle density consequence follows by applying regularity with error small relative to , removing exceptional, irregular and very sparse pairs, and retaining a triangle in a graph among the remaining regular dense pairs. The graph embedding lemma for regular pairs counts a positive constant times embeddings of any fixed graph properly three-coloured into those three clusters, including . Dividing by the fixed number of descriptions of a cycle gives the same conclusion for unlabelled copies.
Apply triangle in a graph removal with , and take the resulting . A -free graph cannot have triangles in a graph for large , by the preceding consequence. Delete at most edges to obtain a triangle-free . With ,Apply the proved stability result with . The resulting complete bipartite graph satisfiesChoose also large enough that . Then the distance is at most .
For the unheaded continuation, use the same and its associated , and set . Having at most cycles rules out triangles in a graph just as before. The identical deletion and stability calculation applies. A sufficiently small gives the same bound.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 38 4 a Solution Created 2026-10-03 Updated 2026-10-07
Use the specified construction as a polynomial-time many-one reduction from 3-SAT. There are vertices and edges: one edge per variable pair, three edges per clause triangle in a graph, and three occurrence edges per clause. Any vertex cover must take at least one vertex from every variable pair and at least two from every clause triangle. Therefore every cover has at least vertices.
Given a satisfying Boolean valuation, include the vertex corresponding to the true Boolean literal in each variable pair. In each clause choose a true occurrence and omit its clause vertex, including the other two. Every variable edge and triangle edge is covered. An occurrence edge with an included clause endpoint is covered automatically; the only omitted occurrence vertex is joined to the included true-literal vertex. This is a vertex cover with exactly vertices.
Conversely, a cover of that size must use exactly one vertex in each variable pair and exactly two in each triangle. Declare a variable true precisely when its positive-literal vertex is included. Each clause has one omitted vertex. Its occurrence edge forces the corresponding literal vertex into the cover, so that literal is true. Every clause is therefore satisfied. ThusThe construction and target size are polynomial in the input length. Since 3-SAT is NP-complete, the decision problem is NP-hard. The usual “at most ” version has the same equivalence here because is an unavoidable lower bound. More generally, a cover with fewer than vertices can be padded to exactly . Verifying a proposed cover is polynomial, so the usual vertex-cover decision problem is also in NP and hence NP-complete.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 12 4 Solution Created 2026-10-03 Updated 2026-10-06
We derive the triangle removal lemma from the permitted Szemerédi regularity lemma, then turn a corner in an integer grid into a triangle in a graph.
The triangle removal lemma says that for every there are and such that a graph on vertices with fewer than triangles in a graph can be made triangle-free by deleting at most edges. Here triangles in a graph are unordered triples of distinct vertices. We prove this consequence with the necessary quantitative dependence.
We may assume . Put , choose an integer , and chooseApply the Szemerédi regularity lemma to obtain an exceptional class of size at most and equal-sized classes of size , where , and at most pairs are not regular pairs of vertex sets. The constant depends only on these chosen parameters. Delete all edges incident with , all edges within a class, all edges between irregular pairs, and all edges between pairs whose edge density of a bipartite graph is less than . The respective costs are at mostTheir sum is at most , hence certainly at most .
If a triangle in a graph survives, it lies in three distinct classes whose three pairs are -regular pairs of vertex sets of edge density of a bipartite graph at least in the original graph. We now check the needed regular triangle counting lemma. In the first class all but at most vertices have at least neighbours in each of the other two classes; otherwise the definition of a regular pair of vertex sets would be violated. For each such vertex , its two neighbour sets each have size at least , so their mutual edge density of a bipartite graph is at least . It follows that the original three classes contain at leasttriangles in a graph. The elementary lower bound holds because and . Also . Thus a surviving triangle in a graph implies at least original triangles in a graph. Set and take large enough for the Szemerédi regularity lemma. Fewer than original triangles in a graph force the cleaned graph to be triangle-free, proving the triangle removal lemma.
Now suppose and . Use the tripartite graph encoding of a grid to construct a tripartite graph with disjoint labelled classesFor each , put in the three edges joining , , and . These yield canonical triangles in a graph. They are pairwise edge-disjoint triangles: an edge determines directly, an edge determines , and a edge determines . Any deletion making the graph triangle-free must therefore remove at least edges.
On the other hand, an arbitrary triangle in a graph with labels gives three points of :Writing , these are . If , they form the required corner in an integer grid. If there is no such corner in an integer grid, every triangle in a graph is canonical, and the total number is precisely .
Apply the triangle removal lemma with . The constructed graph has vertices. For sufficiently large , andIn the absence of a corner in an integer grid, the triangle removal lemma would destroy all triangles in a graph by deleting at mostedges, contradicting the pairwise edge-disjoint triangles. Every sufficiently large grid therefore has the asserted corner in an integer grid in every subset of positive fixed density of a finite subset. For there is no eligible subset, so the assertion is vacuous. This proves the corners theorem, including the stipulated nonzero displacement; no positivity of was required.