gpt4 book ai didi

algorithm - Dijkstra 算法中边缘的松弛

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:13:36 25 4
gpt4 key购买 nike

在图论的上下文中,边的松弛 是什么意思?我在研究 Dijkstra 的单源最短路径算法时遇到了这个问题。

最佳答案

Here's对算法的一个很好的描述,也解释了松弛的概念。

The notion of "relaxation" comes from an analogy between the estimate of the shortest path and the length of a helical tension spring, which is not designed for compression. Initially, the cost of the shortest path is an overestimate, likened to a stretched out spring. As shorter paths are found, the estimated cost is lowered, and the spring is relaxed. Eventually, the shortest path, if one exists, is found and the spring has been relaxed to its resting length.

关于algorithm - Dijkstra 算法中边缘的松弛,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12782431/

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