COMPARATIVE STUDY OF PATHFINDING ALGORITHM PERFORMANCE ON MAZE AND GRID-BASED ENVIRONMENTS

Людмила Володимирівна Гладка, Anton CHALYI · CHERKASY UNIVERSITY BULLETIN APPLIED MATHEMATICS INFORMATICS · 2024

Introduction. Pathfinding tasks on two-dimensional grid structures arise in a widerange of applied domains, including navigation systems, robotics, telecommunications, and videogame development. The computational efficiency of pathfinding algorithms directly affects softwareperformance, particularly under constrained resources and real-time processing requirements.Despite the availability of numerous well-known algorithms, their practical efficiency variessubstantially depending on the structural properties of the search space, including obstacle topology,obstacle density, and graph connectivity. The selection of an appropriate algorithm for a givenenvironment type remains an open practical problem.Purpose. The purpose of this work is to conduct a comparative performance analysis of widelyused pathfinding algorithms – Dijkstra's algorithm, the A* algorithm, and the Jump Point Search(JPS) algorithm – on two-dimensional grid environments of varying structure and obstacle density,and to formulate evidence-based recommendations for algorithm selection.Results. The study was implemented in Python using the Pillow library for grid representationand BMP image generation. Two maze generation methods were employed: the Binary Treealgorithm, which produces mazes with predominantly linear corridor structures, and the randomizedPrim's algorithm, which yields more complex, uniformly distributed topologies. Map environments ofvarying obstacle density were derived from both maze types through iterative dead-end removal andcorridor expansion procedures, producing four distinct map configurations. Experimental evaluationwas performed on 255×255 grids using 1000 randomized start–goal pairs per environment. Totalaccumulated execution time served as the primary performance metric. The results demonstrate thatA* reduces execution time by 42-47% relative to Dijkstra's algorithm across all tested environments,owing to heuristic-guided search. The Jump Point Search algorithm achieved the highest performancein all scenarios, reducing total execution time by 65-88% relative to Dijkstra's algorithm and by 37- 79% relative to A*. The advantage of JPS was most pronounced on map environments with large openareas and low obstacle density, where symmetry pruning and jump point identification most effectivelyreduce the number of explored nodes. In high-density obstacle environments, the performance gain ofJPS remained substantial, with A* also showing improved relative efficiency due to more focusedheuristic guidance.Conclusion. The experimental study confirms that heuristic and symmetry-based approachessubstantially outperform classical graph traversal in grid pathfinding tasks. JPS is recommended forapplications with high performance requirements and frequent re-planning between arbitrary nodepairs. A* provides an effective compromise when JPS applicability is constrained by environmentalconditions. Dijkstra's algorithm remains appropriate for scenarios requiring full shortest-path treesfrom a fixed source node or in the absence of a valid heuristic function. Future research directionsinclude analysis of suboptimal but faster algorithms, extension to dynamic environments, andadaptation to three-dimensional search spaces.

Cited by 0 works. doi:10.31651/2076-5886-2024-1-4-21

Authors