by forsythe · 6y ago · 0 comments
I got my knowledge about heuristics from here:
http://theory.stanford.edu/~amitp/GameProgramming/Heuristics...
But in a problem where the algorithm can get stuck in dead-ends, it's possible to construct examples where the greedy heuristic is (much) slower than plain Manhattan distance. Here's an example:
xxx
xEx
x x
x x
x x
x x
Sxxxxxxxxxxxxxx x
x
xxxxxxxxxxxxxxxx