Professional Documents
Culture Documents
Chapter 5 - The Mathematics of Graphs
Chapter 5 - The Mathematics of Graphs
Chapter 5 - The Mathematics of Graphs
MATHEMATICS
OF
GRAPHS
5.1 Introduction to Graph Theory
5.2 Euler Path And Circuit
5.3 Hamiltonian Path And Circuit
5.4 Graph Coloring
5.5 Trees
LEARNING OBJECTIVES
See if you can find a way to trace the shape without lifting your
pen and without tracing over the same segment.
1. 2.
ACTIVITY
See if you can find a way to trace the shape without lifting your
pen and without tracing over the same segment.
3. 4.
GRAPH THEORY
- A branch
of Mathematics concerned with
networks of points connected
by lines.
- It had its beginnings in
recreational math problems,
but it has grown into a
significant area of
mathematical research, with
applications in Chemistry,
Operations Research, Social
Sciences, and Computer
Sciences.
GRAPH THEORY
- A Swiss mathematician
The table on the next slide shows the lists of eleven cities
connected by Cebu Pacific Airline Flights. The symbol /
indicates that the cities have direct flights.
Kuala Lumpur
Ho Chi Minh
Hong Kong
Bangkok
Singapore
Manila
Macau
Brunei
Taipei
Tokyo
Seoul
Manila / / / / / / / / / /
Tokyo / / /
Seoul / / / /
Taipei / / /
Hong Kong / /
Macau /
Bangkok / /
Ho Chi Minh / /
Kuala Lumpur / /
Singapore / /
DEFINITIONS
Loop
- Is an edge connecting a
vertex to itself
DEFINITIONS
Multiple Edges
Simple Graph
Connected
- A graph is connected if
there is a path connecting
all the vertices
DEFINITIONS
Adjacent
Degree
Complete Graph
K1 1 0 0
K2 2 1 1
K3 3 3 2
K4 4 6 3
K5 5 10 4
K10 10 45 9
Kn n n-1
EQUIVALENT GRAPHS
Path
- An alternating sequence of
vertices and edges
Path
- An alternating sequence of
vertices and edges
Circuit / Cycle
- it is a closed path
MATHEMATICS OF GRAPHS
Circuit / Cycle
- it is a closed path
EULERS PATHS AND CIRCUITS
EULERS CIRCUIT
Euler Circuits
- A connected graph is
Eulerian if and only if every
vertex of the graph is of even
degree.
EULERIAN GRAPH THEOREM
Euler Path
Euler Path
Hamiltonian Circuits
Hamiltonian Path
• A weighted graph is a
graph in which each edge
is associated with a value,
called a weight.
Graph:
WEIGHTED GRAPH
A route that visits each city just once corresponds to a Hamiltonian circuit.
a. Chicago – New York – Dallas – Philadelphia – Atlanta – Washington, D.C. – Chicago
713 + 1374 + 1299 + 670 + 544 + 597 = 5197
WEIGHTED GRAPH
A route that visits each city just once corresponds to a Hamiltonian circuit.
b. Chicago – Philadelphia – Dallas – Washington, D.C. – Atlanta – New York – Chicago
A route that visits each city just once corresponds to a Hamiltonian circuit.
c. Chicago – Washington, D.C. – Dallas – New York – Atlanta – Philadelphia – Chicago
597 + 1185 + 1374 + 748 + 670 + 665 = 5239
ALGORITHMS IN COMPLETE GRAPHS
The table below lists down the distances (miles) between the cities having
direct routes as well as the corresponding distances between them.
Cagayan de Oro
Cities
Palawan
Ozamis
Manila
Davao
Cebu
Manila 355
Cebu
358 148
354
477
455
137
Ozami 363 Palawan
589 495
s
240
133 414
64
118
Davao Cagayan de Oro
ALGORITHMS IN COMPLETE GRAPHS
Manila 355
Cebu
358 148
354
477
455
137
Ozami 363 Palawan
589 495
s
240
133 414
64
118
Davao Cagayan de Oro
GRAPH COLORING
GRAPH COLORING
Planar Graph
- a graph that can be drawn so that no edge intersect each other
(except at vertices)
Planar Non-Planar
GRAPH COLORING
Four-Color Theorem
- The chromatic number of a planar graph is at most 4
GRAPH COLORING
Application:
At the right shown the map of a
fictional town, labeled as letters, of a
barangay We will assume that no
barangay is split into more than one
piece and barangay that touch at just a
corner point will not be considered
neighbors. We can represent each
barangay by a vertex, placed anywhere
within the boundary of that barangay.
We will then connect two vertices with
an edge if the two corresponding
barangay are neighbors—that is, if they
share a common boundary.
GRAPH COLORING
Application:
Faculty Instruction
Outreach Program
Faculty Development
Physical Facility
Student Welfare
Library Facility
Committee
Faculty Instruction - X X X
Faculty Development X - X X X
Outreach Program X - X X X
Physical Facility X X - X
Library Facility X X X - X
Student Welfare X X X X -
GRAPH COLORING
Faculty Instruction
Outreach Program
Faculty Development
Physical Facility
Student Welfare
Library Facility
Committee
FI FD
Faculty Instruction - X X X
OP
SW
Faculty
X - X X X
Development
Outreach Program X - X X X
Physical Facility X X - X
Library Facility X X X - X
LF PF
Student Welfare X X X X -
GRAPH COLORING
Tree
- A mathematical structure which is
a type of graph which has the
following properties:
a. Undirected
b. Connected (each of the vertices
is connected or linked to at least
one other vertex)
c. Acyclic (there is only one route
from any vertex to any other
vertex or has no cycle).
TREES
Terminologies:
Internal
Root Vertice
s
parent of 5
terminal
Vertices
Child of 4
TREES
Height
- the number of edges along the
longest path from the root vertex
to the farthest child vertex
TREE
a. Vertices m h 1 1
v
m 1
b. Internal Vertices
mh 1
i
m 1
c. Terminal Vertices
t mh
TREE