-
基于算法的标题设置教案ACM算法。文件算法设计
ACM算法题集
基础算法教案.doc
算 法 设 计 题 集.doc
算法题集.doc-ACM algorithm based on algorithms title set lesson plans. Doc algorithm design problem sets. Doc title set algorithm. Doc
- 2023-06-06 15:10:03下载
- 积分:1
-
以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,...
以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,j)等于1表示障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。各个命令以及相关数据的输入格式如下:
输入迷宫:C,接下来一行是m n,其中m是迷宫矩阵行数,n是迷宫矩阵列数,接下来的m行数据是迷宫矩阵,每行n个值,表示一个m*n的迷宫矩阵
求迷宫的一条通路:Q
当输入的命令为E时,程序结束-With a Maze (m, n), said the long square maze, the maze entrance is a Maze (1,1), exports is the Maze (m, n), Maze (i, j) is equal to 0, said channel, Maze (i, j) is equal to 1, said barrier. Designing a program, for any set of the maze, find a path from the entrance to the export, or come to the conclusion there is no path. The various commands and data input format is as follows: Enter the Labyrinth: C, followed by his party mn, where m is the maze of matrix rows, n is a maze of matrix columns, the next line of data is a maze m matrix, each row n- value, indicating an m* n matrix of the labyrinth a maze of pathways: Q when the input command for the E, the end of the process
- 2023-04-15 19:50:03下载
- 积分:1
-
广义表的反序
逆置广义表的递归模型如下:
F(LS) = null 若 LS 为空
F(LS) = LS ...
广义表的反序
逆置广义表的递归模型如下:
F(LS) = null 若 LS 为空
F(LS) = LS 若 LS 为原子,且 tail(LS) 为空
F(LS) = append( F(tail(LS)), head(LS) ) 若 LS->tag=0 ,且 LS->tp!=null
F(LS) = append( F(tail(LS), F(head(LS)) ) 若 LS->tag=1
其中 append(a,b) 的功能是将广义表 a 和 b 作为元素的广义表连接起来。-Generalized table set against the broad anti-order recursive model of the table is as follows: F (LS) = null if the LS is empty F (LS) = LS if LS for the atoms, and the tail (LS) is empty F (LS) = append (F (tail (LS)), head (LS)) if the LS-> tag = 0, and the LS-> tp! = null F (LS) = append (F (tail (LS), F (head (LS))) If the LS-> tag = 1 where append (a, b) function is a generalized form, and b as elements of generalized tables connected.
- 2022-03-01 20:55:59下载
- 积分:1
-
最小二乘逼近(最小
最小二乘逼近(least-squares approximation)得到一组离散(discrete)数据点的近似函数(approximating function),实验数据往往是用最小二乘逼近得到一条秘密曲线(curve fitting)。下面概述的是最小二乘近似作为多项式的近似函数,除了多项式外,指数的几个右公式也可以作为类似的函数使用。关于最小平方近似的计算原理,请参考市场上的数值分析书籍
- 2022-06-02 22:53:44下载
- 积分:1
-
民航机票预订系统 结合MFC界面编程 具有订票、退票,客户及航班查询等功能。...
民航机票预订系统 结合MFC界面编程 具有订票、退票,客户及航班查询等功能。-airline tickets booking system combining MFC programming interface with booking, a refund, customer and flights query capabilities.
- 2023-01-09 22:55:03下载
- 积分:1
-
能够输入节点 然后完成图的广度优先遍历
能够输入节点 然后完成图的广度优先遍历-Able to enter the node and then complete the graph breadth-first traversal
- 2022-04-24 22:36:03下载
- 积分:1
-
不错的代码 希望大家喜欢 别忘了看完以后联系我
不错的代码 希望大家喜欢 别忘了看完以后联系我 -good code hope you like do not forget to contact me after reading
- 2022-10-09 22:45:04下载
- 积分:1
-
- 2023-05-26 13:10:03下载
- 积分:1
-
vc ADO 连接数据库
vc ADO 连接数据库-vc ADO to connect to the database
- 2023-04-26 02:00:03下载
- 积分:1
-
功能:四阶幻方全解 运算时间:3、40秒 结果:7040个 环境:Visual Studio.net 2003的vc++的控制台项目...
功能:四阶幻方全解 运算时间:3、40秒 结果:7040个 环境:Visual Studio.net 2003的vc++的控制台项目-Function: fourth-order magic square-wide computing solutions Time: 3,40 seconds Results: 7040 Environment: Visual Studio.net 2003 the vc++ Console project
- 2022-11-21 11:15:03下载
- 积分:1