-
This is a similar preparation using Java in Windows Notepad, with all its functi...
这是一个用Java编写的类似Windows的记事本,具有其所有的功能。-This is a similar preparation using Java in Windows Notepad, with all its functions.
- 2023-05-24 06:20:03下载
- 积分: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
-
对于汉诺塔,大家一点不陌生,这是我数据结构的一个作业,里面讲的很详细...
对于汉诺塔,大家一点不陌生,这是我数据结构的一个作业,里面讲的很详细-The Tower of Hanoi, is no stranger to everyone, this is my data structure of a work, which stresses the very detailed
- 2023-04-28 17:20:03下载
- 积分:1
-
write Java intellectual puzzles wrenched mobile phone game is based on Midp 2.0
Java写的智力拼图扳手机游戏,是基于Midp 2.0的-write Java intellectual puzzles wrenched mobile phone game is based on Midp 2.0
- 2022-01-25 18:50:01下载
- 积分:1
-
信息隐藏中用于数字隐写的常用算法:LSB替换LSB匹配,包括随机的和排序的,以及对文件和文件夹进行操作,用CxImage类能快速读取各种格式的图象...
信息隐藏中用于数字隐写的常用算法:LSB替换LSB匹配,包括随机的和排序的,以及对文件和文件夹进行操作,用CxImage类能快速读取各种格式的图象-Information Hiding for digital steganography of the commonly used algorithms: LSB replacement of LSB matching, including random and sort of, as well as files and folders to operate, using CxImage category can quickly read a variety of formats image
- 2022-12-09 16:00:03下载
- 积分:1
-
迷宫游戏
本程序是在VB.NET下编写的,由标签作成的墙体,由鼠标来触发,用鼠标不能碰到墙体则会返回到原点来达到走迷宫的效果,达到终点时会出现对话框提示完成。
- 2022-07-05 07:44:12下载
- 积分:1
-
Java拼图游戏源码,挺经典是一个源码,内附解压密码
Java拼图游戏源码,挺经典是一个源码,内附解压密码-pieces of the jigsaw-source Java, is a very classic source, enclosing extracting passwords
- 2023-05-14 23:20:03下载
- 积分:1
-
sequence given by the symmetry Chebyshev filter design. Attention : grammar rule...
乘序给出了对称Chebyshev滤波器的设计.注意:语法规则 cheblp.m lowpass filter design (specify del) cheblp2.m lowpass filter design (specify ws) chebbp.m bandpass filter design (specify del) chebbp2.m bandpass filter design (specify ws1,ws2) chebdiff.m lowpass differentiator design-sequence given by the symmetry Chebyshev filter design. Attention : grammar rules cheblp.m lowpass filter design (specify del) cheblp2.m lowpass filter design (specify ws) chebbp.m bandpass filter design (specify del) chebbp2.m bandpass filter design ( specify ws1, WS2) chebdiff.m lowpass design differentiator
- 2022-06-26 09:15:01下载
- 积分:1
-
笔者在开发县级电网调度自动化系统的过程中,碰到一个要绘制电力系统一次接线图的问题。由于电力系统一次接线图比较复杂,图上有一 些特殊的符号,象变压器符号、开关...
笔者在开发县级电网调度自动化系统的过程中,碰到一个要绘制电力系统一次接线图的问题。由于电力系统一次接线图比较复杂,图上有一 些特殊的符号,象变压器符号、开关符号等等,用一般的编程方法来绘制比较困难,因此,笔者用C语言开发了一个手工绘制电力系统一次接线图 的键盘绘图程序,使用该程序绘制的一次接线图符合用户需求,效果良好。-writer in the development of county-level SCADA process, encountered a power system to draw a diagram of the problem. The electric system diagram of a more complex map some special symbols, symbols like transformers, switch symbol, and so on, using common programming methods to map more difficult, therefore, I used the C language development of a hand-drawn power system diagram of a keyboard mapping procedures, the use of the program was produced by a diagram meet the demands of users, to good effect.
- 2022-01-22 13:54:46下载
- 积分:1
-
轧制力拟合程序 基本思想是线性方程加BP补偿
轧制力拟合程序 基本思想是线性方程加BP补偿-Fitting procedures for rolling force basic idea is to increase BP compensation of linear equations
- 2023-08-20 04:35:03下载
- 积分:1