Previously, previously, previously, previously.
I want to eat this as a 3D printed noodle in pho
But isn't the black part the actual maze?
I think that the way this maze is being generated, the white part is the maze and the black part is the wall, but I also think it's ambiguous: it's a maze both ways, just different ones!
Though I think the translation from maze to tree still works if you consider the black part to be the maze, because with that perspective, each cell has 1 or 2 adjacent walls that are not shared with another cell, so those walls can unambiguously stand in for their corridor.
The entrances and exits are not explicitly marked, but if I'm reading this right, this algorithm isn't guaranteed to have 2+ doors on the perimeter. The rightmost node in the tree isn't the exit, it's simply the longest path through the maze (arguably the "center").
Well, I just meant that the black part makes more sense as a maze; of course, both of them can be treated as a maze.
I'm not quite sure about the unambiguity, though, due to the difference in topologies of the black and white parts.
But mazes have cycles (loops), and trees don't!
Which maybe this is why the tree(-like) graphic is mushy in some spots, and we're lucky that the maze doesn't have too many cycles? As far as spanning trees are concerned, the algorithm could just drop any edge when it links to a previously seen vertex. That wouldn't make for a good animation though. Don't know how to fix, but you can imagine a fully connected street-grid of a maze (not a very good maze) that becomes a real mess when this tries to tree-ify it.
Not all mazes have cycles. This kind don't.
Take any two vertices and perform loop-erased random walk from one to the other. Now take a third vertex (not on the constructed path) and perform loop-erased random walk until hitting the already constructed path. This gives a tree with either two or three leaves. Choose a fourth vertex and do loop-erased random walk until hitting this tree. Continue until the tree spans all the vertices. It turns out that no matter which method you use to choose the starting vertices you always end up with the same distribution on the spanning trees, namely the uniform one.
The author has cranked out an impressive array of graphics and visualization toys.
You know I now want maze to do this, right?
Please wait while you are being authenticated...
You may use these HTML tags and attributes: <a href="" title=""> <b> <blockquote cite=""> <code> <em> <i> <s> <strike> <strong> <img src="" width="" height="" style=""> <iframe src="" class=""> <div class=""> <blink> <tt> <u>, or *italics*.
<a href="" title=""> <b> <blockquote cite=""> <code> <em> <i> <s> <strike> <strong> <img src="" width="" height="" style=""> <iframe src="" class=""> <div class=""> <blink> <tt> <u>
Notify me of follow-up comments via e-mail