Module 3 Topic 3 Lesson 2B Weighted Graphs PDF
Module 3 Topic 3 Lesson 2B Weighted Graphs PDF
Module 3 – Topic 3
Graph Theory
Lesson 2B: Weighted Graphs
Introduction
In many applications, you can use the edges or the vertices of a
graph to represent real-life metrics. In navigation, for example, the
vertices may mean destinations while the edges may mean the
distance or cost of traveling from one point to another. In
communication network, the edges may indicate loading capacity.
Informally, any value that is assigned to the edges is called weight. In
such cases, the question of whether the graph is Eulerian or
Hamiltonian should no longer be constrained to utilizing the vertices
or edges of the graph, but to make the process more efficient by
optimizing the weights in the graph.
Assigning weights to the edges of a graph is the labeling aspect of a
graph. Graph labeling has become one rich area of graph theory in
terms of research opportunities because of the unlimited areas where
this concept can be applied.
Learning Outcomes
B
-A graph is considered weighted if A 8
its edges are assigned numeric
values called weights. 2
D 5 C
Weighted K4
Illustration
One problem that can be addressed with A 8 B
weighted graphs is to traverse all the vertices
through the least total weights possible. 2
D 5 C
Weighted K4
The Greedy Algorithm
A 8 B A 8 B A 8 B A 8 B
2 2 2 2
6 3 6 3 6 3 6 3
4 4 4 4
D 5 C D 5 C D 5 C D 5 C
2 + 3 + 4 + 6 = 15
Example
Egay is tasked to distribute examination papers during the quarterly
examination of the mathematics department. From the office, he has
to bring the test papers and answer sheets to four examination areas
in the campus: North Building, South Building, West Building, and
Southwest Building. The table below summarizes the roaming time
from one area to other areas. Determine the roaming route that gives
the least time for the distribution of the examination materials.
Example
Example
Possible routes:
Office-South-Southwest-West-North-Office
Office-North-West-Southwest-South-Office