- 1、本文档共17页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
axing算法(取消算法)
axing算法(取消算法)
Three, A* algorithm
In the A* algorithm, more generally, an evaluation function f is introduced, which is defined as f=g+h. Where G is the cost of reaching the current node, and the H represents the slave
Estimation of the cost of the arrival of the former node to the target. It must meet two requirements:
1. H must be less than or equal to the actual minimum cost h* to reach the target node from the current node.
2. F must remain monotonically increasing.
The control structure of the A* algorithm is very similar to that of breadth search, but each extension is one of the smallest F values in the currently extended node, if
The extended node is repeated with the extended node, and the node is deleted. If the node to be extended is repeated, if the function of this node is evaluated
When the value is small, it is used instead of the original node to be extended. The specific algorithm is described as follows:
Example: a 3*3 board has 1-8, eight numbers, and a space. An initial state and a target state are given. This space is required,
Reach the target state with the least number of steps.
Problem analysis: the expected value is defined as h=|x-dx|+|y-dy|.
The valuation function is defined as f=g+h.
Type
Node (node type) = Record
Situtation:TSituation (current node status);
G:Integer; the cost of reaching the current state
H:Integer; (estimated cost)
F:Real; (valuation function value)
Last:Integer; (parent node)
End
Var
List (node table): Array[1..Max (maximum number of nodes)] of Node (node type);
Open (total number of nodes): Integer;
Close (to be extended node number): Integer;
New-S:Tsituation; (new node)
Init
List-0;
Open-1;
Close-0;
List[1].Situation- initial state;
Main Program
While (closeopen (and not extended nodes)) and
(openMax (space not used up)) and
(the destination node was not found) do
Begin
Begin
Close:=close+1;
For, I:=close+1, to, open, do (looking for the smallest node of the valuation function)
Begin
If List.fList[close].f then
Be
您可能关注的文档
- 2011中考数学真题解析6_平方根、立方根(含答案(2011 senior high school entrance examination mathematics Zhenti analysis 6_ square root, Li Fanggen (with answers).doc
- 2010规划师相关知识(2010 planner related knowledge).doc
- 2011九大移动互联网公司(2011 ninth mobile Internet Co).doc
- 2011地理试卷(2011 geography paper).doc
- 2011安徽高考文综考点(2011 Anhui college entrance examination arts comprehensive examination.).doc
- 2011年3月二级c语言母题(机试加笔试)(March 2011 two C language motif (machine test plus written test)).doc
- 2011年8月水泥培训知识(Knowledge of cement training in August 2011).doc
- 2011年6月广东省普通高中学业水平考试地理试卷(June 2011 Guangdong ordinary high school proficiency test geography test paper).doc
- 2011年中考物理68套题汇编及答案(Compilation and answers of 68 sets of physics tests in 2011).doc
- 2011年2月22日止全球4级以上地震汇总(In February 22, 2011, more than 4 earthquakes were collected).doc
文档评论(0)