A Comparison of Pathfinding Algorithm for Code Optimization on Grid Maps

There have been various pathfinding algorithms created and developed over the past few decades to assist in finding the best path between two points. This paper presents a comparison of several algorithms for pathfinding on 2D grid maps. As a result, this study identified Jump Point Search Block Bas...

Full description

Bibliographic Details
Published in:International Journal of Advanced Computer Science and Applications
Main Authors: Kapi A.Y., Sunar M.S., Algfoor Z.A.
Format: Article
Language:English
Published: Science and Information Organization 2022
Online Access:https://www.scopus.com/inward/record.uri?eid=2-s2.0-85146649596&doi=10.14569%2fIJACSA.2022.0131247&partnerID=40&md5=093db0f37814a22061e4d97007d2b789
Description
Summary:There have been various pathfinding algorithms created and developed over the past few decades to assist in finding the best path between two points. This paper presents a comparison of several algorithms for pathfinding on 2D grid maps. As a result, this study identified Jump Point Search Block Based Jumping (JPS (B)) as a potential algorithm in term of five evaluation metrics including search time. The comparisons pointed out the potential algorithm and code optimization was performed on the selected JPS(B) algorithm, and it was named JPS(BCO). This paper also explores issues regarding the JPS(B) and how to resolve them in order to optimize access to the index pointer. The presented enhance JPS(BCO) is capable to search optimal path quicker than the original JPS(B) as demonstrated by experimental findings. An experiment of different size grid maps is conducted to validate the ability of the proposed algorithm in term of search time. The comparative study with original JPS (B) exhibits the enhancement that has more benefits on grid maps of different size in terms of search time © 2022, International Journal of Advanced Computer Science and Applications.All Rights Reserved.
ISSN:2158107X
DOI:10.14569/IJACSA.2022.0131247