Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sciolizer
· 14y ago · 0 comments
I found a bug.
A*, Chebyshev, Allow Diagonal:
WWWWWW GWR WWWWW
Optimal path should go underneath, but the simulator chooses to go over.
Comments
[–]
teamonkey
14y ago
A* isn't guaranteed to find the best route. Since the algorithm stops as soon as a route is found, a bad heuristic can make it find a relatively poor path.