- 1
- 0
- 约9.46千字
- 约 7页
- 2017-10-07 发布于河南
- 举报
摘录a算法(astar)(Excerpt a algorithm (astar))
摘录a算法(astar)(Excerpt a algorithm (astar))
In the A* algorithm, the first mention of the breadth first search, breadth first search is the current state of each development strategy may be carried out step by step, such as a map, the object is allowed to move in four directions, then it will point to the object, on each step, the four state are stored in memory, and then point to four directions to move from the four of... (of course here can move, such as eliminating the unreasonable are not allowed to move back) in fact, the entire search like a round open outward, until you reach the destination. Obviously, this algorithm can find the optimal solution, but the number of nodes is deployed and distance increasing, really used in the game, game player will complain memory 128M is not enough to be increased with the ^_^ and processing nodes, processing speed will be slowed down rapidly... It can be said that this algorithm is not practical.
A* algorithm is a heuristic search, called heuristic search, is to use a valuation function to evaluate each decision value, decided to first try what kind of program, this can greatly optimizing the breadth first search. Generally speaking, from the starting point (A) to (B) the shortest distance is fixed, we can write a function (judge) estimation of the shortest distance from A to B, if the program has already tried from the starting point A along a route to move to C, so we think this the A B between the estimated distance of A to C is walking distance with H plus judge (C) to estimate the distance of B.
So, regardless of our search procedure where the next step will be to calculate the evaluation value, every decision, will evaluate the value and wait for the treatment with sorting, each program and then pick out the most likely is the shortest route as part of the solution to the next step. Has been circulating to move the object to the destination, or all solutions are tried but failed to find a path to the destination path
您可能关注的文档
- 情感教育在学生管理工作中的应用(Application of emotional education in student management).doc
- 情感的外现_论魏晋南北朝人物画线条的情感实质(The emotion is _ of Wei Jin Southern and Northern Dynasties figure painting line sentiment essence).doc
- 情理文化主导的中国式管理行为基本特征1(The basic characteristics of Chinese management behavior led by reason culture 1).doc
- 情理文化主导的中国式管理行为基本特征3(The basic characteristics of Chinese management behavior led by reason culture 3).doc
- 情节概括(Plot generalization).doc
- 惠州学院住房货币分配实施方案(Huizhou University housing money allocation programme).doc
- 惠安女(Huian women).doc
- 惯性系 非惯性参照 惯性力系(Inertia reference inertial force system of inertial frame).doc
- 惠泉频变折射啤酒大局(Huiquan frequency refraction beer overall situation).doc
- 想做女王,先有气场!(Want to be queen, have gas field first!).doc
- 摩托车怠速不稳分析(Analysis of motorcycle idling instability).doc
- 摄影用光(Photography light).doc
- 摩托车知识总结(Motorcycle knowledge summary).doc
- 播出渠道(Broadcast channel).doc
- 播音主持基础(Broadcasting and hosting Foundation).doc
- 播音主持自我介绍(Broadcast, introduce yourself).doc
- 播音主持专业指定稿件朗读的注意事项(Notes on the reading of professional designated manuscripts).doc
- 撰写科技论文的五个要素(Five elements of writing scientific papers).doc
- 操作系统教学计划(v08.02)(Operating system teaching plan (v08.02)).doc
- 操作系统概论(Introduction to operating systems).doc
原创力文档

文档评论(0)