Graph Theory Basics For INMO
Graph Theory Basics For INMO
A map of the city of Konigsburg is given in Figure below. The city lies on
both banks of a river, and there are two islands in the river. There are seven
bridges connecting the various parts of the city. Can one stroll around the town,
crossing each bridge exactly once?
1
2. An edge whose endpoints are the same is called a loop. A graph where
there is more than one edge joining a pair of vertices is called a multi-
graph. A graph without loops and is not a multigraph is said to be
simple. Unless stated otherwise, we assume that all graphs are simple.
3. Two vertices v, w are said to be adjacent if there is an edge joining v
and w. An edge and a vertex are said to be incident if the vertex is an
endpoint of the edge.
4. Given a vertex v, the degree of v is defined to be the number of edges
containing v as an endpoint.
2
in the same set. A complete k-partite graph is defined similarly as a
complete bipartite. In the case where |Ai | = ni , such a graph is denoted
by Kn1 ,n2 ,···,nk . (Note that a 2-partite graph is simply a bipartite graph.)
14. If U is a subset of the vertices, then the induced subgraph G[U ] is the
graph obtained by deleting all vertices outside U, keeping only edges with
both endpoints in U.
15. If F is a subset of the edges, then the induced subgraph G[F ] is the
graph obtained by deleting all edges outside F, keeping only vertices that
are endpoints of at least one edge in F .
16. Given a graph G, the chromatic number χ(G) is defined as the minimum
number of colours required to colour the vertices of G such that no
two adjacent vertices are assigned the same colour.
17. (Isomorphism). Let G = (V, E) and let G′ = (V ′, E′). The graphs G
and G′ are isomorphic if there is a bijective mapping f : V → V ′ such
that for all v1 , v2 ∈ V we have: {v1 , v2 } ∈ E ⇐⇒ {f (v1 ), f (v2 )} ∈ E′ In
this case the mapping f is called a graph isomorphism. If G and G′ are
isomorphic, we write G ∼ = G′.
Exercise 1:
The exercises in this section, while not of the olympiad nature, will familiarize
you with the techniques that might be required to solve olympiad problems. It
is important that you know how to solve all of these problems.
1. Are these two graphs the isomorphic?
2. Let G be a graph with n vertices, e edges and the degrees of the n vertices
n
are d1 , d2 , · · ·, dn . Prove that di = 2e .
P
i=1
3
4. Show that every graph has at least two vertices with equal degree.
5. A domino consists of two squares, each of which is marked with 0,1,2,3,4,5,
or 6 dots. Verify that there are 28 different dominoes. Is it possible to
arrange them all in a circle so that the adjacent halves of neighboring
dominoes show the same number?
Olympiad problems 1
1. Is it possible to change the state in figure 1 to the figure 2 by moving the
knights several times? (In figure W, B stand for white and black knights
respectively. The knights should be moved by following international chess
regulations.)
fig 1 fig 2 fig 3
W W W B 1 4 7
2 5 8
B B B W 3 6 9
2. Let there are 2000 people in a tour group, in any group of 4, there is
one person in the group having acquaintance with the other three.What is
the least number of people having acquaintance with all other in the tour
group? (knowing is a mutual relation .If A knows B implies B knows A.)
3. All the chairs in a classroom are arranged in a square n × n array (in other
words, n columns and n rows), and every chair is occupied by a student.
The teacher decides to rearrange the students according to the following
two rules:
• Every student must move to a new chair.
• A student can only move to an adjacent chair in the same row or to an
adjacent chair in the same column.
In other words, each student can move only one chair horizontally or
vertically. (Note that the rules above allow two students in adjacent chairs
to exchange places.) Show that this procedure can be done if n is even,
and cannot be done if n is odd.
4. In Orientalia all the roads are one-way roads, and you can reach each town
from any other by driving along no more than two roads. One of the roads
is closed for repair, but it is still possible to drive from each town to any
4
other. Prove that now this can be done by driving along at most three
roads.
5. NASA has proposed populating Mars with 2,004 settlements. The only
way to get from one settlement to another will be by a connecting tunnel.
A bored bureaucrat draws on a map of Mars, randomly placing N tunnels
connecting the settlements in such a way that no two settlements have
more than one tunnel connecting them. What is the smallest value of
N that guarantees that, no matter how the tunnels are drawn, it will be
possible to travel between any two settlements?
5
2. The chromatic number of a graph is always less than or equal to its max-
imum degree plus one.
3. In a graph G every vertex has degree at least k ≥ 2. Show that G has a
cycle of length at least k + 1.
Olympiad Exercises
1. (IMO shortlist.) A country has 1983 cities. Every pair of cities is con-
nected by a road. Each road is owned by one of 10 companies. Prove that
there must be a way to travel in a circuit of odd length along a sequence
of roads that are all owned by a single company.
2 Tree:
Trees : A tree is defined to be a connected graph that does not contain any
cycles. We will first give characterizations to such graphs.
Lemma: (Characterization of Trees) Let G be a connected graph with n
vertices. The following statements are equivalent.
1. Let G is a tree. It is acyclic and connected.
2. G contains exactly n − 1 edges
3. For any two vertices, there exists exactly one path joining the two ver-
tices .
4. The removal of any edge disconnects the graph G. Hence it is said to be
minimally connected, i.e. G is connected but G − e is disconnected for
every edge e ∈ G ;(That is every edge is a cut edge)
Corollary:
Let G be a connected graph with n vertices and at least n edges. Then there
exists an edge whose removal does not disconnect the graph.
Warm-Up Exercises
6
2. Prove that, if a graph has n vertices and n + 1 edges, then there are at
least 2 cycles.
3. If T is a tree, then
1) T is connected, but after deleting any edge e of T , the graph T − e is
disconnected. (T is called minimally connected.)
2) T has no cycle but after adding any edge e to T , the graph T + e is
cyclic.
Conversely (1) and (2) implies T is a tree.
4. T is a tree iff there exist unique path between any two vertices of T.
Olympiad Exercises
1. (USAMO 2007) An animal with n cells (unit squares like on chess board)
is a connected figure consisting of n equal-sized cells.(Animals are also
called polyominoes) A dinosaur is an animal with at least 2007 cells. It
is said to be primitive it its cells cannot be partitioned into two or more
dinosaurs.
Two cells are adjacent if they share a complete edge.
A single cell is an animal, and given an animal with n cells, one with n + 1
cells is obtained by adjoining a new cell by making it adjacent to one or
more existing cells.
Find with proof the maximum number of cells in a primitive dinosaur.
7
Given a graph G, an Eulerian walk is defined to be a sequence of successive
adjacent vertices that encounter every edge in the graph exactly once. An
Eulerian cycle is a sequence of successive adjacent vertices that begin and
ends at the same vertex, that encounter every edge in the graph exactly once.
8
• Ew be the set of edges (vi , vi+1 ) where (vi , w) ∈ E
Using the assumption of the theorem, since (u; w) ̸= E,
we get | Eu | + | Ew |≥ n.
Thus, there is an edge (vi , vi+1 ) ∈ Eu ∩ Ew . Besides, i ̸= 0 and i ̸= n − 2.
Dirac’s Theorem:
Let n ≥ 3. Suppose a graph G has n vertices and the degree of each vertex is
at least ⌈ n2 ⌉. Then G has a Hamiltonian cycle.
Properties:
1. A complete graph with more than two vertices is Hamiltonian
2. Every cycle graph is Hamiltonian as well as Eulerian.
3. A tournament is a directed complete graph (round robin). Every tourna-
ment has an odd number of Hamiltonian paths .
4. Every platonic solid, considered as a graph, is Hamiltonian.
5.
Problems
1. A domino consists of two squares, each of which is marked with 0,1,2,3,4,5,
or 6 dots. Verify that there are 28 different dominos. Is it possible to
arrange them all in a circle so that the adjacent halves of neighboring
dominos show the same number?
2. Consider a graph with ,where every vertex has degree exactly 2k. Show
that it is possible to orient each edge such that the maximum in-degree is
exactly k.
3. Given a 8 × 8 board, find all pairs of squares on the board, such that the
remaining 62 squares can be tiled using 2 × 1 tiles.
9
3. (INMO2021/P4)A Magician and a Detective play a game. The Magician
lays down cards numbered from 1 to 52 face-down on a table. On each
move, the Detective can point to two cards and inquire if the numbers
on them are consecutive. The Magician replies truthfully. After a finite
number of moves, the Detective points to two cards. She wins if the
numbers on these two cards are consecutive, and loses otherwise.
Prove that the Detective can guarantee a win if and only if she is allowed
to ask at least 50 questions.
10