...
首页> 外文期刊>British Journal of Mathematics Computer Science >Picture Maze Generation by Successive Insertion of PathSegment
【24h】

Picture Maze Generation by Successive Insertion of PathSegment

机译:通过连续插入PathSegment生成图片迷宫

获取原文
   

获取外文期刊封面封底 >>

       

摘要

Picture maze is a maze on which some picture appears when it is solved. This paper aims to present a very simple method to construct a picture maze. It is always possible to construct a spanning tree on a connected region of a binary picture. A spanning tree connects all vertices on the region. A 2-by-2 extended picture of a connected picture is the one such that each cell in the picture is transformed to four cells which constitute a square block with the cells. Then by analogy, it is always possible to construct a block spanning tree on the extended picture region, where a block is the square unit of four cells. Construction of the block spanning tree and the generation of the corresponding Hamiltonian path can be done at the same time. The Hamiltonian path is constructed along a data structure of a linked list in a simple manner. It traverses every cell on the 2-by-2 extended picture. The similar procedure but with the smaller block with two vertices, instead of four, can be applied to a non-extended picture, an ordinary one, which produces a near Hamiltonian path, which can then be a maze solution path. The near Hamiltonian path traverses nearly all the vertices on the picture, hence depicting a picture on the maze when it is solved. This paper demonstrates the method and its efficiency.
机译:图片迷宫是一种迷宫,解决后会出现一些图片。本文旨在提出一种构造图片迷宫的非常简单的方法。始终可以在二进制图片的连接区域上构造生成树。生成树连接该区域上的所有顶点。连接的图片的2×2扩展图片是这样的图片,它使得图片中的每个单元都转换为四个单元,这些单元与这些单元构成一个正方形块。然后通过类推,总是有可能在扩展的图片区域上构建一个块生成树,其中一个块是四个单元的平方单位。块生成树的构建和相应汉密尔顿路径的生成可以同时进行。汉密尔顿路径以简单的方式沿着链表的数据结构构造。它遍历2 x 2扩展图片上的每个单元。可以将类似的过程应用于具有两个而不是四个顶点的较小块,可以将其应用于未扩展的图片(普通的图片),该图片会生成接近哈密顿的路径,该路径可以成为迷宫解路径。接近汉密尔顿的路径遍历图片上几乎所有的顶点,因此在迷宫解像时就在迷宫上描绘了一张图片。本文演示了该方法及其效率。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号