In the picturesque maze generation problem, we are given a rectangular black-and-white raster image and want to randomly generate a maze in which the solution path fills up the black pixels. While a simple formulation of the problem faces with NP-hardness, the proposed method generates such a maze in polynomial time by appropriately changing the formulation itself. Therefore, the algorithm itself is quite simple. Figure 1: An example of a picturesque maze. (Up) A given black-and-white raster image. (Middle) An output, where two green rhombi represent the entrance and the exit. (Down) Showing that the solution path gives the input image. ∗Graduate School of Information Science and Engineering, Tokyo Institute of Technology, okamoto@is.titech.ac.jp †Supported by Global COE Program “Computationism as a Foundation for the Sciences” and Grant-in-Aid for Scientific Research from Ministry of Education, Science and Culture, Japan, and Japan Society for the Promotion of Science. ‡School of Information Science, Japan Advanced Institute of Science and Technology, uehara@jaist.ac.jp
[1]
Jayme Luiz Szwarcfiter,et al.
Hamilton Paths in Grid Graphs
,
1982,
SIAM J. Comput..
[2]
Craig S. Kaplan,et al.
Image-guided maze construction
,
2007,
ACM Trans. Graph..
[3]
David Bruce Wilson,et al.
How to Get a Perfectly Random Sample from a Generic Markov Chain and Generate a Random Spanning Tree of a Directed Graph
,
1998,
J. Algorithms.
[4]
Craig S. Kaplan,et al.
Vortex maze construction
,
2007
.
[5]
Christopher Umans,et al.
Hamiltonian cycles in solid grid graphs
,
1997,
Proceedings 38th Annual Symposium on Foundations of Computer Science.