A Study On Bellman Ford Algorithm For Shortest Path Detection in Global Positioning System
A Study On Bellman Ford Algorithm For Shortest Path Detection in Global Positioning System
https://doi.org/10.22214/ijraset.2022.42720
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
Abstract: This is the Master of Technology project report of Mr. Avinish Rai (Roll No- MT/CS/45001/20), final year student in
the department of Computer Science and Engineering, Birla Institute of Technology, under the supervision and guidance of Dr
Ila Sahay Dayal.
The thesis deals with Bellman ford algorithms is used to find the optimal shortest path between two or more than two nodes in
the graph or in the tree. In this paper we add this bellman ford functionality in the G.P.S. this algorithm will work as the
parameter in this and use from the initial node to target or source node. We will do the comparative and mathematical studies
between both Dijkstra’s and Bellman ford algorithm which will give optimal results.
I. INTRODUCTION
A. Introduction to G.P.S.
1) Global Positioning System (GPS)
GPS has a system of more than 30 plus navigating satellites orbiting around earth. It constantly sends out signals. It constantly sends
the signals once it receives it calculate using mathematical calculation to get path.
a) Locate the position.
b) Use map to find one location to another.
c) Create digital maps.
2) Working of G.P.S.
Each GPS satellite send signals to allow a GPS receiver to calculate the location of the satellite. GPS receivers know this help in
mathematical calculations to determine. To calculate the location of the user and show it on electronic device which is called
“Trilateration”. 2D position and tracking movement, the GPS unit must lock on to the radio signal on three satellites (Figure – 1).
Figure – 1
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2118
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
Figure – 2
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2119
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
IV. PROPOSED MODEL FLOW CHART SHOWS HOW BELLMAN FORD WORKS IN GPS.
A flowchart has been prepared and it shows that how our algorithm work when we implement that in G.P.S. system and flowchart
in Figure - 3 is given below.
Initial Best Route
Reach an intersection
(Yes)
Is an
update Does this
received? update
impact the
best route?
(No) Follow the same
rule.
Figure – 3
V. DIJKSTRA’S ALGORITHMS
Dijkstra’s algorithms were invented by the mathematician edger Dijkstra’s and published in his research paper in year 1959
implemented on graph which is used to solve the single source short path problem in graph.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2120
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
7) distance[source] 0
8) while G is filled do:
9) U in G from main distance[x]
10) discard x from G
11) for each neighbor i of x:
12) alt distance [x] + length(i,x)
13) If alt< distance[i]
14) distance[i] alt
15) previous[i]x
16) end while
17) return
Figure – 4
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2121
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
Figure – 5
2) Therefore, a sub path is the short path, so Source → x = shortest path Source → z ∪ z → x. So, distance (Source,
x) = distance (Source, z) + distance (z, x). we conclude that
3) Distance (Source, x) <= D (Source, z) = d(source, y) + cost (y , z) <= distance(source, y) + cost(y, z) + d(z, x) =
distance(source, x)
4) Distance (Source, x) > distance (source, x) Hence this statement is false.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2122
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
5) distance[s]0
6) for each node V in G
7) for each edge( i, x) in G
8) alt distance[i]+length( i ,x )
9) if alt<distance[x]
10) distance[x] alt
11) previous[x]u
12) for single edge (i, x) in G
13) if distance[i] + length( i, x)<distance(x)
14) return
Figure – 6
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2123
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
VIII. PROPOSED ALGORITHMS FOR SHORTEST PATH DETECTION USING BELL MAN FORD
ALGORITHMS IN G.P.S.
1) Single Source point( H, s)
2) for i 1 to |v[H]| - 1
3) do for each edge (z , x) = E[G]
4) do RELAX (z, x, y)
5) for each edge (z, x) = E[H]
6) d[x] > d[z] + w(z, x)
7) then return false
8) Return true.
Figure – 7
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2124
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
Number N (path Position from Dista Path to Path to Path to Path to Path to
of steps. travelled) source to nce destination destination destination destination destination
target
1 a 23 00 5(ac)
2 ab 57 05 3(ab)
3 abc 811 01 4(abc)
0
4 abce 1115 01 5,abd
5
5 abcd 1419 02 4(abe)
e 0
6 abcd 1723 02 7(abe
e 5 f)
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2125
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
As you can see the above result, we concluded that if we apply Bellman ford algorithm on the global positioning system software it
can give us the optimal path and without travelling the all possible shortest path it cover only the main node and it can use the
negative path and search for optimal path to cover small distance and cover less node and give the shortest path but the cost will be
same for both algorithm. This bellman ford visit the vertex more than once but the Dijkstra Algorithms don’t, so that’s why it’s give
us optimal and correct distance between initial node to target node.
B. Future Scope
The above results give us the optimal distance, but the complexity is not better than Dijkstra’s, many techs giant company like Uber,
Ola, Quick ride, Tesla etc. modify and develop these new algorithms with existing algorithms in this paper try to develop algorithm
based on bellman ford which is like it. But all these algorithms are built and implemented in the known environment where we can
get the map from the satellite, but what will happen when we are in unknow environment how can we get the optimal path, but this
research are further part of the artificial intelligence Cornell university professor and research scientist develop Physical-A*
algorithm (PHA*) to detect path in other unknown environments.
BIBLIOGRAPHY
[1] Pooja Singal, R.S. Chillar “Dijkstra shortest path in global positioning system”, International Journal of Computer application volume -101-No.6, September
2014, https://www.ijcaonline.org.
[2] MS Kalpana, Mr. Abhishek Tyagi “Bellman ford shortest path in global positioning system”, International Research Journal of Engineering and Technology
volume – 4, issue – 4|Apr-2017 www.irjet.net.
[3] Graph Theory by Narsingh Deo, mathematical application of Dijkstra and bellman ford in Graph Theory, Chapter -11 Graph theoretic algorithm and computer
program, Dover Publication – 2016.
[4] Mathematics for Computer science by Tom Leighton Lecture-6 Graph theory and coloring, MIT Open courseware, issue – Fall 2010, ocw.mit.edu.
[5] Introduction to Data structure and Algorithms by Dr Naveen Garg (IIT DELHI), Lecture-7 Trees walks, NPTEL, Date – 24 /sept /2008,
https://nptel.ac.in
[6] Jitendra Bahadur Singh, RC Tripathi “Investigation of Bellman-Ford Algorithms, Dijkstra Algorithms for suitability of SPP”, Volume-6, Issue 1, Date –
2018, www.ijedr.org.
[7] Design and analysis of algorithms by Madhav Mukund (Chennai Mathematical Institute), Lecture- 25, 26, NPTEL. Date 26 August 2019
http://onlinecourses.nptel.ac.in/noc19_cs47/preview.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2126