-
鼹鼠闯迷宫
资源描述void creatWay(int (*mg)[N],int x, int y)//在迷宫中产生一条路,使用图的深度遍历思想来实现,
{
static int dir[4][2] = {0, 1, 1, 0, 0, -1, -1, 0};////将要走的4个方向保存在二维数组中
int zx = x*2;
int zy = y*2;
int next, turn, i;
mg[zx][zy] = 0;
if(rand()%2)
turn = 1;
else
turn = 3;
for(i=0,next=rand()%4;i
- 2022-01-26 05:46:58下载
- 积分:1
-
该程序是用C语言写的采用了动量方法的BP神经网络,它具有极其强大的扩展性,可用于函数的逼近及分类识别等各方面,语言书写规范,其中大量使用了动态分配一、二维数组的...
该程序是用C语言写的采用了动量方法的BP神经网络,它具有极其强大的扩展性,可用于函数的逼近及分类识别等各方面,语言书写规范,其中大量使用了动态分配一、二维数组的方法,该网络实例中实现的是对某一函数的逼近,输入层为二层,中间层可自己设定多达十几层,逼近精度非常精确。读者可根据自己的需要设定各层的数目以及相应的训练样本进行训练与测试。-The program is written in C language using the momentum method of BP neural network, which has extremely powerful scalability, can be used for function approximation and classification in areas such as language specification, including large-scale use of a dynamically allocated one, two dimensional array of methods, examples of the network realize that the approximation of a function, for the second input layer, middle layer can be set as many as a dozen layers, close to very precise accuracy. Readers may need to be set in accordance with its own number of floors and the corresponding training samples for training and testing.
- 2022-09-23 15:35:02下载
- 积分:1
-
甚至在一个给定的数字的位数计数
如何进行计数的甚至在一个给定的数字位数。在这里我们使用如果数完全除以 2(an integer) 那么它是奇数或者偶数的概念。
- 2022-01-21 00:31:16下载
- 积分:1
-
禁忌搜索算法
本算法通俗易懂,对于初学者比较有益,特别是对学C语言或者c++的同学,对于刚刚接触禁忌搜索算法的,可以先看看本算法,对于启发式算法,禁忌搜索是其中最重要的一种,但是其缺点是局部最优,可以结合遗传算法来解决这一问题。
- 2022-12-03 15:50:03下载
- 积分:1
-
PL0语言编译器
1. 使用C/C++语言作为实现语言,实现一个简单PL/0语言的编译器。手工编码实现编译器的组成部分。语法分析程序采用递归下降分析法。2. PL/0编译器是个一遍的编译程序,词法分析程序作为子程序,需要的时候被语法分析程序调用,使用语法制导的翻译技术,在语法分析的同时生成中间代码,并保存到文件中。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-09-06 04:25:02下载
- 积分:1
-
STM32F1摄像头定位算法(融合测试) 定位算法
STM32F1摄像头定位算法(融合测试) 定位算法
- 2022-02-28 09:18:24下载
- 积分:1
-
这是C写的贪婪算法之2,在建摸和优化计算中非常有用,欢迎下载!...
这是C写的贪婪算法之2,在建摸和优化计算中非常有用,欢迎下载!-This is a greedy algorithm written in C of 2, in the modeling and optimization of the calculation is very useful are welcome to download!
- 2022-08-06 12:32:38下载
- 积分:1
-
比较详尽的GEP/GA/GP的Lisp版本
比较详尽的GEP、GP、GA的Lisp版本。GEP算法的基本过程和GA的过程非常相似,GEP处理的对象可以是单基因或多基因组成的染色体(基因组)。基因由线性的、固定长度的符号串组成。
- 2022-02-07 18:12:38下载
- 积分:1
-
computer control Lawes list achieve
计算机控制--劳斯表实现-computer control Lawes list achieve
- 2022-08-11 15:15:50下载
- 积分:1
-
particle filter
unlike kalman filter this filter is more suitable to deal with nonlinear data types. the source code is of omnet++ simulators. which contains a c++ file and other two files is used for network description and the general initialization files.
- 2022-01-28 02:07:30下载
- 积分:1