What is the primary purpose of Dijkstra’s Algorithm?
It solves a fundamental network problem.
To find the shortest path (or minimum cost path) from a given origin node to all other nodes in a network.
It builds a “shortest path tree” rooted at the origin.
What is the key difference in how Dijkstra’s and A* select the next node to explore?
Dijkstra’s uses the one with the least cost from the origin. A* uses the cost from the origin PLUS an estimated cost to the destination.
This heuristic guides A* towards the goal, making it faster.
Why was the A* algorithm developed as an alternative to Dijkstra’s?
It addresses a specific weakness.
Because Dijkstra’s can be prohibitively slow for certain large networks.
A* is often described as a “guided” or “informed” search.