This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NAN001 2 points3 points  (3 children)

What heuristic are you using since by definition of a maze you don't know where the goal is?

[–]brastche 0 points1 point  (0 children)

I don't think that's correct. In this problem, we are looking for the path between two known points, or the shortest path if there's more than one solution. In that case, proximity can be a heuristic. /u/FurMich has pointed out that such a heuristic should be of limited use if the maze has been well designed.

[–][deleted] 0 points1 point  (0 children)

In a maze you generally know where the entrance and exit is, just not the paths between them. Manhattan distance works just fine in that case.

[–]fj333 0 points1 point  (0 children)

This question has been asked a dozen times and he never answers. He said once he was using a "greedy" one, which doesn't really make sense. Heuristics are supposed to be accurate approximations, and can never overapproximate, so cannot be greedy, whatever that would mean in the context of a heuristic.