5.2.3 Space Complexity Analysis
Recursive depth optimization yields significant
results: The optimized recursive backtracking
algorithm reduces the maximum recursive depth by
56.5% through an iterative deepening strategy,
approaching the theoretical optimal value (path
length). The binary tree algorithm exhibits extremely
high space efficiency: The maximum recursive depth
is only 10–20, highlighting the spatial utilization
advantages of non-recursive structures.
6 RESEARCH CHALLENGES
AND FUTURE PROSPECTS
Although recursive backtracking and binary tree
algorithms have made some progress in the field of
maze path search, they still face numerous challenges.
Current research lacks quantitative standards for the
generalization capabilities of algorithms in complex
topological structures such as ring-shaped or
honeycomb-shaped mazes, and a multi-dimensional
performance evaluation system remains to be further
refined. Engineering-level adaptation schemes and
testing for large-scale mazes also require ongoing
optimization.
Future research can be explored in the following
directions: first, expanding to three-dimensional
mazes by upgrading the two-dimensional grid model
to a three-dimensional voxel space, and studying the
integration strategies of recursive backtracking and
octree algorithms to address path planning issues in
three-dimensional obstacle environments; Second,
dynamic environment adaptation: for real-time
changing obstacle scenarios, introduce deep learning
mechanisms to train maze models, such as the
approach by Li et al. to train binary tree branch
strategies via reinforcement learning, providing a
feasible path for real-time decision-making in
dynamic mazes (Li et al., 2024). Future research
could further integrate spatio-temporal graph neural
networks to optimize multi-level path planning,
enabling algorithms to dynamically adjust search
strategies; Third, multi-algorithm fusion combines
intelligent optimization techniques such as genetic
algorithms and reinforcement learning to construct a
hybrid search framework that balances path
optimality and search efficiency. Fourth, edge
computing adaptation designs low-power
optimization schemes for resource-constrained
devices to reduce the time and space complexity of
the algorithm.
With the rapid development of artificial
intelligence, the Internet of Things, and other
technologies, maze path search algorithms will
increasingly intersect with other fields, expanding
their application scenarios. Future research should not
only focus on improving algorithm performance but
also emphasize the integration of algorithms with
real-world application scenarios to solve practical
problems and drive the development of intelligent
systems.
7 CONCLUSIONS
This paper conducts a comprehensive review of the
recursive backtracking and binary tree algorithms in
the search for maze paths, elaborating on the
principles, technical bottlenecks, optimization
strategies, performance evaluation systems, and
engineering applications of these two types of
algorithms. Through code research and parameter
comparison, it is shown that tail recursion
optimization, dynamic branch balance, and other
strategies have effectively enhanced the robustness of
the algorithms. The new performance evaluation
indicators provide a more comprehensive reference
basis for engineering selection. However, there are
still many deficiencies in the current research. In the
future, it is necessary to further break through the
limitations of dimensions and dynamic scene
constraints to promote the development of maze path
search algorithms towards intelligence and
universality.
REFERENCES
Erbil, M. E., Özkahraman, M., & Bayrakçı, H. C. (2025).
Comprehensive Performance Analysis and Evaluation
of Various Maze Solving Algorithms for Optimized
Autonomous Navigation and Pathfinding. Fırat
Üniversitesi Mühendislik Bilimleri Dergisi, 37(1), 151-
166.
Jain, A., Vaidehi, N., & Rodriguez, G. (1993). A fast
recursive algorithm for molecular dynamics simulation.
Journal of computational physics, 106(2), 258-268.
Li, Y., Wang, J., & Chen, Z. (2024). Dynamic Branch
Adaptation in Binary Tree Maze Navigation: A
Reinforcement Learning Approach. IEEE Transactions
on Robotics, 40(3), 876-889.
McClendon, M. S. (2001, July). The complexity and
difficulty of a maze. In Bridges: Mathematical
connections in art, music, and science (pp. 213-222).
Patle, B. K., Parhi, D. R. K., Jagadeesh, A., & Kashyap, S.
K. (2018). Matrix-Binary Codes based Genetic