文件名称:Dijkstra
-
所属分类:
- 标签属性:
- 上传时间:2012-09-04
-
文件大小:885byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
这个例程,会在多条相同最短路径中选出边数最少的路径.只是改变path域即可在遍历的时候访问到边数少的路径.核心的思想,就是建立一个数组,存放从出发点到当前顶点的最短路径边数.通过每次查看最短路径相同的情况, 即dv + cvw = dw.时,如果 Count[v] + 1 < Count[w]时,就执行 Count[w] = Count[v] + 1, 同时 w -> path = c.-This routine will be the same number of shortest paths in the selected path with the least number of edges. Just change the path traversal time domain can be accessed in the number of edges in the path less. The core idea is to create an array to store the starting point from The current number of edges in the shortest path vertices. by the shortest path each time you view the same situation, that is, dv+ cvw = dw., if Count [v]+ 1 < Count [w] when, on the implementation Count [w] = Count [ v]+ 1, while w-> path = c.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Dijkstra.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.