A Study on the Performance Based on Aldous-Broder Randomness and A* Structured Generation
DOI:
https://doi.org/10.54097/2pbjbr47Keywords:
Maze generation, algorithm efficiency, heuristic methods.Abstract
The objective of this research was to analyze how different maze generation algorithms manage the trade-off between efficiency and randomness. Maze generation is significant in artificial intelligence, robotics, and game design, where performance and (structural variety directly influence outcomes. The methods involved implementing Aldous-Broder and A* algorithms in OCaml on standardized grid-based mazes. Aldous-Broder relies on random walks to generate uniform spanning trees, while A* applies heuristic-driven search to guide wall removal. The experiments were conducted across various maze sizes, with execution time, branching factor, and corridor length as core metrics. Each configuration was tested through repeated trials to capture variance, and results were summarized using median values and dispersion analysis. This design ensured fairness in comparison while emphasizing scalability and structural differences. The results show that Aldous-Broder achieves uniformity but at high computational cost, whereas A* provides faster generation but creates biased layouts. The findings highlight the inherent trade-off between structural neutrality and efficiency, pointing to hybrid solutions as a promising direction.
Downloads
References
[1] Buck J. Maze generation: Binary tree algorithm. Jamis Buck’s Blog, 2011 Feb 1. Available from: https: //weblog.jamisbuck.org/2011/2/1/maze-generation-binary-tree-algorithm.
[2] Algorithms Journal. A comparative study of maze generation algorithms in a game-based mobile learning application for learning basic programming concepts. Algorithms. 2024; 17 (9): 404. Available from: https: //www.mdpi.com/1999 - 4893/17/9/404.
[3] International Journal of Intelligent Systems and Applications in Engineering (IJISAE). Comparative analysis of maze generation algorithms. IJISAE. 2023; 11 (2): 3557. Available from: https: //ijisae.org/index.php/IJISAE/article/view/3557.
[4] Wilson DB. Generating random spanning trees more quickly than the cover time. In: Proceedings of the Twenty-Eighth Annual ACM Symposium on the Theory of Computing (STOC ’96). ACM; 1996. p. 296 – 303. Available from: https: //doi.org/10.1145/237814.237880.
[5] Algorithms Journal. Wilson’s algorithm and loop-erased random walks in maze generation. Algorithms. 2024; 17 (9): 404. Available from: https://www.mdpi.com/1999 - 4893/17/9/404.
[6] EWA Direct. Using genetic algorithms for maze generation in Ms. Pacman. In: Proceedings of the Asian Conference on Education (ACE 2023). 2023. Available from: https://www.ewadirect.com/proceedings/ace/article/view/10312.
[7] Bridson R. Fast Poisson disk sampling in arbitrary dimensions. In: ACM SIGGRAPH 2007 Papers. ACM; 2007. p. 1 – 6. Available from: https://www.cs.ubc.ca/~rbridson/docs/bridson-siggraph07-poissondisk.pdf.
[8] Rabinovich A. On measuring the difficulty of mazes. ACM J Exp Algorithmics. 2012; 17: 1 – 20. Available from: https: //doi.org/10.1145/2133803.2184450.
[9] Aldous D. The random walk construction of uniform spanning trees and uniform labelled trees. SIAM J Discrete Math. 1990; 3 (4): 450 – 65. Available from: https://doi.org/10.1137/0403039.
[10] Broder A. Generating random spanning trees. In: 30th Annual Symposium on Foundations of Computer Science (FOCS). IEEE; 1989. p. 442 – 7. Available from: https: //doi.org/10.1109/SFCS.1989.63513.
[11] Propp JG, Wilson DB. How to get a perfectly random sample from a generic Markov chain. J Algorithms. 1998; 27 (2): 170 – 217. Available from: https://doi.org/10.1006/jagm.1997.0917.
[12] Hart PE, Nilsson NJ, Raphael B. A formal basis for the heuristic determination of minimum cost paths. IEEE Trans Syst Sci Cybern. 1968; 4 (2): 100 – 7. Available from: https: //doi.org/10.1109/TSSC.1968.300136.
[13] Zhou R, Hansen EA. Breadth-first heuristic search. Artif Intell. 2006; 170 (4 – 5): 385 – 408. Available from: https: //doi.org/10.1016/j.artint.2005.10.003.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Highlights in Science, Engineering and Technology

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.







