redundantpaths

所属分类:编译器/解释器
开发工具:C/C++
文件大小:2KB
下载次数:5
上传日期:2009-03-09 01:22:45
上 传 者fake
说明:  c pgm to find redundant paths in a graph.Many fault-tolerant network algorithms rely on an underlying assumption that there are possibly distinct network paths between a source-destination pair. Given a directed graph as input, write a program that uses depth-first search to determine all such paths. Note that, these paths are not vertex-disjoint i.e., the vertices may repeat but they are all edge-disjoint i.e., no two paths have the same edges. The input is the adjacency matrix of a directed acyclic graph and a pair(s) of source and destination vertices and the output should be the number of such disjoint paths and the paths themselves on separate lines. In case of multiple paths the output should be in order of paths with minimum vertices first. In case of tie the vertex number should be taken in consideration for ordering.

文件列表:
redundant paths (4813, 2009-03-08)

近期下载者

相关文件


收藏者