-
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
-
Apriori Algo Matlab
vvvapriori算法MatlabApriori算法MatlabApriori算法MatlabApriori算法MatlabApriori算法MatlabApriori算法MatlabApriori算法MatlabApriori算法Matlab
- 2022-01-26 07:16:31下载
- 积分:1
-
基于SURF特征点的图像配准代码,可实现两幅图的特征提取及匹配
基于SURF特征点的图像配准代码,可实现两幅图的特征提取及匹配-SURF feature points based on image registration code
- 2022-02-01 17:45:35下载
- 积分:1
-
有很多的算法,让您来处理信息存储…
There are numerous algorithms that allow you to manipulate the information stored in an array. Consider this function which allows you to determine the maximum value in an array of integers (could be easily adapted to find minimum value)-There are numerous algorithms that allow you to manipulate the information stored in an array. Consider this function which allows you to determine the maximum value in an array of integers (could be easily adapted to find minimum value)
- 2022-03-03 22:58:15下载
- 积分:1
-
最近邻查找
本源码主要是提供了传统k-means算法以及利用近似k_d树算法进行加速的聚类算法。
- 2022-03-21 09:51:13下载
- 积分:1
-
the codes and solution for zoj 2210
zoj 2210的代码和方法说明,个人原创
-the codes and solution for zoj 2210
- 2022-03-21 00:59:08下载
- 积分:1
-
活动段检测
资源描述对于肌电信号的一个活动段检测算法,可以准确地判断出信号的起始点和终止点
- 2022-03-06 08:22:07下载
- 积分:1
-
后的二叉树算法(递归)
二叉树的后序算法(递归)-after the sequence of binary tree algorithm (recursive)
- 2022-09-15 21:25:03下载
- 积分:1
-
为规范和解决poj 1699
poj 1699的代码和方法说明,个人原创
-the codes and solution for poj 1699
- 2022-06-15 09:10:35下载
- 积分:1
-
Mahout Canopy&KMeans聚类
Mahout Canopy&KMeans聚类示例代码
描述了使用Mahout Canopy&KMeans的快速聚类分析,简单直接上手
直接上代码了
- 2023-02-07 16:10:03下载
- 积分:1