文件名称:(Dijkstra)-a-shortest-path-algorithm
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.43kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
大概流程如下:
初始对每个点e,令v[e]=0,dis[e]=inf
令起点dis[s]=0
每次找出p,使得v[p]=0,并且dis[p]最小
令v[p]=1
对每个和p相邻的q,用dis[p]+distance[p,q]去更新dis[q]
直到找不到v[p]=0-Probably process is as follows:
For every dot e, initial [e] to v = 0, dis [e] = inf
Make starting point dis [s] = 0
Each find p, makes v [p] = 0, and dis [p] the smallest
Make v [p] = 1
Adjacent to each and p (q), with dis [p]+ distance [p, q] to update the dis [q]
Until find v [p] = 0
初始对每个点e,令v[e]=0,dis[e]=inf
令起点dis[s]=0
每次找出p,使得v[p]=0,并且dis[p]最小
令v[p]=1
对每个和p相邻的q,用dis[p]+distance[p,q]去更新dis[q]
直到找不到v[p]=0-Probably process is as follows:
For every dot e, initial [e] to v = 0, dis [e] = inf
Make starting point dis [s] = 0
Each find p, makes v [p] = 0, and dis [p] the smallest
Make v [p] = 1
Adjacent to each and p (q), with dis [p]+ distance [p, q] to update the dis [q]
Until find v [p] = 0
(系统自动生成,下载前可以参看下载内容)
下载文件列表
狄克斯特拉(Dijkstra)最短路径算法.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.