A* search algorithm - Wikipedia
https://en.wikipedia.org/wiki/A*_search_algorithmA* is an informed search algorithm, or a best-first search, meaning that it is formulated in terms of weighted graphs: starting from a specific starting node of a graph, it aims to find a path to the given goal node having the smallest cost (least distance travelled, shortest time, etc.). It does this by maintaining a treeof paths originating at the start node and extending those paths one edge at a ti…