网站大量收购独家精品文档,联系QQ:2885784924

信息与计算科学-最短路径图形结构算法及应用.docx

信息与计算科学-最短路径图形结构算法及应用.docx

  1. 1、本文档共30页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PAGE III 最短路径图形结构算法及应用 摘要 日常出行人们依靠地图和导航来查询路线,计算两地最短的距离,选择最适合的路径,这时最短路径算法的需求就体现了出来。 最短路径算法,比较经典是Dijkstra算法,采用广度搜索(BFS)的思想,深度优先搜索(DFS)仅考虑与目标点的剩余代价而导致往往搜索不到最短的路径。A*算法作为Dijkstra算法的扩展,因其高效性而被广泛应用于寻路及图的遍历,且结果往往是最优解。 本文中主要探讨A*算法的运作方式,使用java代码编写对应程序,对生活中实例进行演示操作,发现影响算法搜索的效率的主要原因是openlist节点的遍历次数和一共执行的搜索次数,遍历次数和搜索次数的增多均会导致搜索时间的增加 在对算法进行分析改进后,提出了增加转向时的权值从而减少转向、以低精度的栅格替代高精度的栅格、用节点网图替代栅格网图等算法改进方案。经过实验均可在部分情况下提升算法效率同时精度损失可以忽略不计。 关键词 路径规划 最短路径 A*算法 运行效率 Algorithm and application of shortest path graph structure Abstract Daily travelers rely on maps and navigation to query routes, calculate the shortest distance between the two places, and choose the most suitable path. At this time, the demand of the shortest path algorithm is reflected. Dijkstra algorithm is the classic shortest path algorithm. It adopts the idea of breadth search (BFS), and depth first search (DFS) only considers the residual cost with the target point, so it often fails to find the shortest path. As an extension of Dijkstra algorithm, A * algorithm is widely used in path finding and graph traversal due to its high efficiency, and the final path is often the optimal solution. This paper mainly discusses the operation mode of A * algorithm, uses Java code to write corresponding programs, and demonstrates the operation of real life examples. It is found that the main reasons that affect the efficiency of algorithm search are the number of traversal of openlist node and the total number of searches executed. The increase of traversal times and search times will lead to the increase of search time After analyzing and improving the algorithm, the paper puts forward some improved schemes, such as increasing the weight g of turning to reduce turning, replacing high precision grid with low precision grid, replacing grid with node grid. In some cases, the efficiency of the algorithm can be improved and the accuracy loss can be ignored. Key words path planning shortest path A* algorithm operation efficiency 目 录 TOC

文档评论(0)

专业写作找文采 + 关注
实名认证
服务提供商

修改润色代笔文章撰写。

1亿VIP精品文档

相关文档