Professional Documents
Culture Documents
Mathematics in The Modern World-Module 6
Mathematics in The Modern World-Module 6
Mathematics in The Modern World-Module 6
IN THE MODERN
WORLD
The Mathematics of
Graphs
Engr. Michael George A. Baraquel
Course Objectives
Amy Jared
Lisa
Graphs
A. Matt Oscar
Kayla Laura
B
B E
A
D E
C E D
D C
Euler Circuits and Euler Path
G1 is has
Eulerian circuit since
there is a trail that
covers all edges at
once and starts and
ends on the same
vertex, thus it is a
Eulerian Graph. Path:
A-B-D-C-E-B-D-E-A-
C-A
Kind of Graphs
G2 is a
semi-eulerian graph
since there is a trail
that will pass to all
edges once that
starts and ends on a
different vertex. Path:
B-A-C-E-B-D-E-A-C-D
Kind of Graphs
G3 on
the other hand, is a
Non-Eulerian graph
since there no
possible way to cover
all edges once
Eulerian Theorem
Example
Which among
a. Vertices of C and D are of odd degree,
the following
by EGT the degree does not have a
has a Eulerian eulerian circuit.
circuit? b. It is observe that all vertices are of
even degree. Since all vertices have an
even degree, by EGT, the graph has a
eulerian circuit.
Eulerian Theorem
Determine if the given graph is
Example Eulerian. If it is, find the Eulerian
circuit. If it is not, explain why.
Answer
∙ The degree of each of the
vertices is 4 (even), hence the
graph is Eulerian.
∙ Circuit: A-D-B-E-C-A-E-D-C-B-A.
Eulerian Theorem
Determine if the given graph is
Eulerian. If it is, find the Eulerian circuit.
Example If it is not, can you find the Euler path?
1483
1745 748
2145
803
ILO DUM
DAV
Weighted Graph
713
Chicago 597 Washington
748
554
803
1374
665
Atlanta
Weighted Graph
New York
➢1st Route:
713 Washington
Chicago ➢Chicago → New York
597
748 → Dallas →
554
Philadelphia → Atlanta
803 → Washington →
1374
Chicago.
665 ➢713 + 1374 + 1299
Philadelphia
Dallas 1299 + 670 + 544 + 597 =
585
670
5197
Atlanta
Weighted Graph
New York
➢2nd Route:
713 Washington
Chicago ➢Chicago →
597
748 Philadelphia → Dallas
554
→ Washington →
803 Atlanta → New York
1374
→ Chicago.
665 ➢655 + 1299 + 1185
Philadelphia
Dallas 1299 + 544 + 748 + 713 =
585
670
5154
Atlanta
Weighted Graph
New York
➢3rd Route:
713 Washington
Chicago ➢Chicago →
597
748 Washington → Dallas
554
→ New York →
803 Atlanta → Philadelphia
→ Chicago.
1374
665 ➢597 + 1185 + 1374
Philadelphia
Dallas 1299 + 748 + 670 + 655 =
585
670 5239
Atlanta
Algorithms in Complete Graphs
F 5 B
7 14 4 11
10 6
5
6
2
E C
8 12
D
The Greedy Algorithm
➢Hamiltonian Circuit is A-D-B-F-E-C-A.
➢Start a vertex A. ➢Weight of circuit is
4+2+5+10+6+15=42
A
13
15 8
F 5 B
7 14 4 11
10 6
5
6
E 2 C
8 12
D
Edge Picking Algorithm
➢Steps:
1. Mark the edge of smallest weight in the graph. (If
two or more edges have the same weight, pick any
one.)
2. Mark the edge of next smallest weight in the graph,
as long as it does not complete a circuit and does
not add a third marked edge to a single vertex.
3. Continue this process until you can no longer mark
any edges. Then mark the final edge that completes
the Hamiltonian circuit.
Edge Picking Algorithm
F 5 B
7 14 4 11
10 6
5
6
2
E C
8 12
D
Edge Picking Algorithm
F 5 B
7 14 4 11
10 6
5
6
2
E C
8 12
D
Edge Picking Algorithm
F 5 B
7 14 4 11
10 6
5
6
2
E C
8 12
D
Edge Picking Algorithm
F 5 B
7 14 4 11
10 6
5
6
2
E C
8 12
D
Edge Picking Algorithm
➢There are two edges that weighs 6, BC and EC. We cannot
pick BC since it would add a third mark edge on vertex B,
hence we will only mark EC.
A
13
15 8
F 5 B
7 14 4 11
10 6
5
6
2
E C
8 12
D
Edge Picking Algorithm
➢We are at Step 3 of the algorithm, any edge we mark will either complete
the graph or add a third edge to a vertex.
➢So we marked the final edge to complete the Hamiltonian circuit, edge FC
A
13
15 8
F 5 B
7 14 4 11
10 6
5
6
2
E C
8 12
D
Edge Picking Algorithm
➢Beginning at vertex A, the Hamiltonian circuit is A-D-B-F-C-E-A (in
reverse direction, A-E-C-F-B-D-A)
➢Total Weight: 4 + 2 + 5 + 14 + 6 + 5 = 36
A
13
15 8
F 5 B
7 14 4 11
10 6
5
6
2
E C
8 12
D
Planarity
➢A puzzle that was posed some time ago goes like
this:
CR SG SG
CR
CD DC CD DC
CO HS HS
CO
SN SN
➢ First time slot: Ski Club, Debate Club, Student Newspaper.
➢ Second time slot: Student Government, Community Outreach
➢ Third time slot: Honor Society, Campus Democrats, Campus Republicans
Thank You!!!