[Solved] Value of f in A* algorithm [closed]


f(x) would be 0.
But this should hardly ever occur.
g(x)=0 means you had no costs to reach x (should only be the case for the starting point)
h(x)=0 means the heuristics says that the costs to reach the goal from x costs not more than 0 (means that you are at the goal)

so f(x)=0 should only be possible if you start at the goal.

solved Value of f in A* algorithm [closed]