Mathematics in The Modern World Module 6
Mathematics in The Modern World Module 6
Belle Donna
Solution: Using the Edge-Picking Algorithm
• To find the route with the least distance that Aaron can take, one
can find a Hamiltonian circuit using the edge-picking algorithm.
• First, mark the line segment from Aaron’s house to Belle’s house,
of weight 1.
• Next, mark the segment from Belle’s to Carol’s house, of weight 2,
followed by Carol’s to Donna’s house, of weight 3, followed by
Eric’s to Fe’s house, of weight 6.
• Take note that we cannot mark the segment from Eric’s house to
Aaron’s house because it can complete a circuit.
Solution: Using the Edge-Picking Algorithm
• Also, we cannot mark the segment from Carol’s to Fe’s house because
it can make the third marked edge on a vertex.
• Finally, to complete the circuit, we mark the line segment from Fe’s
house back to Aaron’s.
• The final Hamiltonian circuit, of the total weight 1 + 2 + 3 + 6 + 9 + 12
= 33, is Aaron’s house – Belle’s house – Carol’s house – Donna’s house
–Eric’s house – Fe’s house and back to Aaron’s house.
• A Hamiltonian circuit forms a complete loop so we can actually start
from any of the vertices.
• It is important to note that we can reverse the direction in which we
follow the circuit.
Topic 4: Graph Coloring
• Graph coloring started in the mid-1800’s when Francis Guthrie
tried to color the map of England so that it would be easy to
distinguish the countries sharing a common border.
• He made sure that countries with the same border must have
different colors.
• After many attempts, he found out that a maximum of four colors
we required to color the map.
Graph Coloring
• In graph coloring, each vertex of a graph will be assigned one
color in such a way that no two adjacent vertices have the same
color.
• The interesting idea here is to determine the minimum number of
distinct colors to be used so that each vertex of a graph is colored
such that no two adjacent vertices have the same color.
• A practical application of the graph coloring problem is in
scheduling meetings or events.
Planar Graph
• A planar graph is a graph that can be drawn so that no edges
intersect each other (except at vertices)
The Chromatic Number of a Graph
• The minimum number of colors needed to color a graph so that
no edge connects vertices of the same color is called the
chromatic number.
2-Colorable Graph Theorem
• A graph is 2-colorable if and only if it has no circuits that consist
of an odd number of vertices.
Four-Color Theorem
• The chromatic number of a planar graph is at most 4.
Example 1:
• Consider the complete graphs K4 and K5 .
• Determine their chromatic number.
Solution:
• First, assign vertex A with one color, say
red, then vertex B with another color,
say blue.
• Since you cannot color two adjacent
vertices using the same color, use green
to color the vertex C, and finally, yellow
to color the vertex D.
• Thus, K4 is fourcolorable.
• It is important to note that K4 is planar,
hence the Four-Color Theorem is
satisfied.
Solution:
• Previously, it is seen that K5 is not
planar so the Four-Color Theorem does
not hold here.
• Now, assign each vertex of the graph
with one color in such a way that no
two adjacent vertices have the same
color as shown below.
• Thus, the chromatic number of K5 is 5.
Example 2:
• Six college accreditation committees need to hold meetings on the
same day, but some teachers belong to more than one committee.
• In order to avoid members missing meetings, the meetings need
to be scheduled at different time slots.
• An “X” in the table on the next page indicates that the two
corresponding committees share at least one member.
• Use graph coloring to determine the minimum number of time
slots necessary to ensure that all faculty members can attend all
meetings.
Example 2:
Solution:
• First, draw a graph representing the six committees using six
vertices or nodes in any configuration.
• An edge connects two committees that share at least one
member.
• Then assign each vertex of the graph with one color in such a way
that no two adjacent vertices have the same color.
Solution:
• Obviously, the graph is not 2-colorable
because there are circuits of odd length,
but the graph is 3-colorable.
• Hence, the minimum number of time
slots necessary to ensure that all faculty
members can attend all meeting is 3.
• First time slot: Faculty Instruction,
Student Welfare
• Second slot: Faculty, Outreach Program
• Third slot: Library Facility, Physical
Facility
Example 3:
• The fictional map on the next
page shows the boundaries of
barangays on a rectangular
town.
• a. Represent the map of a graph
• b. Find a coloring of the graph
using the fewest possible
number of colors
• c. Color the map according to
the graph coloring theorem.
Solution:
• First, represent each barangay
using vertices A, B, C, D, E, F, G,
H, I, and J.
• Second, connect two vertices
with an edge if the two
barangays share the same
boundary.
• Third, color the vertices of the
resulting graph so that no edge
connects two vertices with the
same color. Coloring is not
unique.
Solution:
• Finally, color each barangay in
the map according to the color
of its assigned vertex in the
previous step.
Topic 5: Trees
• A tree is a mathematical structure which is a type of graph which
has the following properties:
• 1. undirected;
• 2. connected (each of the vertices is connected or linked to at
least one other vertex); and
• 3. acyclic (there is only on route from any vertex to any other
vertex or has no cycle).
• An example of a tree is the Philippine Judiciary Organization Chart
as shown in the figure below.
• Some common terminologies related to the graph of trees are
illustrated in the following diagram.
• A full m-ary tree is a tree in which all external vertices are at the
same time depth or has exactly m children.
• Tree T1 in the following figure has exactly two children per vertex
and hence is called a full binary tree.
• Tree T2 is a full ternary tree because each vertex has three child
vertices.
• The height of a rooted tree is
the number of edges along
the longest path from the
root vertex to the farthest
child vertex. Given a full m-
ary tree T of height h, T has:
• The most common application of the tree is determining the
number of matches that must be played to determine the
champion in a single elimination tournament.
Example 1
• A local basketball league implements a new ruling of single-
elimination wherein a team is eliminated after a single loss. If
there are 16 teams to compete in the tournament, how many
matches must be played to determine the champion?
Solution:
• The number of teams represent the terminal vertices so t =16. It is
a binary tree since there are two teams competing in each ball-
game, thus m = 2.
• Substituting the values of t and m to determine the number of
internal vertices, we get: