• Advertisement
Sign in to follow this  

How can you tell the heuristic value using Manhattan method when using Convex search space?

This topic is 1888 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
I mean it is hard to tell the x-y distance between the current position and the desintation.
If you use Manhattan Heuristic, there is no such thing as 2 squares apart in the x-axis and 2 squares apart in the y-axis as the shapes are all irregular.

Thanks
Jack Edited by lucky6969b

Share this post


Link to post
Share on other sites
So if I understand correctly, you're trying to use the manhattan heuristic, but you're finding it difficult, because your A* graph is not a regular 2D grid? Is that the problem you're facing?

If so, then you simply cannot use the manhattan heuristic. I suggest you use straight line distance instead, (the Euclidean Distance described in this link [url="http://theory.stanford.edu/~amitp/GameProgramming/Heuristics.html"]http://theory.stanford.edu/~amitp/GameProgramming/Heuristics.html[/url])

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement