-
运用matlab,根据历史数据进行的多项式拟合,可对今后的数据进行预测...
运用matlab,根据历史数据进行的多项式拟合,可对今后的数据进行预测-use Matlab, according to historical data for the polynomial fitting, for the future of data forecast
- 2022-03-06 19:04:22下载
- 积分:1
-
[输入]
图的顶点个数N,图中顶点之间的关系及起点A和终点B
[输出]
若A到B无路径,则输出“There is no path” 否则输出A到B路...
[输入]
图的顶点个数N,图中顶点之间的关系及起点A和终点B
[输出]
若A到B无路径,则输出“There is no path” 否则输出A到B路径上个顶点
[存储结构]
图采用邻接矩阵的方式存储。
[算法的基本思想]
采用广度优先搜索的方法,从顶点A开始,依次访问与A邻接的顶点VA1,VA2,...,VAK, 访问遍之后,若没有访问B,则继续访问与VA1邻接的顶点VA11,VA12,...,VA1M,再访问与VA2邻接顶点...,如此下去,直至找到B,最先到达B点的路径,一定是边数最少的路径。实现时采用队列记录被访问过的顶点。每次访问与队头顶点相邻接的顶点,然后将队头顶点从队列中删去。若队空,则说明到不存在通路。在访问顶点过程中,每次把当前顶点的序号作为与其邻接的未访问的顶点的前驱顶点记录下来,以便输出时回溯。
#include
int number //队列类型
typedef struct{
int q[20]
-[imported] map of the number of vertices N, Vertex map of the relationship between the starting point and end point A and B [output] if A to B without path then exporting "There is no path" Otherwise output A to B on the path vertices [storage structure] plan adopted adjacency matrix of storage. [Algorithm for the basic idea] BFS way from the vertex A, A visit followed with adjacent vertices VA1, VA2 ,..., VAK, visiting times, if not visit B, continue to visit with the VA1 adjacent vertices VA11, VA12 ,..., VA1M. VA2 and then
- 2022-01-25 22:50:29下载
- 积分:1
-
阻抗计算工具,很有用。 阻抗计算工具,很有用。
阻抗计算工具,很有用。 阻抗计算工具,很有用。-Impedance calculation tool, very useful. Impedance calculation tool, very useful. Impedance calculation tool, very useful.
- 2022-04-26 22:12:23下载
- 积分:1
-
线索二叉搜索树结点的插入删除以及树的打印。
线索二叉搜索树结点的插入删除以及树的打印。-clues two forks search tree node of the tree to insert, delete and print.
- 2022-01-25 15:01:01下载
- 积分:1
-
Student achievement management system, can be used for reference!
学生成绩管理系统,C++做的,可作参考!-Student achievement management system, can be used for reference!
- 2022-06-22 00:44:07下载
- 积分:1
-
哲学家编程的算法
哲学家编程的算法-philosopher programming algorithm
- 2022-06-14 05:58:59下载
- 积分:1
-
汉语拼音输入程序,可以智能对字排序,并可输入词组。你可以自己改进!...
汉语拼音输入程序,可以智能对字排序,并可输入词组。你可以自己改进!-Pinyin input program can be intelligent sort of word and phrase input. You can improve!
- 2022-04-12 12:58:23下载
- 积分:1
-
dos下另一虚拟光驱
dos下另一虚拟光驱-dos under another virtual drive
- 2022-08-07 08:45:25下载
- 积分:1
-
Fingerpass 指纹识别算法的研究与应用
Fingerpass 指纹识别算法的研究与应用-Fingerpass fingerprint recognition algorithm research and application
- 2022-08-24 07:14:36下载
- 积分:1
-
几种常见的伪随机数的产生程序,上载程序是从别处下载的,觉得还比较有用...
几种常见的伪随机数的产生程序,上载程序是从别处下载的,觉得还比较有用-several common pseudo-random number generated procedures, procedures are available on the download elsewhere, I felt that more useful
- 2022-02-21 15:26:17下载
- 积分:1