Well, I think it's pretty obvious that different algorithms generate different mazes. Let me just talk about covering the trees of the grid. Suppose you have a grid G, and you have two algorithms for creating a spanning tree for the grid:
Algorithm A:
- Select any edge of the grid, with a probability of 99% choose horizontal, otherwise vertical
- Add an edge to the labyrinth unless adding it creates a loop
- Stop when each vertex is connected to each other vertex (full spanning tree)
Algorithm B:
- Like algorithm A, but set the probability to 1% instead of 99%
"Obviously, Algorithm A produces labyrinths with a large number of horizontal passes and Algorithm B lazurites with a large number of vertical passages. That is, there is a statistical correlation between the number of horizontal passages in the labyrinth and the labyrinth created by Algorithm A.
Of course, the differences between Wikipedia algorithms are more complex, but the principle is the same. Algorithms determine the space of possible labyrinths for a given grid in an uneven, structured manner.
LOL I remember a scientific conference where a researcher presented his results about its algorithm, which did something βfor graphsβ. The results were statistical and presented for "random graphs". Someone asked the audience: "What distribution of random graphs did you draw from the graph?" Answer: "... they were prepared by our graph generation program." Duh!
Antti huima
source share