Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 2 17F Solution Created 2026-09-24 Updated 2026-10-14
Here graphs are finite and simple. To prove Dirac theorem, take a longest path . All neighbours of either endpoint lie on the path. Among indices , let and . Since , some lies in both. Following the path forward to , jumping to , and following it backwards to closes a cycle containing every vertex of the path. The degree condition makes the graph connected: two components would each have at least vertices. If , connectedness gives an edge from an outside vertex to the cycle, and breaking the cycle there makes a longer path. This contradiction proves a Hamiltonian cycle.
For even , the complete bipartite graph has minimum degree and no Hamiltonian cycle. For odd , has minimum degree and likewise fails: a bipartite cycle uses equal numbers from its two parts. These examples include the smallest applicable .
Adding one universal vertex gives vertices and minimum degree at least when the original minimum degree is at least . Apply the proved theorem and remove the universal vertex from its cycle. The remaining sequence is a Hamiltonian path in the original graph.
A necessary condition for a Hamiltonian cycle is that deleting a nonempty vertex set leaves at most components, since deleting those vertices breaks a spanning cycle into at most that many path pieces. For any , take the connected star . In , deleting its center and the new vertices leaves components, more than . Even two-connectivity does not suffice: take , which is two-connected. Deleting its two-vertex part and the new vertices from leaves components, more than . Both connectivity requirements admit counterexamples for every .
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 12 4 ii Solution Created 2026-10-03 Updated 2026-10-14
Write , an integer under the stated divisibility assumption. The degree relation gives . Take the disjoint union of graphs of copies of the complete bipartite graph , placing its -vertex part in and its -vertex part in . The total part sizes are then and . Each left vertex has vertex degree , and each right vertex has vertex degree , so the graph has exactly the required biregular graph parameters.
An independent set in one component can be any subset of its left part or any subset of its right part. It cannot contain a vertex from both parts, because all cross-pairs are edges. The two families share only the empty set, so the component has independent sets. Choices in different connected components of a graph are independent combinatorial choices, and their counts multiply. HenceThis attains equality in part (i). It also explains the entropy weight there: the empty selected left neighbourhood permits all subsets of the opposite part.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 110 1 Solution Created 2026-10-03 Updated 2026-10-14
Write . The Erdős-Stone theorem states that, for a fixed graph with chromatic number ,Here is the extremal number, and copies are subgraphs, not necessarily induced subgraphs. We write for the balanced complete multipartite blow-up with classes of vertices each. All asymptotic errors below concern with the forbidden graphs fixed.
The stability subgraph. We prove the high-minimum-degree multipartite stability subgraph assertion directly from the Erdős-Stone theorem. For , the edgeless spanning subgraph suffices. Suppose .
First repeatedly remove a vertex whose degree of a vertex is less than times the current order, where sufficiently slowly. The Erdős-Stone theorem gives, uniformly for every -free subgraph of order at most ,Indeed, apply the asymptotic bound at large orders; the contribution from bounded or sufficiently small orders is negligible relative to . If vertices survive, the removed edges number at mostComparing with shows that , provided dominates , the initial relative error, and . Consequently . The surviving induced subgraph satisfies and .
By the Erdős-Stone theorem, contains for some as slowly as necessary. This follows because exceeds the extremal number density for each fixed by the positive gap . Choose so slowly that and , and denote its root classes by .
An outside vertex having at least neighbours of a vertex in every determines one choice of a -subset in each . At most outside vertices can determine any fixed choice, since otherwise these vertices and the chosen root sets form . Thus at most outside vertices have this property. Exclude those vertices and the root classes; put each remaining vertex in a class for which it has fewer than neighbours of a vertex in .
Write , with . Counting missing incidences with givesSince , it follows that for every . The total missing incidences from all root vertices to assigned vertices are at most . At least of them are incidences with a vertex's own assigned root class. Hence only missing incidences go to other root classes.
Choose slowly and discard the assigned vertices with more than missing incidences to other root classes. Each remaining vertex of is adjacent to all but at most vertices of every , . If its class contained a complete bipartite graph , the vertices of this copy would have at least common neighbours of a vertex in each other root class. These sets extend the copy to , a contradiction. By the bipartite case of the Erdős-Stone theorem, the number of internal edges in each surviving class is .
The surviving graph still has edges, whereas the total possible cross-class edges, with these balanced classes, is . Thus only cross-class edges are missing. Discard the vertices missing more than cross-class edges, with slowly, and delete all internal edges. The resulting -partite subgraph has classes of size andFor the lower bound, every surviving vertex misses only vertices outside its class; the upper bound follows from the class sizes. This also records the uniform cross-class error that we need next.
Minimum degree in an extremal graph. Fix with . Choose large enough that embeds in . An extremal -free graph is therefore -free, and its edge count has the required asymptotics by the Erdős-Stone theorem. For take as above.
For any vertex , remove and introduce a new vertex whose vertex neighbourhood consists precisely of the vertices in other than . The new degree of a vertex is . This new graph remains -free. Indeed, a new copy of must use , and all its neighbours of a vertex in that copy lie in the other classes of . There are only boundedly many of them. Each misses only vertices in , so an unused vertex is adjacent to all of them. Replacing by would give in , which is impossible.
Extremality now forces , uniformly in . The upper bound for the minimum degree of a graph follows from . For , already gives . ThusThis is the minimum degree of an extremal forbidden-subgraph graph principle.
The exact extremal graph for disjoint cliques. DefineThe plus sign denotes the join of graphs. The Turán graph contains no , so every such clique in uses a vertex of . Therefore contains no vertex-disjoint such cliques, and the extremal number is at least .
Induct on , with supplied by the Turan theorem, including its equality characterization. Let and let be extremal for . The preceding results give and the -partite subgraph . Keep its classes fixed and assign each of the remaining vertices to a class in which it has fewest neighbours of a vertex in . Write the resulting classes as ; all have size . Choose a positive so slowly that dominates the outside count, every cross-class error in , and every error in the minimum degree of a graph bound.
Suppose some vertex has at least internal neighbours of a vertex. If , the assignment rule shows that has at least neighbours of a vertex in every . If , it has this many in and in the other . If contained disjoint , we could choose one vertex in each , successively avoiding those copies and the missing cross-neighbours of the already chosen vertices. This produces a further through . For , this just chooses an unused neighbour of . Hence is -free, and induction givesSince the candidate attains , equality holds throughout: is a universal vertex and is the inductively unique extremal graph. Thus is isomorphic to .
It remains to show that this case must occur. Otherwise all internal vertex degrees are less than . Together with the lower bound on and , this implies that every vertex misses only vertices outside its own class. If some contains a matching in a graph of edges, extend its edges one by one to , choosing one vertex from each other class. At every step only cross-neighbours and boundedly many used vertices are excluded. This gives disjoint forbidden cliques, a contradiction.
A maximal matching in each class therefore has at most edges, and its at most endpoints form a vertex cover of the internal edges. Their internal vertex degrees are all , so the total internal edge count is . The cross-class edge count is at most , whenceBut the balanced part sizes of the Turán graph givecontradicting extremality for . This argument also works for . Consequently, for all sufficiently large ,The uniqueness is up to isomorphic graphs, as usual for an extremal graph for disjoint cliques.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 110 2 Solution Created 2026-10-03 Updated 2026-10-14
Symmetrization for an arbitrary real coefficient. Among graphs maximizing , choose one maximizingFor a vertex , put . This is the contribution of edges and triangles in a graph containing . If are nonadjacent, Zykov symmetrization replacing by a clone of changes by ; the opposite replacement changes it by . Maximality implies , so both changes preserve .
Let and . In the first replacement the vertex degrees in increase by one and those in decrease by one; in the opposite replacement these changes reverse. The changes to cancel when the two replacements are added. Since ,If the two vertex neighbourhoods differ, one replacement increases , a contradiction. Thus every pair of nonadjacent vertices has the same vertex neighbourhood. Nonadjacency, with equality allowed, is an equivalence relation: if and are nonadjacent and and are nonadjacent, their identical vertex neighbourhoods forbid as well. Its classes are independent sets and every cross-class edge is present. ThereforeThis edge-triangle symmetrization works for either sign of .
The exact supporting line. For , writeWe prove the triangle support line between bipartite and tripartite Turan graphs by maximizing . First . For , its values are respectively . For , the exact balancing of the Turán graph gives , while and the arithmetic-geometric mean inequality gives . Hence
By edge-triangle symmetrization a maximizing graph can be taken complete multipartite graph; among such maximizers use one with the fewest nonempty parts. If there are at least four parts, let be the two smallest sizes. Then . Merging them loses edges and triangles in a graph, so the objective changes byThis contradicts the choice of the number of parts. Thus at most three parts remain.
For three part sizes , the objective isIf , merging the parts of sizes does not decrease it, again contradicting minimality. If and , transferring one vertex from the largest to the smallest part raises by and strictly increases the objective. Thus a three-part maximizer has all sizes differing by at most one, and is . A maximizer with at most two parts has objective at most , since it has no triangles in a graph and the Mantel theorem bounds its edges. Finally,Therefore every graph satisfies . At the prescribed edge count this givesFor , the conclusion is simply the nonnegative lower bound zero. All rounding in the Turán graphs has been retained.
One edge above the bipartite threshold. Write . We prove the Triangle lower bound one edge above the Mantel threshold by induction on , allowing at least edges. For , five edges on four vertices give two triangles in a graph, and adding edges preserves this bound.
We will also use the following consequence of an inductive bound: on vertices, at least edges, for an integer , force at least triangles in a graph. Delete surplus edges first to leave exactly . Repeatedly delete an edge in a triangle in a graph until edges remain. The Mantel theorem guarantees such a triangle in a graph at every step; each deletion destroys at least one distinct triangle in a graph. Apply the inductive bound to the remaining graph.
Now take exactly edges. If every edge lies in a triangle in a graph, the edge-triangle incidence bound gives . This is at least for ; the base case was handled separately.
Otherwise choose an edge in no triangle in a graph. Its endpoints have disjoint vertex neighbourhoods, so . Deleting removes exactly edges and leaves at least edges. If , it leaves at least edges, and the strengthened inductive bound gives at least triangles in a graph already.
If , induction gives at least triangles in a graph after deletion. There must be an additional triangle in a graph containing or . Otherwise both and are independent sets; since they are disjoint and cover all vertices, would be bipartite graph, contradicting by the Mantel theorem. HenceThe bound is sharp: add one internal edge to one class of the complete bipartite graph . Its triangles in a graph are precisely that edge together with each of the vertices in the other class.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 1 17I c Solution Created 2026-09-24 Updated 2026-10-03
First consider a -free bipartite graph with parts , each of size at most , and edges. Count pairs in which is a -element subset of the graph neighbourhood of . Any vertices of have at most common neighbours, since common neighbours would form the complete bipartite graph . ConsequentlyIf the average degree of a vertex is bounded in terms of , then and the required result is immediate. Otherwise, convexity of and the preceding inequality giveand hence . Every graph has a bipartite spanning subgraph containing at least half its edges, obtained by choosing a random bipartition. Applying the bipartite estimate to that subgraph proves the Kővári–Sós–Turán theorem in the required form:
The stated "nice" subsets of the finite cyclic group are Sidon sets. Ifthen . Niceness forces ; the alternative pairing would force . Thus the ordered nonzero differences are distinct elements of the nonzero residue classes. Thereforeso
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 2 17I Solution Created 2026-09-24 Updated 2026-10-03
We first prove the required case of Menger's theorem directly. Split each vertex into and joined by a directed edge of capacity one. Replace every graph edge by the two directed edges and of capacity , add a source joined to every for , and join every for to a sink, using unit capacities at the ends.
Starting with zero integral flow, repeatedly augment by one along a source-to-sink path in the residual directed graph. If fewer than augmentations have occurred and no augmenting path remains, let be the residual-reachable vertices. The capacity from to its complement equals the current flow: every forward edge in this cut is saturated and every reverse edge carries zero flow, by residual reachability. Since the cut has capacity below , it uses no capacity- graph edge. The original vertices whose unit-capacity split or endpoint edges cross the cut form an -separator of size below , contrary to the hypothesis. Hence at least augmentations occur. The resulting integral flow decomposes into source-to-sink paths, and the unit split capacities make their corresponding paths vertex-disjoint. This proves
The same augmenting-path proof, with the source vertex given capacity , yields the fan lemma: from a vertex to any set of at least vertices in a k-connected graph, there is a -fan with distinct endpoints.
Now let be a longest cycle in a finite -connected graph . If is not Hamiltonian, choose . A -fan from to has distinct attachment vertices. If , two consecutive attachment vertices on are joined by an edge of , because the cyclic gaps cannot all have length at least two. The two corresponding fan paths form, through , an alternative path of length at least two between those adjacent vertices. Replacing their edge on by this path creates a longer cycle, a contradiction. ThereforeThis is the Dirac circumference theorem; in particular, a -connected graph contains a cycle of length at least , and when it must contain one of length at least .
For , every 3-connected graph with at least six vertices consequently has a cycle of length at least six. This cannot be improved: the complete bipartite graph is 3-connected for , but every cycle alternates between its two parts and therefore has length at most six. Taking arbitrarily large defeats every proposed bound above six. Hence
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 1 17H a Solution Created 2026-09-24 Updated 2026-09-25
Fix and sample from the Erdős-Rényi model with . Let count copies of the complete bipartite graph . By the expected subgraph count in the Erdős-Rényi model,
Put and let count independent set of size . If the chromatic number satisfies , some colour class has at least vertices, so . Moreover,because the positive part of the exponent is whereas has order . The first moment method therefore gives .
Using Markov inequality for and the union bound,for all sufficiently large . Hence at least one such contains no and has .
The complete bipartite graph is connected, simple, and has no triangles because all its cycles have even length. It has vertices and edges. A planar drawing would require by part (i), a contradiction. Therefore is nonplanar.
The complete bipartite graph is not a planar graph. For example, a simple connected triangle-free planar graph with six vertices has at most edges, by Euler formula for a connected planar graph and the fact that every face has boundary length at least four; has nine edges. At least one edge must therefore be deleted.
The complete bipartite graph is connected and has five vertices and six edges. It is a planar graph, as in the right drawing above. Euler formula for a connected planar graph therefore givesThis includes the unbounded exterior face.
Take the complete bipartite graph . Its seven vertices have degrees four on one side and three on the other. Deleting any two vertices leaves at least one vertex on each side, so the remaining complete bipartite graph is connected.
Every cycle in a bipartite graph alternates between its two parts, using equal numbers of vertices from each. A Hamilton cycle here would have to use three vertices from one part and four from the other, which is impossible. Thus three-vertex connectivity and minimum degree three do not suffice for Hamiltonicity in this seven-vertex example.
Perfect matching Created 2026-09-24 Updated 2026-10-14
A perfect matching is a matching in a graph that covers every vertex exactly once. Its edges have no shared endpoints, and every vertex is an endpoint of one selected edge. It is useful when a collection must be divided into disjoint pairs with no element left over.
In a bipartite graph with equally many vertices on its two sides, a perfect matching can assign every person one allowed job and every job one person. The example under permanent of a matrix has three people and three jobs, with exactly three valid assignments. The blue edges below show those three perfect matchings; a crossing in the drawing is not an extra vertex.
Every selected edge covers two vertices, so a graph with an odd integer number of vertices has no perfect matching. An even integer number is necessary but does not guarantee existence: an isolated vertex cannot be covered. A perfect matching also need not be unique. For example, the complete bipartite graph has two perfect matchings, corresponding to the two ways of assigning two people to two jobs.
Counting all perfect matchings is a different question from finding one. For a zero-one biadjacency matrix of a balanced bipartite graph, the count is its permanent of a matrix. The nonzero determinant criterion for a perfect matching supplies an existence test, but cancellation means that a zero determinant does not rule one out.
Stable matching in a bipartite graph Created 2026-10-14 Updated 2026-10-18
A stable matching in a bipartite graph pairs two groups so that no acceptable unpaired pair would both rather be together. Give a finite bipartite graph a strict preference ordering at each vertex over its neighbours of a vertex. An edge means that both endpoints regard the pair as acceptable; every acceptable partner ranks above being unmatched. Lists may be incomplete, and and may have unequal cardinalities. A matching in a graph is stable when it has no blocking pair in stable matching.
Write for the partner of a vertex , or if is an unmatched vertex in a matching. An unused edge is a blocking pair in stable matching precisely whenwhere denotes the strict preference at and ranks below every neighbour of a vertex. Both inequalities matter: wanting a different partner alone cannot upset a stable matching. A stable matching need not be a perfect matching; the Gale-Shapley algorithm still finds one with incomplete lists and unequal sides.
Here is an original example on the complete bipartite graph , with and . Read each row from best to worst:There are two stable matchings,For , the only unpaired partners preferred by left vertices are wanting and wanting . But prefers its partner to , and prefers its partner to . Hence neither is a blocking pair in stable matching. For , the left vertices want with , with or , and with or . In every case the right vertex prefers its current partner: has , has , and has .
By contrast, is a perfect matching with a blocking pair in stable matching : prefers to , while prefers to . The abandoned partners need not agree to the change; stability tests the incentives of the two endpoints of the unused edge.
There are permutations of right partners. The following table lists every blocking pair in stable matching for each perfect matching; the middle column gives the partners of in that order:This exhausts the stable matchings: any nonperfect matching in a graph here leaves an unmatched vertex on each side, and those two form a blocking pair in stable matching because every cross-pair is acceptable. Notice that every left vertex prefers and every right vertex prefers . Stability can accommodate opposing interests without selecting a single universally preferred outcome.
A stable matching addresses the possibility of mutually beneficial departures. Its definition contains no numerical total social benefit or maximum-weight matching objective. For example, assigning benefit to each edge of and zero to every other edge makes the unique maximum-weight matching, yet still blocks it under the displayed preference relations. Such external benefits need not represent participants' rankings.
Star (graph theory) 2026-10-14
A star graph is the complete bipartite graph with one centre and leaves. Any pair of its edges meet at the centre.
Topological minor 2026-10-14
A topological minor records a network pattern whose vertices remain individual junctions but whose edges may become longer routes. For finite simple graphs, means that contains a subgraph that is a graph subdivision of up to graph isomorphism. Equivalently, choose distinct branch vertices of a graph subdivision for and a graph path from to for every . These are internally vertex-disjoint paths, and no internal vertex of any is a branch vertex of a graph subdivision. Only endpoints corresponding to a shared target vertex may be shared.[ref]
The Basics (author-hosted chapter preview). §1.7, printed p. 18: subdivisions; printed p. 21: topological-minor embeddings
The graph subdivision example below replaces two edges of a triangle in a graph by routes of two and three edges while retaining its attached leaf of a graph. If the host graph also contains an extra edge , the same routes still witness a topological minor: delete when selecting the subgraph. An induced subgraph is not required. However, routes that merely connect the right pairs are insufficient: using a branch vertex of a graph subdivision as an intermediate junction, or making two routes share an internal vertex, can change the local network structure.
Every topological minor is a graph minor. In each branch path of a graph subdivision, contract all but one edge; the disjoint interiors let this shorten each route without merging distinct branch vertices of a graph subdivision. This recovers after deleting unused vertices and edges.[ref] The converse fails because an ordinary branch set of a graph minor can gather several junctions into one.
For the tree with vertices and edges , contracting produces a star graph : the branch sets of a graph minor are . Both have degree of a vertex three; each of the other four vertices is a leaf of a graph with degree of a vertex one. The new centre has four distinct graph neighbours ; its degree of a vertex is , in agreement with the edge contraction formula.
A graph minor can combine two junctions: contracting creates a star graph with a centre of degree of a vertex four
. Details. Yet is not a topological minor of . In a graph subdivision of , four branch paths of a graph subdivision must leave the centre through four different edges; sharing their first internal vertex would violate internal disjointness. Thus any host needs a vertex of degree of a vertex at least four, whereas . More generally, implies , where is the maximum degree of a graph. This bound concerns the host graph; extra unused edges may make its branch vertices of a graph subdivision have larger degrees of vertices than their target counterparts.
This distinction matters when a network's individual junctions have a limited number of connections: replacing a connection by a route preserves the number of routes meeting at each chosen junction, while contracting a connected region can combine connections from separate junctions. It also explains why a small nonplanar pattern can hide inside long routes. By Kuratowski's theorem, a finite simple graph is a planar graph exactly when it has neither the complete graph nor the complete bipartite graph as a topological minor. The obstruction is a graph subdivision inside the network, regardless of the number of intermediate vertices.
Vertex cover number Created 2026-10-14 Updated 2026-10-31
The vertex cover number records the size of a minimum vertex cover:The vertex cover number is a number, while a minimum vertex cover is a set attaining it. For the cycle graph , the independence number is , so the complement correspondence gives . The vertex cover above attains this size.
Every matching in a graph gives a lower bound on the vertex cover number. Its edges have no shared endpoints, so covering each selected edge requires a different vertex. Thus, for any matching in a graph and any vertex cover ,where is the matching number. Exhibiting a matching in a graph and a vertex cover of the same size certifies that both are optimum. Kőnig's theorem for bipartite matching says that every finite bipartite graph admits this equality: .[ref]
Graph Theory by Reinhard Diestel. Diestel, Graph Theory, Section 2.1, Theorem 2.1.1 and its lower-bound argument
For the complete bipartite graph , let the left vertices be and the right vertices be . All six edges join to . Selecting covers every edge; selecting gives a matching in a graph of size two. The lower bound and this vertex cover give , so . The remaining vertices form a largest independent set of size three. Crossings of drawn edges are not extra vertices.
The bipartite graph hypothesis matters. In a triangle in a graph, any two vertices form a minimum vertex cover, while any two edges share an endpoint. Hence and . Similarly, the cycle graph has and . The inequality for the matching number remains valid, but equality can fail.




