gpt4 book ai didi

graph - 统一成本搜索和 Dijkstra 算法有什么区别?

转载 作者:行者123 更新时间:2023-12-03 05:46:11 27 4
gpt4 key购买 nike

我想知道统一成本搜索Dijkstra算法之间有什么区别。它们似乎是相同的算法。

最佳答案

Dijkstra's algorithm, which is perhaps better-known, can be regarded as a variant of uniform-cost search, where there is no goal state and processing continues until all nodes have been removed from the priority queue, i.e. until shortest paths to all nodes (not just a goal node) have been determined

http://en.wikipedia.org/wiki/Uniform-cost_search#Relationship_to_other_algorithms

关于graph - 统一成本搜索和 Dijkstra 算法有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12806452/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com