-
非线性光纤光学(第四版)的源代码,美国人写的
非线性光纤光学(第四版)的源代码,美国人写的-Nonlinear Fiber Optics (Fourth Edition) of the source code, written by the Americans
- 2023-04-28 18:05:04下载
- 积分: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
-
实现用三元组表示的稀疏数组的输入、转置、相加、输出。可以直接输入三元组,转置和相加基于三元组进行,输出的结果也为三元组。...
实现用三元组表示的稀疏数组的输入、转置、相加、输出。可以直接输入三元组,转置和相加基于三元组进行,输出的结果也为三元组。-achieved using ternary group said the sparse array of input, transfer home, combining the output. 3 can directly import group, and add to home-based Group 3, the output of the group for three yuan.
- 2023-03-02 04:35:03下载
- 积分:1
-
是一个人脸检测数据库,做人脸检测的很有用处啊
是一个人脸检测数据库,做人脸检测的很有用处啊-Face detection is a database of human face detection useful ah
- 2022-02-24 18:59:41下载
- 积分:1
-
failed to translate
Flex调试原代码,在编写时用于对程序组件的调试-failed to translate
- 2023-06-25 17:15:03下载
- 积分:1
-
一个关于C,JAVA,ORACALE面试的题目集合
一个关于C,JAVA,ORACALE面试的题目集合-A C, JAVA, ORACALE interview subject collections
- 2022-02-12 11:02:42下载
- 积分:1
-
Flash放大镜制作源码
Flash制作的放大镜特效 附源码,这个放大镜支持鼠标拖动,拖动到哪里,就可放大哪里的图像,里面用有Flash遮罩技术,做起来并不是太难,现在还有源文件可以参考,挺不错的Flash学习资料。
- 2022-12-31 12:10:04下载
- 积分:1
-
实现对数据库添加,修改和删除
数据库为access数据库
实现对数据库添加,修改和删除
数据库为access数据库-of Database add, modify and delete database access database
- 2022-01-22 17:01:21下载
- 积分:1
-
VB to change the file name under the bulk of the software
VB下的批量搜索和改变文件名的软件,调试通过-VB to change the file name under the bulk of the software
- 2023-01-12 18:45:03下载
- 积分:1
-
又一个经典的贪吃蛇游戏,用鼠标控制蛇移动的方向.
又一个经典的贪吃蛇游戏,用鼠标控制蛇移动的方向.-also a classic Snake game with mouse control snake moving in the direction.
- 2022-02-25 05:12:57下载
- 积分:1