-
A*星算法Lua版
A星寻路算法Lua版
算法原理描述,百度一下一大堆,参考http://blog.sina.com.cn/s/blog_6612d09b0100ve1z.html
其实很简单,
1. 我们无法直接知道怎么到达目的地,但是我们能够知道怎么样从起始点到达相邻的格子,还能从相邻的格子再到相邻格子的相邻的格子。
2.我们不停的找相邻的格子,相邻格子的相邻格子....总有一天,我们会发现其中一个相邻的格子就是我们的目的地,于是我们找到了这条路。
3.在此基础上,我们加入 预估值来提高寻找的效率,我们总是优先寻找预估值低的那些相邻的格子。
其中 f= g+h
g 是实际耗费的值
h 是预估值,从当前位置到达目标位置所耗费的移动值,预估有几种算法,这边用的是 对角线估价法
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报 打分 发表评论 暂无评论
- 2022-08-22 01:25:50下载
- 积分:1
-
求非终端结点的算法
求非终端结点的算法-for non-terminal nodes algorithm
- 2022-07-23 13:50:16下载
- 积分:1
-
一个vb程序,用坐标系来演示各种圆锥曲线,非常直观.
一个vb程序,用坐标系来演示各种圆锥曲线,非常直观.-a procedure used to coordinate the various demonstration conic and very intuitive.
- 2023-05-07 21:55:02下载
- 积分:1
-
c语言实现的离散傅立叶(DFT)变换。非快速傅里叶变换,基本的傅里叶变换。...
c语言实现的离散傅立叶(DFT)变换。非快速傅里叶变换,基本的傅里叶变换。-A basic Discrete Fourie Transform program, not Fast Discrete Fourie Transform
- 2022-06-18 02:58:18下载
- 积分:1
-
神经网络和智能信号处理
里面是很多智能算法的doc版资料,此外还有信号处理的方法.如BP,SOM,RBF,混沌神经网络等等,适合初学者
- 2022-07-13 05:33:26下载
- 积分:1
-
矩阵求逆c语言算法!
矩阵求逆c语言算法!-matrix inversion algorithm c language!
- 2022-05-24 18:25:02下载
- 积分:1
-
固定分区模拟,按"回车"可以随机加入进程,对未获资源的进程自动排序,等待调度...
固定分区模拟,按"回车"可以随机加入进程,对未获资源的进程自动排序,等待调度-Fixed partition simulation, press the Enter can be random to join the process has not been the resources of the process of automatic sorting, awaiting scheduling
- 2022-12-08 07:15:03下载
- 积分:1
-
一种模糊卡尔曼滤波器的设计
一种模糊卡尔曼滤波器的设计- One kind of fuzzy kalman filter design
- 2022-03-29 17:20:32下载
- 积分:1
-
pdnMesh is an automatic mesh generator and solver for Finite Element problems. I...
pdnMesh is an automatic mesh generator and solver for Finite Element problems. It will also do post-processing to generate contour plots and Postscript printouts. GUI support using GTK or MFC (Win32) is available. The problem definition can be done in any form and given to pdnMesh as an input data file. Drawing Exchange Format (DXF) files can be directly imported to pdnmesh. The quality and the coarseness of the mesh can be controlled by giving input parameters.
- 2022-01-26 01:43:40下载
- 积分:1
-
ID3 算法,JAVA实现
数据挖掘经典算法————ID3 算法,JAVA实现,可运行,适合初学者
- 2023-08-30 17:20:03下载
- 积分:1