-
这是SCST仿真平台机器人足球赛一个参赛队的源代码 . 其中有人工智能的一些算法.
这是SCST仿真平台机器人足球赛一个参赛队的源代码 . 其中有人工智能的一些算法.-simulation platform robot soccer teams one source. These are some of the artificial intelligence algorithms.
- 2022-01-31 17:30:07下载
- 积分: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
-
java版本的MSN,供大家交流学习使用
java版本的MSN,供大家交流学习使用-java version of MSN, for the exchange of everyone learning to use
- 2022-08-18 09:22:35下载
- 积分:1
-
用TC编写的一种下拉式菜单,操作方便简单。
用TC编写的一种下拉式菜单,操作方便简单。-TC prepared with a drop-down menu, convenient operation simple.
- 2023-07-17 13:25:02下载
- 积分:1
-
one very simple game of pool, use the direction keys to control plate at about m...
一款非常简单的撞球游戏,使用方向键控制板块左右弹动小球即可得分。-one very simple game of pool, use the direction keys to control plate at about moving the ball can score.
- 2022-02-06 10:27:34下载
- 积分:1
-
可爱的SD娃娃24点牌游戏,代码用HTML和javascript编写
可爱的SD娃娃24点牌游戏,代码用HTML和javascript编写-lovely doll SD 24 point game, and the HTML code used to prepare javascript
- 2023-01-13 16:30:04下载
- 积分:1
-
labwindows rs232 包括xmodem传送文件和简单串口程序
labwindows rs232 包括xmodem传送文件和简单串口程序-XMODEM labwindows rs232 including transmission of documents and a simple serial program
- 2023-01-06 13:25:04下载
- 积分:1
-
利用VB开发的简单图像二值化的代码,使用的交换…
用VB开发的简单图像二值化的代码,本程序只做交流使用-VB developers to use a simple image binarization code, the exchange of use of this procedure Zhizuo
- 2023-02-27 07:15:03下载
- 积分:1
-
计算器程序
#include float add(float,float); float sub(float,float); float product(float,float); float divide(float,float); void main() 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-06-28 03:21:54下载
- 积分:1
-
显示地震剖面对地震专业的学生来说显示地震剖面特别重要本程序实现了地震剖面的绘制...
显示地震剖面对地震专业的学生来说显示地震剖面特别重要本程序实现了地震剖面的绘制-Seismic profiles show that the earthquake professional students who show the seismic profiles of particular importance to realize this process of mapping the seismic profiles
- 2023-03-20 23:15:04下载
- 积分:1