简体   繁体   中英

Heuristics for the A* using fewest hops

I have a graph of nodes and I need to get from node a to node b. What is a good heuristic function (can be in pseudo code or anything) for getting from point A to point B. The information available is the adjacency of nodes and the distances between all nodes.

如果您具有所有节点之间的距离,那么这就是您可以拥有的最佳启发式方法。

Take a look at Dijkstra's algorithm

http://en.wikipedia.org/wiki/Dijkstra 's_algorithm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM