-
Matlab语言编写的2维粒子群算法进行函数最优化的源代码,并附有AVI视频演示!...
Matlab语言编写的2维粒子群算法进行函数最优化的源代码,并附有AVI视频演示!-2-D particle swarm optimization source code for optimization (with the AVI video!)
- 2022-08-07 09:29:32下载
- 积分:1
-
K10_Project_1229
说明: MDK平台下能够实现串口模拟的脚本,终端功能(The script and terminal functions of serial port simulation can be realized under MDK platform)
- 2019-04-05 14:14:05下载
- 积分:1
-
c语言版贪吃蛇,想要的就快来下载把,
这是早期作品,很有收藏价值...
c语言版贪吃蛇,想要的就快来下载把,
这是早期作品,很有收藏价值-c language version of Snake, want to hurry download put on, it is early works, great value to the collection!
- 2022-01-22 07:31:33下载
- 积分: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
-
touch-key
mcsp430 touch key source(msp430 touch key source)
- 2012-03-29 20:15:00下载
- 积分:1
-
Final20170823OK(micro)_Doing
STM32 串口读取传感器数据并保存(STM32 serial port read sensor data and save)
- 2018-02-06 14:39:53下载
- 积分:1
-
粒子群算法优化PID系数
说明: 使用粒子群算法优化PID控制系统参数,提升PID性能(Using particle swarm optimization to optimize PID control system parameters and improve PID performance)
- 2020-12-23 09:33:20下载
- 积分:1
-
这是一个改进的快速实现模糊c
这是一个改进的快速实现模糊c-means聚类算法的程序-This is a rapidly improving the fuzzy c-means clustering algorithm procedures
- 2023-03-29 14:00:03下载
- 积分:1
-
利用类及派生类在屏幕上输出英语问好提示,其输出结果如下图所示。...
利用类及派生类在屏幕上输出英语问好提示,其输出结果如下图所示。
-category and the use of derived classes in English output on the screen greets suggest that the output results as shown in the diagram below.
- 2022-06-02 14:29:39下载
- 积分:1
-
八数码问题,用c语言实现,有详细的注释!8 digital issues, using c language implementation, contains...
八数码问题,用c语言实现,有详细的注释!8 digital issues, using c language implementation, contains a detailed comment!-8 digital issues, using c language implementation, contains a detailed comment!
- 2022-03-16 08:26:58下载
- 积分:1