文件名称:The-shortest-path-bellman-ford
- 所属分类:
- 数据结构常用算法
- 资源属性:
- 上传时间:
- 2012-11-26
- 文件大小:
- 14kb
- 下载次数:
- 0次
- 提 供 者:
- liuyu*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在实际问题中,边的权值一般以正权的形式出现,但是很多情况下负权也是存在的。这个时候,最短路径不一定存在。我们无法得到像dijkstra算法那样时间复杂度较低的算法,但是,仍然可以用bellman-ford迭代算法去解决问题。
bellman-ford算法是迭代算法,它不像dijkstra算法,按照一定的顺序直接算出每个点的距离值,而是不断地修改每个点的当前最小距离值,直到求出真正的最短距离为止。
-In practical problems, the edge weight is generally in the form of being the right, but many cases the negative right to exist. This time, the shortest path may not exist. We can not get the algorithm dijkstra algorithm time complexity is low, but you can still use the bellman-ford iterative algorithm to solve the problem.
The bellman-ford algorithm is an iterative algorithm, it is not the dijkstra algorithm to directly calculate the distance value of each point in a certain order, but modify each point of the current minimum distance value, until you find the real shortest distance so far .
bellman-ford算法是迭代算法,它不像dijkstra算法,按照一定的顺序直接算出每个点的距离值,而是不断地修改每个点的当前最小距离值,直到求出真正的最短距离为止。
-In practical problems, the edge weight is generally in the form of being the right, but many cases the negative right to exist. This time, the shortest path may not exist. We can not get the algorithm dijkstra algorithm time complexity is low, but you can still use the bellman-ford iterative algorithm to solve the problem.
The bellman-ford algorithm is an iterative algorithm, it is not the dijkstra algorithm to directly calculate the distance value of each point in a certain order, but modify each point of the current minimum distance value, until you find the real shortest distance so far .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
最短路径之bellman-ford算法 .docx