Professional Documents
Culture Documents
AT2: Graphing The Hospital Floor Problem: Two Floor Plans of A Hospital Floor Are Shown. Draw A Graph That Represents The Floor Plan
AT2: Graphing The Hospital Floor Problem: Two Floor Plans of A Hospital Floor Are Shown. Draw A Graph That Represents The Floor Plan
AT2: Graphing The Hospital Floor Problem: Two Floor Plans of A Hospital Floor Are Shown. Draw A Graph That Represents The Floor Plan
BSPH 1D
Problem: Two floor plans of a hospital floor are shown. Draw a graph that represents the floor plan,
where each vertex represents a room and an edge connects two vertices if there is a doorway between
the two rooms. Is it possible to walk through the hospital and pass through each doorway without going
through any doorway twice? Does it depend on whether you return to the room you started at? Justify
your conclusion.
o It is necessary to find an Euler path in the graph in order to find a travel route that walks
through the hospital and passes through each doorway without passing through any doorway
twice. The Eulerian Graph Theorem states that the graph is Eulerian because the vertices are of
degree 2 or 4, which is supported by the data. As a result, an Euler circuit can be found. That is,
if a person begins and ends in the same room, and if there is a path that allows the person to
visit each passage only once, the person is considered to be in the same room.
IGBALIC, KIMBERLY E.
BSPH 1D
o In this diagram, four vertices are odd degrees and three even degrees. Therefore, it is not the
Eulerian circuit nor Eulerian path. More so, it means that it is impossible to walk through the
hospital without going through any doorway twice. As such, it is also impossible to return to the
room you started since this is not an Eulerian circuit nor an Eulerian path.
AT 2: PH Travel Plan
Problem scenario: Juan wants to tour Philippine Islands. She will start and end his journey in Davao and
visit Cebu, Manila, Siargao, and Iloilo. The promo airfares available to him between places are given in
the table. Draw a weighted graph that represents the travel costs between places and use the greedy
algorithm and edge-picking algorithm to find a low-cost route.
= 3,530
= 2,530
GREEDY ALGORITHM:
EDGE-PICKING ALGORITHM