We have a formula of
g is the path cost and
h is the distance left to the goal.
Given that I only want to move my unit in 4 direction (N,S,E,W), my question is:
Can we consider
h as an input? Because we will choose what heuristic to use? Or not because it's value is given automatically?