A* search. heuristic(v) must never overestimate the remaining distance and be consistent. Returns undefined when target is unreachable. Non-negative weights only.
heuristic(v)
undefined
target
A* search.
heuristic(v)must never overestimate the remaining distance and be consistent. Returnsundefinedwhentargetis unreachable. Non-negative weights only.