-
有脑子的贪吃蛇
一个贪吃蛇AI的js实现,基本思想:先模拟一条蛇使用去吃食,若吃到食物后(广度优先寻最短路径)蛇处于安全状态,则让真蛇去吃;若不安全,则跟着蛇尾走(广度优先寻最长路径),没走一步都需进行一次上述判断。注:只要能找到蛇头到蛇尾的路径,则蛇安全。
上述算法仍可能导致蛇进入死循环,则没有安全路径可以吃到食物,该情况发生在大部分食物已经吃完的时候,目前没找到解决办法,若有兴趣或有更好的解法,欢迎联系。
- 2022-06-01 02:44:57下载
- 积分:1
-
高斯
GAUSS-SEIDEL法的Matlab程序-A programm realizing GUASS-SEIDEL algorithm,written in Matlab.
- 2022-01-29 00:52:29下载
- 积分:1
-
C #基础
用于程序员基本
- 2022-10-21 13:55:04下载
- 积分:1
-
a prepared using Matlab, harmonic signal for the estimated number of procedures...
一个用matlab编写的,用于估计信号谐波个数的程序,堪称经典!-a prepared using Matlab, harmonic signal for the estimated number of procedures for his classic!
- 2022-03-18 12:09:35下载
- 积分:1
-
Strike a+ B* i of the phase angle of the procedures for phase spectrum into a gr...
求取a+b*i的相位角的程序,用于相位谱成图显示,问题关键在于根据a,b的值判断相位角所在的象限-Strike a+ B* i of the phase angle of the procedures for phase spectrum into a graph shows, the problem lies in the basis of a, b values to determine where the phase angle quadrant
- 2022-12-14 15:40:03下载
- 积分:1
-
Procedures for the preparation of multi
多线程程序的编写,应用多线程编写网络聊天室程序-Procedures for the preparation of multi-threaded, multi-threaded applications to prepare the network chat room program
- 2022-03-14 13:59:14下载
- 积分:1
-
最短路和次短路
Dijkstra的推广之一:
最短路径的子路径是最短路径。证明:(算法导论P358)
次短路径的子路径是最短路或次短路.(这个是次短路径的最优子结构).
证明:
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-11-05 17:25:03下载
- 积分:1
-
卡尔曼,EKF,KF等滤波器的matlab代码
一、扩展卡尔曼滤波EKF二、去偏转换卡尔曼滤波CMKF三、最小二乘拟和的方法四、最小二乘、EKF、CMKF的比较五、野值剔除算法MATLAB实现了这些具体算法和要求
- 2022-02-06 11:00:08下载
- 积分:1
-
正弦信号估计的扩展卡尔曼滤波 & UKF
M 文件包括的扩展卡尔曼滤波和卡尔曼 Filter(includes both nonaugment and augment) Unscent 估计正弦信号的算法。代码可以正确运行和结果显示明显。
- 2023-05-23 10:40:03下载
- 积分:1
-
Numerical Recipes in C++ 书中的程序的源代码
Numerical Recipes in C++ 书中的程序的源代码-C Numerical Recipes in the book of a program"s source code
- 2022-10-01 16:05:03下载
- 积分:1