Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Grant, AndrewAMD), 911 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Why uses Intense Pathfinding pure Dijkstra and not A* [Re: Uhrwerk] #322173
05/05/10 08:41
05/05/10 08:41
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Machinery_Frank Offline
Senior Expert
Machinery_Frank  Offline
Senior Expert

Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
This discussion makes not much sense when you compare both algorhithms. Basically Dijkstra and A* are the same. The only difference is one estimation function that you have to add to Dijkstra and you will automatically get A*. So it will not calculate each possible route on a node, it will estimate with a function where to go to find the shortest route to the goal node. Often they simply use a length-function (length between current node and goal) for that.

So if you have Dijkstra, than you almost have A*. And if you have A*, then Dijkstra is already implemented. You only have to remove this estimation function.

But when you want to calculate all routes in a tree (for each node to each possible node), then you have to use Dijkstra. This makes sense, when you pre-calculate a matrix. With such a matrix you dont have to calculate routes in real-time. You just look them up from this pre-calculated matrix. I thought this is the way Intense-X pathfinding works.

You can find more details on this here:
http://www.amazon.com/Programming-Game-Example-Mat-Buckland/dp/1556220782


Models, Textures and Games from Dexsoft
Re: Why uses Intense Pathfinding pure Dijkstra and not A* [Re: Machinery_Frank] #323145
05/11/10 20:09
05/11/10 20:09
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline OP
Serious User
Rackscha  Offline OP
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Never said that i wnat to workaround the graph with A* o.O. Did A* while ago, i know what it is, the major question was just about the speed(or have i spoken so unclearly? dont know^^, sometimes my english isnt very good).

Oh and nice idea todo a complete precalculation. Will try it(maybe) later. Depends on my current progress, and the current performance.


But thanks for your suggestions^^.

EDIT: ah okay foun the point where you misunderstood me. I used a Graph and an open(closed list system to see whether a node is used or not, so i used a graph in my A* version, too wink

Greets
Rackscha

Last edited by Rackscha; 05/11/10 20:11.

MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Why uses Intense Pathfinding pure Dijkstra and not A* [Re: Uhrwerk] #324582
05/21/10 20:28
05/21/10 20:28
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline
Member
The_Clyde  Offline
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
Originally Posted By: Uhrwerk
Don't waste time speeding up code thats already fast enough.


Of course that depends how often the "fast enough" code gets run. If paths are being searched for a very large number of objects, even comparatively fast operations can cause a significant slowdown.

Re: Why uses Intense Pathfinding pure Dijkstra and not A* [Re: The_Clyde] #324589
05/21/10 21:01
05/21/10 21:01
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
where in this case it would not be fast enough or the wrong method..

What I stated was, that if the code is fast enough for the purpose it
is used in, there are other things to work on, than
wasting time on optimization.

--

I have a pathfinding for RTS units on a mobile phone game (Java phone)
that can find a path in realtiime for hundreds of objects with no
remarkable slowdown.
It is then just using a more appropriate metod than
a classic A* pathfinding.
Where it would not be as fast for single units.

The initial choice of the method is more important than the optimization of it.

Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1