You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was under the impression that the implementation of heuristic_cost_estimate should only affect performance, not results. But in this case, I'm seeing one implementation causes the result to be wrong:
This would print [1, 15] which has a cost of 3. If I use the actual implementation of distance_between for heuristic_cost_estimate (the commented line), I get [1, 4, 15] which with a cost of 2 is the correct result.
The text was updated successfully, but these errors were encountered:
I was under the impression that the implementation of
heuristic_cost_estimate
should only affect performance, not results. But in this case, I'm seeing one implementation causes the result to be wrong:This would print [1, 15] which has a cost of 3. If I use the actual implementation of
distance_between
forheuristic_cost_estimate
(the commented line), I get [1, 4, 15] which with a cost of 2 is the correct result.The text was updated successfully, but these errors were encountered: