in reply to Re: Mapping paths?...
in thread Mapping paths?...

If you're using the "Manhattan metric" (each step north, south, east, or west counts as one unit of distance) as seems likely in this case, the slope isn't going to be useful for reducing the distance. OTOH, if the grid is mostly unobstructed, Dijkstra's will try to search outward in a diamond pattern, which could be a lot slower than something that simply tries to connect the dots. That could be important in, for example, a video game AI. Depends on what your exact requirements are.

BTW, that prohosting website is really and truly ugly. Turn on my cookies and try again? Not likely.

Replies are listed 'Best First'.
Re: Cookie requirement
by orkysoft (Friar) on May 22, 2001 at 03:34 UTC

    Heh, thanks :-)

    I implemented the cookie requirement because the program tracks individual browsers to enable submitted tiles to be viewed per poster, and to assign special tile colours to people, and to count the number of different visitors it gets each day.

    If you know of a way to do that without cookies or logging in, you're welcome. The target audience largely has cookies and JavaScript enabled anyway, so I figured I could get away with it. People without cookies would get a Set-cookie header with a different UNIQUE_ID every time they accessed the site (used to be only when they posted), but now, I want to be able to count the number of different browsers that access the site each day, which is a good approximation of the size of the audience, IMHO.