Welcome![Sign In][Sign Up]
Location:
Search - Floyd-Warshall

Search list

[Other resourceFloyd-Warshall-c-chengxi

Description: Floyd-Warshall算法描述 1)适用范围: a)APSP(All Pairs Shortest Paths) b)稠密图效果最佳 c)边权可正可负 2)算法描述: a)初始化:dis[u,v]=w[u,v] b)For k:=1 to n For i:=1 to n For j:=1 to n If dis[i,j]>dis[i,k]+dis[k,j] Then Dis[I,j]:=dis[I,k]+dis[k,j] c)算法结束:dis即为所有点对的最短路径矩阵 3)算法小结:此算法简单有效,由于三重循环结构紧凑,对于稠密图,效率要高于执行|V|次Dijkstra算法。时间复杂度O(n^3)。 考虑下列变形:如(I,j)∈E则dis[I,j]初始为1,else初始为0,这样的Floyd算法最后的最短路径矩阵即成为一个判断I,j是否有通路的矩阵。更简单的,我们可以把dis设成boolean类型,则每次可以用“dis[I,j]:=dis[I,j]or(dis[I,k]and dis[k,j])”来代替算法描述中的蓝色部分,可以更直观地得到I,j的连通情况。
Platform: | Size: 3567 | Author: 江晨 | Hits:

[Data structsgraphic_algorithm

Description: 每对节点间最短路径 Floyd-Warshall 算法 D[i,j]表示从i到j的最短距离; P[i,j]表示从i到j的最短路径上j 的父节点-between each pair of nodes Shortest Path Floyd-Warshall algorithm D [i, j] said from i to j is the shortest distance; P [i, j] said from i to j the shortest path on the parent node j
Platform: | Size: 9216 | Author: changxia | Hits:

[Mathimatics-Numerical algorithmsfloyd_warshall

Description: 用C语言实现最短路径算法中的Floyd-Warshall算法,这个算法可以用来解决信号处理中的一些问题。floyd_warshall.c是源程序;distance_2.txt文件存放图中各点之间的距离,以99999表示无穷大;floyd.txt文件是输出文件,其中存放各轮得到的输出矩阵,以及最后得到的各点间最短距离,如果有负回路则返回FALSE。-C language shortest path algorithm of Floyd-Warshall algorithm, The algorithm can be used to solve signal processing some of the problems. Floyd_warshall.c yes source; distance_2.txt document storage map of the distance between points, 99,999 said to infinity; floyd.txt document output files, which kept the round of the output matrix, and finally come to the point of the shortest distance, If there is a negative loop it returns FALSE.
Platform: | Size: 162816 | Author: 李文 | Hits:

[source in ebookFloyd-Warshall-c-chengxi

Description: Floyd-Warshall算法描述 1)适用范围: a)APSP(All Pairs Shortest Paths) b)稠密图效果最佳 c)边权可正可负 2)算法描述: a)初始化:dis[u,v]=w[u,v] b)For k:=1 to n For i:=1 to n For j:=1 to n If dis[i,j]>dis[i,k]+dis[k,j] Then Dis[I,j]:=dis[I,k]+dis[k,j] c)算法结束:dis即为所有点对的最短路径矩阵 3)算法小结:此算法简单有效,由于三重循环结构紧凑,对于稠密图,效率要高于执行|V|次Dijkstra算法。时间复杂度O(n^3)。 考虑下列变形:如(I,j)∈E则dis[I,j]初始为1,else初始为0,这样的Floyd算法最后的最短路径矩阵即成为一个判断I,j是否有通路的矩阵。更简单的,我们可以把dis设成boolean类型,则每次可以用“dis[I,j]:=dis[I,j]or(dis[I,k]and dis[k,j])”来代替算法描述中的蓝色部分,可以更直观地得到I,j的连通情况。 -err
Platform: | Size: 3072 | Author: 江晨 | Hits:

[Data structsFLOYD

Description: 数据结构中有关FLOYD算法的VC++程序,帮助大家理解FLOYD这个数据结构-Data structure relating to FLOYD algorithm VC++ Procedures to help everyone understand the data structure FLOYD
Platform: | Size: 1862656 | Author: 杨博 | Hits:

[Windows Developfloyd

Description: Floyd算法,计算任意两点间的最短路径,并加入MFC和文件操作,比较实用。-Floyd algorithm to calculate arbitrary shortest path between two points, and to join MFC and file operations, more practical.
Platform: | Size: 1873920 | Author: 李亚飞 | Hits:

[matlabfloyd

Description: floyd求解最短路,并将路径还原。经过验证,程序中有清楚注释-floyd Solving the shortest path, and path restoration. After authentication, the Notes program has clearly
Platform: | Size: 1024 | Author: steawen | Hits:

[matlabFloyd

Description: 用来处理路径优化等问题的FLOYD等算法。-Used to deal with issues such as path optimization algorithm FLOYD, etc..
Platform: | Size: 5120 | Author: 崔宁 | Hits:

[source in ebookGraph

Description: 图的基类以及最短路径算法,dijkstra,floyd,Kruskal算法等,代码来自北大赵海燕老师编著的数据结构与算法。-Graph base class as well as the shortest path algorithm, dijkstra, floyd, Kruskal algorithm, code Zhao Haiyan teachers from Beijing University and edited by the data structure and algorithm.
Platform: | Size: 663552 | Author: 张淼 | Hits:

[Othermatlab

Description: floyd最短路算法&求网络的最小费用最大流&匈牙利算法&求网络的最小费用最大流-Floyd s short for network algorithm and the minimum cost flow and Hungary algorithm for the minimum cost and maximum flow network
Platform: | Size: 238592 | Author: 江奇 | Hits:

[Windows Developjohnson_floyd-washall

Description: 在windows下的Floyd-Warshall与johnson算法及性能比较-Under the windows with the Floyd-Warshall algorithm and performance comparison johnson
Platform: | Size: 3072 | Author: sun | Hits:

[matlabfloyd

Description: 图和网络最短路径法则的弗洛伊德算法,从振动论坛下载。挺不错的哟-Network map and the law of the shortest path algorithm Freud, from the vibration of the forum to download. Pretty good yo. .
Platform: | Size: 2048 | Author: 田中玉 | Hits:

[matlabFloyd

Description: 此文介绍了floyd算法的一种改进方法,实践价值高,方法的创新性好-This article introduces an improved algorithm floyd methods, the practice of high value, innovative methods of good
Platform: | Size: 488448 | Author: vumeng | Hits:

[Windows Developfloydwarshall

Description: floyd warshall algorithm in c-floyd warshall algorithm in c++
Platform: | Size: 1024 | Author: lifeless | Hits:

[AlgorithmFloyd-Warshall

Description: Floyd-Warshall algorithm for shortest path problem
Platform: | Size: 1024 | Author: SomeOne | Hits:

[AlgorithmFloyd-Warshall

Description: Floyd–Warshall algorithm
Platform: | Size: 1024 | Author: profiler007 | Hits:

[matlabFastFloyd

Description: floyd warshall algorithm
Platform: | Size: 1024 | Author: arta | Hits:

[Mathimatics-Numerical algorithmsFloyd-Warshall

Description: The Floyd-Warshall algorithm to find the shortest path
Platform: | Size: 1024 | Author: aaaadddiii | Hits:

[Mathimatics-Numerical algorithmsWarshall-Floyd

Description: floyd warshall algorithm
Platform: | Size: 1024 | Author: paulicim | Hits:

[Otherdist

Description: 用最短路径算法算出特定两点之间的距离 输入:直接读取net.in文件 第一行为四个整数N,M,S,T,每两个整数之间用一个空格隔开,分别表示网络的节点(编号为1到N),网络线段数,以及起点终点编号 接下来M行,每行三个整数U,V,D,每个整数之间用空格隔开,表示节点U和V之间有一条线路相连,距离是D,(两个节点可能有多条线路) 输出:直接写入到net.out文件,输出只有一行,表示从S点到T点的最短距离(如果不通则输出-1) (N<=100,M<=N*N,D<=1000)(Use the shortest path algorithm to calculate the distance between two specific two points Input: read the net.in file directly The first behavior is four integers N, M, S and T. Every two integers are separated by a space, representing the node of the network (number 1 to N), the number of network segments, and the origin and destination number. Next, M row, each row three integers U, V, D, each integer is separated by spaces, indicating that there is a line between nodes U and V, the distance is D, (there may be multiple lines in two nodes). Output: write directly to net.out file, output only one line, which indicates the shortest distance from S point to T point (if it doesn't connect, output -1) (N<=100, M<=N*N, D<=1000). Floyd-Warshall algorithm)
Platform: | Size: 3334144 | Author: kelin6 | Hits:
« 12 3 4 »

CodeBus www.codebus.net