Professional Documents
Culture Documents
ADS PPT A Division Grp18
ADS PPT A Division Grp18
ADS PPT A Division Grp18
Shortest Path
finder using A*
algorithm in a
Graph
Problem Statement
Step 1: Place the starting node into OPEN and find its f (n) value.
Step 2: Remove the node from OPEN, having smallest f (n) value. If it is a goal node then stop and
return
success.
Step 3: Else remove the node from OPEN, find all its successors.
Step 4: Find the f (n) value of all successors; place them into OPEN and place the removed node into
CLOSE. The algorithm makes its decisions is by taking the f-value into
account. The algorithm selects the smallest f-valued cell and moves to
Step 5: Go to Step-2. that cell. This process continues until the algorithm reaches its goal
cell.
Step 6: Exit.
Djikstra’s vs A* algorithm
Djikstra’s algorithm is an uninformed algorithm that finds the shortest distance between 2
points in a graph which takes into consideration all the neighbors of the current node at any
given point and therefore has to deal with more unnecessary data. Especially in cases where
the graph is very big and there are lot of nodes, dijkstra's algorithm is inefficient.
Complexity: N(log n)
Code Implementation
Demonstration
VSCode
● Pygame library(python) to visualise the working
Applications
● Game Development
● Natural Language Processing
● Financial Trading System
● Space Explore
● Maps are implemented using graphs
● In cab services portal where source and destination are given by the user
Result
Also we saw how a* algorithm is better than djikstra’s algorithm to find the
shortest between 2 vertices as we do not have to calculate all possible paths but
only paths that seem appropriate.
Advantages of A * Search
According this study we can say that the A* algorithm is perform better then
the Dijkstra algorithm in all the case (obstacle and without obstacle) except in
uninformed search. The A* algorithm has generated the best shortest path for
other algorithm so that it is the best shortest path search algorithm.
Research Paper Summary
The shortest paths, sets of paths with the shortest distance between a single initial
(source) point and all other destination points, as well as between all pairs of points, are to
be found. For each of these approaches, individual algorithms with specific features have
been worked out over the past decades. Graph-like data appears in many applications,
such as social networks, internet hyperlinks, roadmaps, etc. and in most cases, graphs are
dynamic, evolving through time.In this Project We Try to find the shortest path in a graph
using A* algorithm and draw comparison between A* algorithm and Dijkstra’s algorithm.
Bibliography
● https://en.wikipedia.org/wiki/A*_search_algorithm#Applications
● http://www.hindex.org/2014/p520.pdf
● https://iopscience.iop.org/article/10.1088/1742-6596/1566/1/012061/pdf#:~:t
ext=A*%20algorithm%20is%20just%20like,just%20explore%20all%20possible%
20ways
.
● http://www.ccpo.odu.edu/~klinck/Reprints/PDF/wikipediaNav2018.pdf
Thank You