A星寻路入门双语版(A-starPathfindingforBeginners).docxVIP

A星寻路入门双语版(A-starPathfindingforBeginners).docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
A* Pathfinding for Beginners This article has been translated into Spanish and French. Other translations are welcome. While it is easy once you get the hang of it, the A* (pronounced A-star) algorithm can be complicated for beginners. There are plenty of articles on the web that explain A*, but most are written for people who understand the basics already. This one is for the true beginner. 虽然掌握了 A* (读作 A-star )算法就认为它很容易,对于初学者来说,它却是复杂的。网上有很多解释 A* 的文章,不过大多数是写给理解了基础知识的人。本文是给初学者的。 This article does not try to be the definitive work on the subject. Instead it describes the fundamentals and prepares you to go out and read all of those other materials and understand what they are talking about. Links to some of the best are provided at the end of this article, under Further Reading. 本文并不想成为关于这个主题的权威论文。实际上它讨论了基础知识并为你做一些准备,以便进一步阅读 其他资料和理解它们讨论的内容。本文的后面列出了几个最好的文章,在进阶阅读中。 Finally, this article is not program-specific. You should be able to adapt whats here to any computer language. As you might expect, however, I have included a link to a sample program at the end of this article. The package contains two versions: one in C++ and one in Blitz Basic. It also contains executables if you just want to see A* in action. 最后,本文不是编程规范的。你应该能够改写这里的东西到任何计算机语言上。如你所期望的,同时,我 包含了一个示例程序的链接,在本文后面结束的地方。这个程序包有两个版本:一个是 C++ ,另一个用 Blitz Basic 语言编写。如果你只是想看看 A* 的行为,里面也含有可执行 exe 文件。 But we are getting ahead of ourselves. Lets start at the beginning ... 但我们要超越自己。让我们从头开始 ... 介绍:搜索区域 Introduction: The Search Area Lets assume we have someone who wants to get from point A to point B and that a wall separates the two points. This is illustrated in the graphic found below, with green being the starting point A, red being the ending point B, and the blue filled squares being the wall in between. 我们假设某人想从 A 点到达 B 点,一堵墙把它们分开了。 如下图所示, 绿色是开始点 A,红色是结束点 B, 而蓝色填充的方块是中间的墙。 [ 图 1][Figure 1] The first thing you should notice is that we have divided our search area into a square grid. Simplifying the search area, as we

文档评论(0)

5566www + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

版权声明书
用户编号:6122115144000002

1亿VIP精品文档

相关文档