Advertisement

Incremental improvement from A* to Dijkstra's

Started by January 24, 2012 03:18 AM
9 comments, last by wodinoneeye 12 years, 10 months ago
Well, without a node link to (next to) the target point the portals wouldn't be portals at all :) Of course they have them. And the child node would have its heuristic show as very optimistic. :)

[quote name='Hodgman' timestamp='1327379928' post='4905683']
A* will find the shortest path, assuming your heuristic is "admissible" (it never overestimates the minimal cost of reaching the goal).
Actually, I don't think it will: in a complex map where a direct portal (leading right next to the target point) lies just behind the starting point, no A* variant that I know of will ever knowingly move away from the target, unless it's stuck.[/quote]You missed the bold bit.
Advertisement
I would guess that a map problem which contains 'portals' would best be solved with a hierarchical AI where the portals (coarse level) search is based on a different distance system (and heuristic) and then with the fine level search being the more conventional cartesian heuristic.
--------------------------------------------[size="1"]Ratings are Opinion, not Fact

This topic is closed to new replies.

Advertisement