Maze Generation: Wilson's algorithm
weblog.jamisbuck.org
weblog.jamisbuck.org
In theory, this algorithm could run for any arbitrarily large amount of time. Although the probability of that is low, doesn't it make the worst-case time for this algorithm unacceptable?
By the way, thanks for this series of articles... I've found it most diverting. I guess I'm the sort of person who enjoys "recreational maze generation" :p
http://scholar.google.de/scholar?q=covering+time+random+walk
iirc the expected cover time for any graph is polynomial with high probability. Something like |E|^3 or so.
http://www.math.cornell.edu/~mec/Winter2009/Thompson/randomw...
Runs pretty fast, even for large mazes.