AT2: Graphing the hospital floor
Expected Output: Graphing and Analysis (Individual Activity)
Instruction: Using a bond paper or any computer software, answer the following problem.
USE BLACK INK ONLY AND WRITE CLEARLY.
Problem:
Two floor plans of a hospital floor is 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.
Since there are four vertices with odd degrees, there is no Euler path Theorem by the
Euler path. There is an Eulerian circuit since the degree of every vertex is even.
Therefore, if there is an Eulerian circuit, If a person begins in the same room, a route
allows the individual to visit each passage once.
According to the Eulerian Theorem, the graph is Eulerian since each vertex is of degree 2
or 4. As a result, an Eulerian circuit exists. If a person begins in the same room, there is a
route that allows the individual to visit each passage once.
AT 2: PH Travel Plan
Expected Output: Travel Graph and Budget-wise 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.
Destinations Davao Cebu Manila Siargao Iloilo
Davao - Php 845 Php 1275 Php 470 Php 880
Cebu Php 845 - Php 320 Php 515 Php 340
Manila Php 1275 Php 320 - Php 520 Php 365
Siargao Php 470 Php 515 Php 520 - Php 225
Please refer to the weighted graph above
GREEDY ALGORITHM:
Davao-Surigao-IloIlo-Cebu-Manila-Davao
EDGE-PICKING ALGORITHM
Siargao-IloIlo-Cebu-Manila-Davao-Siargao