Professional Documents
Culture Documents
GROUP MEMBERS:
1. Irdina Huda bt. Zailan
2. Muhammad Izmaluddin b. Muhamad
3. NurulAin bt. Zaini
4. Shahida Aziera bt. Ruslan
5. Khor Jing Ying
BUT FIRST,
LET WE LEARN WHAT IS
VERTEX, EDGES & DEGREE
A vertex (plural : vertices) is a point where two or more line segments meet.
5 vertices: A, B, C, D, E
8 edges: AB, BC, CD, DE, EA, EB,
BD, EC
Vertices B and E have 4 edges
Vertices C and D have 3 edges
Vertices A has 2 edges
DEFINITION
EULER PATH EULER
CIRCUIT
A walk through the graph which An Euler path which starts and
uses every edge exactly once. stops at the same vertex
• For every vertex v other than the starting and ending vertices,
the path P enters v the same number of times than it leaves v
(say s times).
2
Euler
4 8
Path
IS THERE AN EULER PATH?
Start
• Yes
End • There are 2 odd vertices, at B
and C
• Can start and end at either B or
C
Path: BBADEBCDC
End
Start
Path: CDCBADEBB
IS THERE AN EULER
CIRCUIT?
Find either all vertices are even or not
2 odd 4 odd
vertices vertices All vertices are even
4 odd
vertices
Euler circuit
A B
F G C
E D Path:
ABCDEGBDGGGAEFA
HAMILTON CIRCUITS,
PATHS AND GRAPH
DEFINITION OF HAMILTON CIRCUIT
Hamilton circuit is a circuit that visits every vertex exactly
once with no repeats.Being a circuit, it must start and end at
the same vertex.
A B
C
C
E D
A B
D
CONDITIONS FOR HAMILTON CIRCUITS
Alandur A to C to B to D to A
2 + 13 + 9 + 1 = 25
1
2 A to B to D to C to A
4
Dallas 4 + 9 + 8 + 2 = 23
9 8
A to B to C to D to A
Bangkok 1 Cardiff 4 + 1 + 8 + 1 = 14
GRAPH COLOURING
Graph
Graph colouring
colouring problem
problem ::
••Given
Given aa graph,colour
graph,colour all
all the
the vertices
vertices so
so that
that two
two adjacent
adjacent vertices
vertices have
have
get
get different
different colours.
colours.
••One
One of
of the
the most
most famous
famous problem
problem in
in the
the topic
topic of
of graphs
graphs theory.
theory.
Edge
Vertices/
nodes
There are a few colours that represent object in each vertices such as
classes,book and etc.
Vertex coloring is the most common graph coloring problem. The problem is,
given m colors, find a way of coloring the vertices of a graph such that no two
adjacent vertices are colored using same color. The other graph coloring problems
like Edge Coloring (No vertex is incident to two edges of same color) and Face
Coloring (Geographical Map Coloring) can be transformed into vertex coloring.
Two criteria for colour the graph :-
No two adjacent vertices are allocated the same colour
The number of colours used is minimised.
Some types of graph are easy to colour optimally
GRAPH 1 GRAPH 2
The smallest number of colours required to colour of a graph G is called its chromatic number of that
graph.
For example, chromatic number for this graph 1 is 2.
The smallest number of colours required to colour of a graph G is called its chromatic number of that
graph.
For example, chromatic number for this graph 1 is 2.
ANY GIVEN DAY. THE VERTICES OF THE GRAPH BELOW SHOW THE COURSES THAT ARE BEING TAKEN BY
MORE THAN ONE STUDENT, WITH AN EDGE CONNECTING TWO VERTICES IF THERE IS A STUDENT IN BOTH
COURSES. FIND A WAY TO COLOUR THE VERTICES OF THE GRAPH WITH ONLY FOUR COLOURS SO THAT NO
TWO ADJACENT VERTICES HAVE THE SAME COLOUR AND EXPLAIN HOW TO USE THE RESULT TO SCHEDULE
THE FINAL EXAMS.
MCS101 MCS102
MCS100
MCS110
MCS135 MCS120
MCS130
RED ORANGE BLUE GREEN
MCS101 MCS110 MCS100 MCS135
MCS102 MCS130 MCS120
COLOURING THEOREMS
DEFINITIONS
FOUR COLOR THEOREM : a map can be coloured by
using not more than four colours and the two
adjacent regions will not have the same colour.