-
有脑子的贪吃蛇
一个贪吃蛇AI的js实现,基本思想:先模拟一条蛇使用去吃食,若吃到食物后(广度优先寻最短路径)蛇处于安全状态,则让真蛇去吃;若不安全,则跟着蛇尾走(广度优先寻最长路径),没走一步都需进行一次上述判断。注:只要能找到蛇头到蛇尾的路径,则蛇安全。
上述算法仍可能导致蛇进入死循环,则没有安全路径可以吃到食物,该情况发生在大部分食物已经吃完的时候,目前没找到解决办法,若有兴趣或有更好的解法,欢迎联系。
- 2022-06-01 02:44:57下载
- 积分:1
-
The source includes a recursive template version and a non
The source includes a recursive template version and a non-recursive template version
- 2023-05-28 10:10:04下载
- 积分:1
-
EFG2D-hole,带孔圆板问题的EFG程序,matlab
程序为采用matlab写的一个带孔圆板的EFG程序,这是一个学习和验证算法的标准算例,给出了可调控网格密度的网格生成程序,做数值算法的必学的程序
- 2023-04-20 22:05:03下载
- 积分:1
-
粒子滤波重采样(13种方法)resampling methods for particle filtering
I have developed a serial of resampling methods for particle filtering in Matlab as attached below in separate .m files that you may have interest and that you may have better implementation than me, or if you have any question, your feedback will be appreciated.
These resampling methods together with their pseudo-codes
- 2022-06-12 23:28:12下载
- 积分:1
-
一个简单的计算器,用MATLAB开发
一个简单的计算器,用MATLAB开发-a simple calculator, developed using MATLAB
- 2022-11-30 20:30:08下载
- 积分:1
-
一个用到动态规划算法的acm题
一个用到动态规划算法的acm题-used a dynamic programming algorithm that acm
- 2022-11-29 07:30:03下载
- 积分:1
-
快速排序在C++
快速排序是最受欢迎的因为它是不难实现,适用于各种不同类型的输入数据,并速度比任何其他在典型应用程序中的排序方法。它是的地方 (使用只有一个小的辅助堆栈),需要时间正比于 N log N 对平均的 N 对项目排序,并且有极短的内环。快速排序是分而治之的排序方法。它的工作原理数组分成两部分,然后独立排序部分。
- 2022-11-14 18:45:03下载
- 积分:1
-
24点游戏设计 c++
24点游戏案例设计,c++语音,用于课程设计和教学案例,项目内容包括界面设计、游戏设计、互动反馈。
- 2022-03-31 18:58:06下载
- 积分:1
-
自己培训的题目――N阶幻方的构造
自己培训的题目――N阶幻方的构造-their training topics-- N-order magic square of tectonic
- 2022-06-15 16:34:00下载
- 积分:1
-
Was established based on moving least square (Moving Least
建立了一种基于移动最小二乘(Moving Least-Squares MLS)法的曲线曲
面拟合方法 这种方法对传统的最小二乘(LS)法的作了比较大的改进 使生成的曲线曲面具
有精度高 光滑性好等许多优点 详细介绍了移动最小二乘法的原理 应用和特点 并且给
出了使用移动最小二乘法进行曲线曲面拟合的程序设计流程 最后给出了曲线拟合和空间散
乱数据曲面拟合算例 将拟合结果与最小二乘拟合结果作了比较 分析了 MLS 拟合曲线曲
面的光滑性和拟合质量 表明了该方法的优越性和有效性-Was established based on moving least square (Moving Least-Squares MLS) method of this curve and surface fitting method to the traditional method of least squares (LS) method was relatively large improvements to make the generated curves and surfaces with a precision of High smoothness, good detail, and many other advantages of the principle of least-squares method for mobile applications and features and gives the least-squares method using the mobile curve and surface fitting procedure design process Finally, curve fitting and spatial scattered data surface to be cost-effective cases of the results of the fitting results are compared with the least-squares fitting analysis of MLS fitting curves and surfaces smooth and fitting quality demon
- 2023-02-17 12:50:04下载
- 积分:1