Jump Point Search
Also known as JPS
search heuristic-search
Jump Point Search (JPS) finds a cheapest path on a uniform-cost 8-connected grid, usually with far fewer expansions than A*. It is A* over jump points: from a cell reached in some direction, it tries only the natural neighbours and the forced neighbours, which are cells that a wall next to the path makes reachable only through this cell. Each try jumps: it walks on in that direction without opening the cells in between, and stops at the goal, at a cell with a forced neighbour, or, on a diagonal, at a cell from which a straight jump stops. The skipped cells have an equally cheap path through the jump points, so the search stays optimal. In the crate, moves may not cut corners, costs are exact octile distances, and the result lists only the start, the jump points and the goal.
Pseudocode
algorithm JPS(s₀, s-goal)input: start cell s₀, goal cell s-goal of an 8-connected gridoutput: a cheapest path as start, jump points and goal, or failurereturn a-star((s₀, none), s-goal, octile-distance, jump-successors) ▷ states are (cell, arrival direction)function jump-successors(x, d)for each step e in pruned-steps(x, d) do ▷ natural and forced neighboursj ← jump(x, e)if j ≠ nil thenyield ((j, e), octile cost of the moves from x to j)function jump(x, e)repeatif the move from x by e is blocked thenreturn nilx ← x + eif x = s-goal thenreturn xif e is straight and has-forced-neighbour(x, e) thenreturn xif e is diagonal and (jump(x, (eₓ, 0)) ≠ nil or jump(x, (0, e_y)) ≠ nil) thenreturn xuntil falsefunction has-forced-neighbour(x, e)for each side step n perpendicular to e doif x + n is open and x + n − e is blocked thenreturn truereturn falseIn the crates
heuristic-searchJump Point Search on any uniform 8-connected grid without corner cutting, with exact octile costs.
Lineage
Comes from
builds on A*
Led to
Nothing on this site.
Papers
- Online Graph Pruning for Pathfinding On Grid Maps Daniel Harabor, Alban Grastien · 2011· AAAI Conference on Artificial Intelligence