文件名称:Dijkstra
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 146kb
- 下载次数:
- 0次
- 提 供 者:
- Dell *****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1. 初使时令 S={V0},T={其余顶点},T中顶点对应的距离值 若存在<V0,Vi>,d(V0,Vi)为<V0,Vi>弧上的权值 若不存在<V0,Vi>,d(V0,Vi)为∝ 2. 从T中选取一个其距离值为最小的顶点W且不在S中,加入S 3. 对T中顶点的距离值进行修改:若加进W作中间顶点,从V0到Vi的 距离值比不加W的路径要短,则修改此距离值 重复上述步骤2、3,直到S中包含所有顶点,即S=T为止-1 beginning of the season S = {V0}, T = {remaining vertices}, T in the vertex corresponding distance value if there <V0,Vi> , D (V0, Vi) for the <V0,Vi> If the weight of the arc on the existence of <V0,Vi> , D (V0, Vi) for the α 2. Select one from the T distance is the smallest of its vertices W and not in S, add S 3. The distance between the vertices of T values ??may be modified: if the middle vertex added to W , the distance from the value V0 to Vi W than the path without shorter, then modify this value from the Repeat 2 and 3 until S contains all vertices, that is S = T so far
(系统自动生成,下载前可以参看下载内容)
下载文件列表
狄克斯特拉算法\Debug\graph0.obj
..............\.....\PshortPM.obj
..............\.....\SShortP.obj
..............\.....\vc60.idb
..............\.....\vc60.pdb
..............\.....\狄克斯特拉算法.pch
..............\.....\狄克斯特拉算法.pdb
..............\graph0.cpp
..............\graph0.h
..............\PshortP.h
..............\PshortPM.cpp
..............\SShortP.cpp
..............\狄克斯特拉算法.dsp
..............\狄克斯特拉算法.dsw
..............\狄克斯特拉算法.ncb
..............\狄克斯特拉算法.opt
..............\狄克斯特拉算法.plg
..............\Debug
狄克斯特拉算法
..............\.....\PshortPM.obj
..............\.....\SShortP.obj
..............\.....\vc60.idb
..............\.....\vc60.pdb
..............\.....\狄克斯特拉算法.pch
..............\.....\狄克斯特拉算法.pdb
..............\graph0.cpp
..............\graph0.h
..............\PshortP.h
..............\PshortPM.cpp
..............\SShortP.cpp
..............\狄克斯特拉算法.dsp
..............\狄克斯特拉算法.dsw
..............\狄克斯特拉算法.ncb
..............\狄克斯特拉算法.opt
..............\狄克斯特拉算法.plg
..............\Debug
狄克斯特拉算法