Dijkstra's Algorithm Mathematical Model
Dijkstra's Algorithm Mathematical Model
Austria, Lorielyn
Precilla, Damace
December, 2018
1
I. BACKGROUND OF THE STUDY
People usually passes by in a path where they can save time, energy and arrive to a
certain place with a shorter amount of time (I.P Putri, 2012). A process of seeking a path from one
point to another is called path finding. It is usually defined as a method of finding a path between
two points in a certain environment. Dijkstra’s algorithm is also known as the single-source
shortest path problem. It computes the length of the shortest path from the source to each vertex
on the plot. (A.S Alija). One of the many algorithms that can be used to compute shortest path is
Dijkstra’s algorithm. It is published by Edsger Wybe Dijkstra on 1959 and one of the most
discussed algorithms (Penge and Cortes, 2013). It is defined as one by one procedure that enable
Shortest path algorithm is now on its wide extent. It was used in the context of road
networks and mapping application which produce significant results. Different aspect of society
also proved that shortest path algorithm is very useful. In Business Industry, knowing the shortest
path helps them to monitor and determine the flow of goods from industry to its destination. This
can reduce the cost and time of travel and can deliver the goods in a fastest way (Ojekudo, Japan
2017). Determining the shortest path has a big contribution in times of emergency especially in
responding to road accidents (E.O Amoako). Similarly, it plays a big role in finding the shortest
route in one building with a single door for evacuation or exit (Oyolo, Romero and Vintimilla)
From the scientific point of view, take a closer look at route planning. It has captured a
considerable attention during the last decades by computer scientists and many efficient
approaches tackling this problem were came from graph and algorithms. (Moris, 2012)
2
Objectives:
1. To determine the most convenient way to reach a certain destination inside the FAITH campus
2. To make it easier for FAITH community to know the exit shortcuts in case of emergency.
3. To minimize the time in reaching a certain area in FAITH campus going inside or outside the
north gate.
3
II. PRELIMINARY CONCEPTS
Dijkstra’s algorithm depends on the relaxation principle where the shortest distance for all
vertices is gradually replaced by more accurate values until eventually reaching the optimum
solution. FAITH campus had many routes to go through, but the students are not aware on the
shortest path that can minimize the time to arrive in a certain place. Using Dijkstra’s algorithm,
the researchers determined the most convenient route that can contribute for the FAITH
There are detailed steps used in Dijkstra’s algorithm to find the shortest path from a single
- First create a set sptSet (shortest path tree set) that keeps track of vertices included in
shortest path tree, i.e., whose minimum distance from source is calculated and finalized.
- Second, assign a distance value to all vertices in the input graph. Initialize all distance
values as INFINITE. Assign distance value as 0 for the source vertex so that it is picked
first.
- Lastly, while sptSet doesn’t include all vertices pick a vertex u which is not there in
sptSet and has minimum distance value. Include u to sptSet. Update distance value of
- To update the distance values, iterate through all adjacent vertices. For every adjacent
vertex v, if sum of distance value of u (from source) and weight of edge u-v, is less
4
The researchers point out different areas in FAITH campus and made a representation
graph. Using the graph and 12 tape measures that served as the basis for the researchers to measure
all the possible routes. The inches were converted into feet to get a smaller unit. In line with this,
the researchers solved all the measurements of different routes using algorithms. In addition, with
the use of said mathematical method the researchers determined the shortest route in reaching a
certain destination in FAITH campus. The shortest paths that will be discussed in this paper are
only paths coming from the starting point or source point 1 which is the north gate.
5
III. RESULTS AND DISCUSSION
After the gathering of measurements of the campus, the representation graph were made
and labeled for a better visualization of the problem. (Attached A3 Paper). “ft.” is used as the
After labeling the graph, the process of Dijkstra’s Algorithm is used to determine the
Solution:
Red – Retain the previous lowest weight or there is an updated and much lower weight.
The corresponding sequence of numbers in the opposite of the green measures (final weight)
stands for the path to go through from the starting point (North Gate)
“No Change” means that the addition of another vertices has no connecting edges or all the
S=Ø
T(1)= 0 (1)
S= {1}
t(2)={∞,0+34}
=34 ft. (1-2)
t(3)={∞,0+106.25}
=106.25 ft. (1-3)
S= {1,2}
t(4)={∞,34+50}
=84 ft. (1-2-4)
t(5)={∞,34+73.5}
=107.5 ft. (1-2-5)
t(6)={∞,34+73.33)
=107.33 ft. (1-2-6)
6
S={1,2,4}
t(3)={106.25, 84+117.17}
=106.25
t(7)={∞, 84+73.33}
=157.33 ft. (1-2-4/6-7)
t(8)={∞, 84+45}
=129 ft. (1-2-4-8)
t(9)={∞,84+172.25}
=256.25 ft. (1-2-4-9)
S={1,2,4,3}
t(9)={256.25, 106.25+155}
=256.25
S={1,2,4,3,6}
t(7)={157.33,107.33+50}
=157.33
t(11)={∞,107.33+11.67}
=119 ft. (1-2-6)
t(10)={∞,107.33+94}
=201.33 ft. (1-2-6-10)
S={1,2,4,3,6,5}
t(12)={∞,107.5+43.42}
=150.92 ft. (1-2-5-12)
S={1,2,4,3,6,5,11}
t(13)={∞,119+54.33}
=173.33 ft. (1-2-6-11-13)
t(10)={201.33, 119+105}
=201.33
S={1,2,4,3,6,5,11,8}
t(14)={∞,129+70}
=199 ft. (1-2-4-8-14)
S={1,2,4,3,6,5,11,8,12}
t(13)={173.33, 150.92+30}
=173.33
t(15)={∞,45.54+150.92}
=196.46 ft. (1-2-5-12-15)
S={1,2,4,3,6,5,11,8,12,7}
t(16)={∞,157.33+79.17}
=236.5 ft. (1-2-4/6-7-16)
7
t(17)={∞,157.33+79.17}
=236.5 ft. (1-2-4/6-7-17)
t(18)={∞, 157.33+70}
=227.33 ft. (1-2-4/6-7-18)
t(10)={201.33, 157.33+94)
=201.33
S={1,2,4,3,6,5,11,8,12,7,13}
t(19)={∞,173.33+40}
=213.33 ft. (1-2-6-11-13-19)
t(28)={∞,173.33+39}
=212.33 ft. (1-2-6-11-13-28)
t(29)={∞,173.33+52.08}
=225.41 ft. (1-2-6-11-13-29)
t(20)={∞,47.5+173.33}
=220.83 ft. (1-2-6-11-13-20)
t(15)={196.46, 173.33+52.08}
=196.46
S={1,2,4,3,6,5,11,8,12,7,13,15}
t(28)={212.33,196.46+75)
=212.33
t(20)={220.83,196.46+30}
=220.83
t(30)={ ∞,196.46+75}
=212.33 ft. (1-2-5-12-15-30)
t(21)={ ∞,196.46+49.33}
=254.79 ft. (1-2-5-12-15-21)
t(22)={ ∞,196.46+47.31}
=244.17 ft. (1-2-5-12-15-22)
S={1,2,4,3,6,5,11,8,12,7,13,15,14}
t(23)={ ∞,199+50.58}
=249.58 ft. (1-2-4-8-14-23)
t(17)={236.5, 199+48.42}
=236.5
t(16)={236.5, 199+48.42}
=236.5
t(9)={256.25, 199+107.17}
=256.25
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10}
t(18)={227.33, 201.33+63}
=227.33
8
t(24)={ ∞,201.33+194}
=395.33 ft. (1-2-6-10-24)
t(26)= {∞,201.33+45}
=246.33 ft. (1-2-6-10-26)
t(27)={ ∞, 201.33+210}
=411.33 (1-2-6-10-27)
t(25)={ ∞, 201.33+86}
=287.33
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28}
t(25)={287.33, 212.33+45}
=257.33 ft. (1-2-6-11-13-28-25)
t(34)={ ∞, 212.33+64}
=276.33
t(29)={225.41,212.33+22.79}
=225.41
t(20)={220.83, 212.33+46.08}
=220.83
t(19)={213.33, 212.33+30}
=213.33
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30}
t(34)={276.33, 212.33+45}
=251.33 ft. (1-2-5-12-15-30-34)
t(25)={257.33, 212.33+64}
=257.33
t(29)={225.41,212.33+22.79}
=225.41
t(20)={220.83,212.33+46.25}
=220.83
t(21)={245.79, 212.33+39}
=245.79
t(32)={ ∞, 212.33+30}
=242.33 ft. (1-2-5-12-15-30-32)
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19}
No change
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19,20}
t(29)={225.41, 220.83+40}
=225.41
t(21)={245.79,220.83+55}
=245.79
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19,20,29}
t(21)={245.79, 225,41+49.33}
9
=245.79
t(34)={276.33, 225.41+50.44}
=257.33
t(25)={287.33, 225.41+50.44}
=275.85
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19,20,29,18}
t(23)={249.58, 227.33+140}
=249.58
t(24)={395.33, 227.33+214}
=395.33
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19,20,29,18,16,17}
No change
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19,20,29,18,16,17,32}
t(33)={ ∞,242.33+45}
=287.33 ft. (1-2-5-12-15-30-32/34-33)
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19,20,29,18,16,17,32,22}
t(21)={245.79, 244.17+30}
=245.79
t(31)={ ∞, 244.17+30}
=274.17 ft. (1-2-5-12-15-22-31)
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19,20,29,18,16,17,32,22,21}
t(36)={ ∞,245.79+42.58}
=288.37 ft. (1-2-5-12-15-21-36)
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19,20,29,18,16,17,32,22,21}
T (54)={ ∞, 246.33+60}
=306.33 ft. (1-2-6-10-26-54)
T (53)={ ∞,246.33+120}
=366.33
T (34)={257.33, 246.33+85}
=257.33
T (25) ={257.33, 246.33+60}
=257.33
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19,20,29,18,16,17,32,22,21,26,23}
No change
S={1,2,4,3,6,5,11,8,12,7,13,15,14,10,28,30,19,20,29,18,16,17,32,22,21,26,23,9}
No change
10
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25}
T (60) = {∞, 257.33+215}
= 472.33
T (58) = {∞, 257.33+202.92}
= 460.25
T (53) = {366.33, 257.33+116}
= 366.33
T (52) = {∞, 257.33+120}
= 377.33
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34}
T (33) = {287.33, 257.33+30}
= 287.33
T (52) = {377.33, 257.33+117.25}
= 374.58
T (53) = {366.33, 257.33+63}
= 472.33 ft. (1-2-5-12-15-30-34-53)
T (58) = {460.25, 257.33+198.33}
= 455.66 ft. (1-2-5-12-15-30-34-58)
T (60) = {472.33, 257.33+225}
= 472.33
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31}
No Change
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33}
T (53) = {320.33, 287.33+445}
= 320.33
T (52) = {374.58, 287.33+55}
= 342.33 ft. (1-2-5-12-15-30-32/34-33-52)
11
T (48) = {∞, 287.33+50}
= 337.33 ft. (1-2-5-12-15-30-32/34-33-48)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36}
T (48) = {337.33, 287.37+90}
= 337.33
T (37) = {∞, 288.37+135.58}
= 423.95 ft. (1-2-5-12-15-22-21-36-37)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54}
T (27) = {441.33, 306.33+138.177}
= 411.33
T (60) = {472.33, 306.33+157.50}
= 463.83
T (58) = {455.66, 306.33+150}
= 455.66
T (59) = (∞, 306.33+102}
= 408.33 ft. (1-2-6-10-26-54-59)
T (55) = {∞, 306.33+120}
= 426.33
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53}
T (55) = (426.33, 320.33+55}
= 375.33 ft. (1-2-5-12-15-30-34-53-55)
T (52) = {342.33, 320.33+37}
= 342.33
T (48) = {337.33, 320.33+53}
= 337.33
12
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48}
T (51) = {∞, 337.33+90}
= 427.33
T (47) = (∞, 337.33+71.08}
= 408.41 ft. (1-2-5-12-15-30-32/34-33-55-48-47)
T (52) = {342.33, 337.33+43.33}
= 342.33
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52}
T (56) = (∞, 342.33+60}
= 402.33 ft. (1-2-5-12-15-30-32/34-33-52-56)
T (51) = (427.33, 342.33+75.83}
= 418.16 ft. (1-2-5-12-15-30-32/34-33-55-51)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55}
T (59) = {408.33, 375.33+90}
= 408.33
T (58) = {455.66, 375.33+121.5}
= 455.66
T (60) = {463.83, 375.33+165}
= 463.83
T (56) = {402.33, 375.33+37}
= 402.33
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24}
T (35) = (∞, 395.33+140}
= 535.33 ft. (1-2-6-10-24-35)
T (27) = {411.33, 395.33+175}
13
= 411.33
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56}
T (57) = (∞, 402.33+104.5}
= 506.83 ft. (1-2-5-12-15-30-32/34-33-52-56-57)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59}
T (27) = {411.33, 408.33+90}
= 411.33
T (57) = {506.83, 408.33+115}
= 506.83
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47}
T (51) = {427.33, 408.41+55}
= 427.33
T (49) = {∞, 408.41+90}
= 498.41
T (43) = {∞, 408.41+30}
= 438.41 ft. (1-2-5-12-15-30-32/34-33-48-47-43)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27}
T (61) = {∞, 411.33+70}
= 481.33 ft. (1-2-6-10-27-61)
T (62) = {∞, 411.33+104}
= 515.33 ft. (1-2-6-10-27-62)
T (60) = (463.83, 411.33+40.75}
= 452.08 ft. (1-2-6-10-27-60)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51}
14
T (69) = (∞, 418.16+114.67}
= 532.83 ft. (1-2-5-12-15-30-32/34-33-52-51-69)
T (49) = (498.41, 418.16+80}
= 498.16 ft. (1-2-5-12-15-30-32/34-33-52-51-49)
T (43) = {438.41, 418.16+72}
= 438.41
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37}
T (40) = (∞, 423.95+5.83}
= 429.78 ft. (1-2-5-12-15-22-21-32-37-40)
T (38) = (∞, 423.95+14.3}
= 438.25 ft. (1-2-5-12-15-22-21-36-37-38)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 40}
T (41) = (∞, 429.78+15.42}
= 445.20 ft. (1-2-5-12-15-22-21-36-37-40)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43}
T (42) = {∞, 438.41+45}
= 483.41
T (44) = {∞, 438.41+11.25}
= 449.66 ft. (1-2-5-12-15-30-32/34-33-48-47-43-44)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38}
T (45) = {∞, 438.25+85}
= 523.25
T (39) = {∞, 438.25+60}
= 498.25 ft. (1-2-5-12-15-22-21-36-37-38-39)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41}
T (42) = {483.41, 445.2+12.5}
15
= 457.70 ft. (1-2-5-12-15-22-21-36-37-40-41-42)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44}
T (49) = {498.16,449.66+55}
= 498.16
T (45) = {523.25, 449.66+41.67}
= 491.33 ft. (1-2-5-12-15-30-32/34-33-48-47-43-44-45)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60}
T (58) = {455.66, 452.08+50}
= 455.66
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58}
T (57) = {506.83, 455.66+110.83}
= 506.83
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42}
No Change
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61}
No Change
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45}
T (49) = {498.16, 491.33+57.42}
= 498.16
T (50) = {∞, 491.33+37.17}
= 528.5
T (46) = {∞, 491.33+20.17}
= 511.50 ft. (1-2-5-12-15-30-32/34-33-48-47-43-44-45-46)
16
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49}
T (50) = {528.5,498.16+25}
= 523.16 ft. (1-2-5-12-15-30-32/34-33-52-51-49-50)
T (76) = {∞, 498.16+114.67}
= 612.83 ft. (1-2-5-12-15-30-32/34-33-52-51-69/49-70)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57}
T (65) = {∞, 506.83+43.5}
= 550.33 ft. (1-2-5-12-15-30-32/34-33-52-56-57-65)
T (66) = {∞, 506.83+20}
= 526.83 ft. (1-2-5-12-15-30-32/34-33-52-56-57-66)
T (68) = {∞, 506.83+30}
= 536.83 ft. (1-2-5-12-15-30-32/34-33-52-56-57-68)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57, 46}
No Change
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62}
T (63) = {∞, 515.33+50}
= 565.33 ft. (1-2-6-10-27-62-63)
T (64) = {∞, 515.33+50}
= 565.33 ft. (1-2-6-10-27-62-64)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50}
T (80) = {∞, 523.16+60}
17
= 583.16 ft. (1-2-5-12-15-30-32/34-33-52-51-49-50-80)
T (81) = {∞, 523.16+110}
= 633.16 ft. {1-2-5-12-15-30-32/34-33-52-51-49-50-81)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66}
T (65) = {550.33, 526.83+30}
= 550.33
T (67) = {∞, 526.83+28.25}
= 555.08 ft. {1-2-5-12-15-30-32/34-33-52-56-57-66-67)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69}
T (68) = {536.83, 532.83+30}
= 536.83
T (70) = {612.83, 532.83+80}
= 612.83
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39}
No Change
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35}
No Change
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68}
T (67) = {555.08+536.83+38.42}
= 555.08
T (71) = {∞, 536.83+80}
18
= 616.83 ft. {1-2-5-12-15-30-32/34-33-52-56-57-68-71)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65}
T (64) = {565.33, 550.33+100}
= 565.33
T (63) = {565.33, 550.33+93.25}
= 565.33
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67}
T (72) = {∞, 555.08+90}
= 645.08 ft. (1-2-5-12-15-30-32/34-33-52-56-57-66-67-72)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64}
No Change
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80}
T (79) = {∞, 583.16+30}
= 613.16 ft. (1-2-5-12-15-30-32/34-33-52-51-49-50-80-79)
T (82) = {∞, 583.16+110}
= 693.16 ft. (1-2-5-12-15-30-32/34-33-52-51-49-50-80/81-82)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70}
T (71) = {616.83, 612.83+30}
= 616.83
T (77) = {∞, 612.83+50}
19
= 662.83
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79}
T (78) = {∞, 613.16+6.25}
= 619.41 ft. {1-2-5-12-15-30-32/34-33-52-51-49-50-80-79-78)
T (83) = {∞, 613.16+110}
= 723.16 ft. {1-2-5-12-15-30-32/34-33-52-51-49-50-80-79-83)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71}
T (72) = {645.08,616.83+60}
= 645.08
T (77) = {662.83, 616.83+31.67}
= 648.50 ft. (1-2-5-12-15-30-32/34-33-52-56-57-68-71-77)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78}
T (77) = {648.5, 619.41+30}
= 648.50
T (85) = {∞, 619.41+112.5}
= 731.91
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81}
T (82) = {693.16, 633.16+60}
= 693.16
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81, 72}
T (73) = {∞, 645.08+60}
= 705.08 ft. (1-2-5-12-15-30-32/34-33-52-56-57-66-67-72-73)
20
T (74) = {∞, 648.08+125.83}
= 770.91 ft. (1-2-5-12-15-30-32/34-33-52-56-57-66-67-72-73-74)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81, 72, 77}
T (75) = {∞, 648.5+30}
= 678.50 ft. (1-2-5-12-15-30-32/34-33-52-56-57-68-71-77-75)
T (76) = {∞, 648.5+30}
= 678.50 ft. (1-2-5-12-15-30-32/34-33-52-56-57-68-71-77-76)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81, 72, 77, 75}
T (74) = {770.91, 678.5+120}
= 770.91
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81, 72, 77, 75, 76}
T (74) = {770.91, 675.5+135}
= 770.91
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81, 72, 77, 75, 76, 82}
T (83) = {723.16, 693.16+30}
= 723.16 ft. (1-2-5-12-15-30-32/34-33-52-51-49-50-80/81-82-83)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81, 72, 77, 75, 76, 82,
73}
T (74) = {770.91, 705.08+150}
= 770.91
21
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81, 72, 77, 75, 76, 82,
73, 83}
T (84) = {∞, 723.16+28.33}
= 751.49 ft. (1-2-5-12-15-30-32/34-33-52-51-49-50-80/81-82-83-84)
T (85) = {731.91, 723.16+6.25}
= 729.41 ft. (1-2-5-12-15-30-32/34-33-52-51-49-50-80/81-82-83-85)
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81, 72, 77, 75, 76, 82,
73, 83, 85}
T (74) = {770.91, 729.41+124}
= 770.91
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81, 72, 77, 75, 76, 82,
73, 83, 85, 84}
No Change
S = {1, 2, 4, 3, 6, 5, 11, 8, 12, 7, 13, 15, 14, 10, 28, 30, 19, 20, 29, 18, 16, 17, 32, 22, 21, 26, 23,
9, 25, 34, 31, 33, 36, 54, 53, 48, 52, 55, 24, 56, 59, 47, 27, 51, 37, 43, 38, 41, 44, 60, 58, 42, 61,
45, 49, 57,46, 62, 50, 66, 69, 39, 35, 68, 65, 67, 63, 64, 80, 70, 79, 71, 78, 81, 72, 77, 75, 76, 82,
73, 83, 85, 84,74}
No Change
After the results has been calculated, it can be noted there the different shortest path
To look for the shortest paths of a particular area, look for that area’s vertices on the
graph representation and look for its path in the green values in the solution area.
22
Shortest Path from North Gate to Mabini Building
t(13)={∞,119+54.33}
=173.33 ft. (1-2-6-11-13)
Since vertex 13 correspond to the Mabini Building, look for vertex 13 which has green
highlight which means it is the final weight and look for its path. To be able to reach the Mabini
building at a short path, it should walk along the path from 1 going to 2, followed by 6 and l1
t(14)={∞,129+70}
=199 ft. (1-2-4-8-14)
The shortest path from north gate to the NuSpace Building is passing through the points 1
23
Shortest Path from North Gate to College Lobby
t(29)={∞,173.33+52.08}
=225.41 ft. (1-2-6-11-13-29)
The shortest path from north gate to the College lobby is walking through the points 1 –
2, followed by 6 – 11, then 13, and lastly is 29 which is the College Lobby.
t(24)={ ∞,201.33+194}
=395.33 ft. (1-2-6-10-24)
The shortest path from north gate to the ASEAN Residences is going through the points 1
24
Shortest Path from North Gate to College Promenade
The shortest path from north gate to the College Promenade is passing through the points
1 – 2 – 6 – 10 – 26- 54, and lastly is 24 which is the Middle of the College Promenade.
1 – 2 – 5 – 12 – 15- 30, followed by 32 or 34 because it has the same length. Next is point 33 –
25
The process goes the same as long as the correct (green) weight and path is used. This goes apply
on all vertices that correspond to every facilities and places in the FAITH Campus. Shortest path
can be found by just following the sequence of points, of the correct weight, that it will go
through.
26
REFERENCES
Alija A.S. (2015) Analysis of Dijkstra’s And A* Algorithm to Find the Shortest Path Retrieved
from: http://eprints.uthm.edu.my/7478/1/AMANI_SALEH_ALIJA.pdf
Putri I. P. (2012) Shortest Path Trajectory System Based On Dijkstra Algorithm Retrieved from:
http://etd.uum.edu.my/3306/4/INDAH_PRATIWI_PUTRI.pdf
27