-
main
以一个m*n的长方阵表示迷宫,0和1分别表示迷宫中的通路和障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。
1.基本要求
(1)首先实现一个以链表作存储结构的栈类型,然后编写一个求解迷宫的非递归程序。求得的通路以三元组(i,j,d)的形式输出。其中:(i,j)指示迷宫中的一个坐标,d表示走到下一坐标的方向。如下图所示迷宫。从入口(1,1)到出口(8,8)的求解结果如下:
(1,1)(1,2),(2,2)(3,2)(3,1)(4,1)(5,1)(5,2)(5,3)(6,3)(6,4)(6,5)(5,5)(4,5)(4,6)(4,7)(3,7)(3,8)(4,8)(5,8)(6,8)(7,8)(8,8)(The labyrinth is represented by a m*n rectangular array. 0 and 1 represent the pathways and obstacles in the labyrinth respectively. Design a program for any set of maze, find a way from the entrance to the exit, or draw no conclusion of the path.
1. basic requirements
(1) first implement a stack type with linked list as storage structure, then write a non recursive procedure to solve the maze. The path obtained is output in the form of three tuple (I, J, d). Among them: (I, J) indicates a coordinate in the labyrinth, and D indicates the direction of going to the next coordinate. As shown in the labyrinth below. The results obtained from the entrance (1, 1) to the outlet (8, 8) are as follows:
(1, 1) (1, 2), (2, 2) (3, 2) (3, 1) (4, 1) (4, 1).)
- 2018-07-03 13:15:46下载
- 积分:1
-
KME
code for k-means algorithm
- 2010-04-19 15:18:08下载
- 积分:1
-
codes
红外与可见光实时融合算法
------------------------------------
若不能读取xvid视频,请安装XviD-1.1.3-28062007.exe。
-----------------------------------
请双击*.bat文件看程序运行结果。
也可以在命令行下,输入“evs3 参数文件.xml 配准.xml”,以融合指定的多源视频图像。
----------------------------------
首先,离线地时空配准多源视频,并保存结果到xml文件。然后融合配准后的图像。融合过程是,通过分解图像为Laplacian金字塔,分别对图像的高频和低频按照规则合并,最后将Laplacian金字塔重新组合为图像。(Real time fusion algorithm for infrared and visible light------------------------------------If you cannot read XviD video, please install XviD-1.1.3-28062007.exe.-----------------------------------Double-click the*.bat file to see the program running results.Can also be in the command line, " evs3 input parameter file .Xml .Xml registration ", by the fusion of the specified source video image.----------------------------------First of all, offline space-time registration source video, and save the results to a XML file. After registration and fusion image. Through the decomposition of the image fusion process, Laplacian Pyramid, were on the high-frequency and low frequency image in accordance with the rules of the merger, Laplacian Pyramid reassembled for image.)
- 2013-01-09 14:42:39下载
- 积分:1
-
3.LCD背光控制
调节单片机小车的LCD背光灯等一系列的功能,希望大家好用。(Adjust SCM car LCD backlight and a series of functions, I hope we use.)
- 2020-06-15 23:00:02下载
- 积分:1
-
单片机数字时钟
该程序是单片机控制的数字时钟,总共有三个按键,第一个选择分钟或小时,第二个加一,第三个减一,该程序通过循环点亮数码管来显示时间,共用到8个数码管,硬件比较简单。
- 2022-06-26 20:47:24下载
- 积分:1
-
将库文件导入到ARDUINO中使用
说明: 将库文件导入到ARDUINO中使用,可完成无线通信(Wireless communication can be accomplished by importing library files into ARDUINO.)
- 2020-06-19 10:20:02下载
- 积分:1
-
AuloCAD2000_ARx二次开发实例精粹[老大中]
AuloCAD2000_ARx二次开发实例精粹[老大中](The Essence of AuloCAD2000_ARx Secondary Development Example)
- 2018-12-06 15:06:43下载
- 积分:1
-
hash
realization of hash function
- 2009-04-28 02:08:52下载
- 积分:1
-
fingertips
利用OpenCV实现单幅图片对于手指的精确识别(Single image using OpenCV to achieve precise identification of the finger)
- 2011-02-11 17:09:05下载
- 积分:1
-
ModbusSlaveProgram
这是一款模拟modbus从机的程序,可以方便用户调试modbus程序,本程序完全免费。(This is a simulation of the modbus from machines, can facilitate users to debug the modbus program, this program is completely free.
)
- 2013-11-08 19:23:47下载
- 积分:1