A * algorithm is a searching algorithm that searches for the shortest path between the initial and the final state.
f(n) =g(n) + h(n)
g(n) = Actual cost from Start node to n node
h(n) = Estimation Cost from n to Goal node.
Time complexity = O(Node + Edges) = O(bd)
Space complexity = O(bd)