These algorithems can be used in pathfinding and graph traversal, the process of plotting an efficiently directed path between multiple points, called nodes.
Formula for a* is f =g + h.
, g
means actual cost and h means heuristic cost.
formula for Dijktras is f = g
. there is no heuristic cost. when we are using a*
and if heuristic cost is 0
then it'll equal to Dijktras algorithem.