-
八 方块移动游戏要求从一个含8个数字(用1
八 方块移动游戏要求从一个含8个数字(用1-8表示)的方块以及一个空格方块(用0表示)的3x3矩阵的起始状态开始,不断移动该空格方块以使其和相邻的方 块互换,直至达到所定义的目标状态。空格方块在中间位置时有上、下、左、右4个方向可移动,在四个角落上有2个方向可移动,在其他位置上有3个方向可移 动。例如,假设一个3x3矩阵的初始状态为:
8 0 3
2 1 4
7 6 5
目标状态为:
1 2 3
8 0 4
7 6 5-Eight-box requirements of mobile games from one containing eight numbers (1-8 with express) the box, as well as a space box (with 0) of the 3x3 matrix of the initial start, and constantly move the box to make space its adjacent box and swap until they reach their defined target state. Spaces in the middle position box has the upper and lower, left and right direction of four removable, in the four corners there are two directions can be mobile, in other locations has three movable direction. For example, suppose a 3x3 matrix of the initial state as follows: 803,214,765 target state as follows: 123,804,765
- 2022-03-22 21:44:29下载
- 积分:1
-
这是一个TSP问题的限界算法,用C++编程的
这是一个TSP问题的限界算法,用C++编程的
- 2022-05-28 21:49:14下载
- 积分:1
-
shellpaixu
希尔排序(Shell Sort)是插入排序的一种。是针对直接插入排序算法的改进(双语对照查看希尔排序(Shell Sort)是插入排序的一种。是针对直接插入排序算法的改进。
Hill sorting (Shell Sort) is a kind of insertion sort. Is to improve the direct insertion sort algorithm.
)
- 2013-07-18 15:11:39下载
- 积分:1
-
Self
自制C语言贪食蛇小游戏,里面包含两个文件,一个是源程序,一个是图形化驱动,只要两个文件放在一个目录下即可运行,语句简单易懂-Self-made C-Snake game, which contains two files, one source, one is graphical driver, as long as two files in a directory to run, easy to understand statements
- 2022-07-19 00:09:57下载
- 积分:1
-
2 找出最大值
c语言是很多编程软件的基础,找最大值,也是C语言运用中的一大关键因素(C language is the basis of many programming software, to find the maximum value, is also a key factor in the use of c language)
- 2020-06-21 12:00:02下载
- 积分:1
-
这是研究生课程计算方法与技术中讲到的UnionFind算法的具体实现代码。...
这是研究生课程计算方法与技术中讲到的UnionFind算法的具体实现代码。-This is the post-graduate courses and technical calculation method described in UnionFind algorithm to achieve the specific code.
- 2022-05-26 19:14:24下载
- 积分:1
-
这是一个数据结构小程序,有关计算加减法的
这是一个数据结构小程序,有关计算加减法的-This is a small program data structure, addition and subtraction in the calculation of
- 2022-03-26 02:27:47下载
- 积分:1
-
5100309203_5_8
二叉树类的前序,后序,层次遍历,其以链表方式存储(Binary tree class pre-order, post-order, hierarchy traversal, the linked list storage)
- 2012-12-16 14:16:41下载
- 积分:1
-
图形图像处理中常用的编码,拉普拉斯高斯编码、游程编码、算术编码、Huffman编码、Sobel编码等。...
图形图像处理中常用的编码,拉普拉斯高斯编码、游程编码、算术编码、Huffman编码、Sobel编码等。-graphics processing commonly used coding, coding Laplace Gaussian, RIc, arithmetic coding, Huffman coding, coding Sobel.
- 2022-08-03 06:43:27下载
- 积分:1
-
在地理信息系统概率中,知道一个数据表,用编程的方法求它们的MORDAN码值...
在地理信息系统概率中,知道一个数据表,用编程的方法求它们的MORDAN码值-Geographic Information System in the probability of that a data table, using the method of programming for the value of their code MORDAN
- 2023-07-03 08:25:03下载
- 积分:1