Sign in to follow this  
pandaa

Jump point search(jps) algorithm is slow than classic AStar?

Recommended Posts

pandaa    178

I tested the Jump point search algorithm(http://harablog.wordpress.com/2011/09/07/jump-point-search/) and the classic AStar,  and found that JPS is slow than classic AStar. The paper said jps is 2-30 times faster than classic AStar, I don't know why. The biggest comsumption is jump function, because it need visit so many tiles to find jump point, I highlight all the visited tiles in jump function.   

The dashed lines are the horizontal and vertical lines that are checked while checking the diagonal.

7XrQG.png

Share this post


Link to post
Share on other sites
alvaro    21246
"Algorithm X is faster than algorithm Y" is a meaningless statement. It should be something like "this implementation of algorithm X on this platform is faster than this implementation of algorithm Y on this platform, for this class of test cases". If you change the implementations, or the platform, or the class of test cases, the statement might become false. Edited by Álvaro

Share this post


Link to post
Share on other sites
Ezelia    130

Actually, JPS algorithm IS faster than classic A*, this can be proven by mathematics.

 

the implementation of the algorithm is another story :)

Share this post


Link to post
Share on other sites
alvaro    21246

Actually, JPS algorithm IS faster than classic A*, this can be proven by mathematics.

I am not familiar with the theorem you are referring to, but I doubt very much it says that. You might be able to prove something like "JPS expands fewer nodes than A*", but the cost per node is necessarily higher.

the implementation of the algorithm is another story smile.png

It's also the only thing that matters.

Share this post


Link to post
Share on other sites
wodinoneeye    1689

I long ago looked at some similar way to quickly traverse open space before applying a terminal (much shorter  length) search.

 

This kind of method generally require sparse terrain blockage features to work (be efficient) most of the time.

 

If your terrain is more maze like and the start+target positions are unfortunate then it will perform worse than A*  (will it work at all for a worst case possible path ???)

 

The author uses the word 'can' , but doesnt much mention cases where it 'cant'  which for a general search on ANY terrain pattern  can be very misleading.

 

It also apperas to be solver for block/not-blocked without more varying weights

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this