Skip to content

sammmy047/PathFinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PathFinding using A* algorithm

This project used the A* Search Algorithm, which is one of the search algorithms for finding the shortest path between nodes or graphs by using information about path cost and heuristics, as the standard shortest path to compare with the path generated by users. The application was also designed using Java. Currently, A* Search Algorithm is one of the popular techniques used in pathfinding algorithms and graph traversals in many applications. Because of its efficiency, in a square grid that has many obstacles, A* Search Algorithm can reach the target cell from the starting cell as quickly as possible by picking the node at every step based on the ‘f’ value, which is a parameter equal to the sum of the two parameters ‘g’ and ‘h’ values. Therefore, in every step, while traversing through the map, the Algorithm picks the node or cell that has the lowest ‘f’ and processes that node or cell.

Implementation of A* Algorithm: Here the start position is represented by the blue color tile and the target is represented by the yellow color tile. Here we add barriers using the black tiles to indicate that the specific path is blocked.

image

Here the red tiles are used to represent all the possible paths that have been explored by the algorithm in-order to determine the optimal path.

image

Here the green tiles are use to represent the optimal path that has been discovered by the A* algorithm keeping track of the various obstacles present.

image

About

Path Finding using A* alogrithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages