文件名称:text
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-06-02
- 文件大小:
- 3.78mb
- 下载次数:
- 0次
- 提 供 者:
- kuo****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
给定N个顶点、E条边的图G,完成图的相关算法,具体要求如下:
1 完成图的创建方法,即从键盘或文件输入图的信息,建立图的邻接表或是邻接矩阵存储结构。
2 给出判定图的性质的算法,即能够判定图是否是有向图、无向图、有向无环图、连通图等。
3 根据输入的图的性质,实现以下算法(选择其中一两个):
如果图是有向无环图,则先实现图的某种遍历算法,在此基础上实现图的拓扑排序算法。
如果图是连通图,则求出图的最大生成树(不是最小生成树,参考讲授的方法),即得到的生成树权值之和最大。
如果图是无向图,则以第一个顶点当做源点,求出单源最短路径。
-Given N vertices, E edges Figure G, complete graph related algorithms, specific requirements are as follows: a complete graph creation method, that is, from the keyboard or file input map information, to establish the adjacency table or the adjacency matrix storage structure. Figure 2 shows the determination of the nature of the algorithm, that is able to determine whether the graph is a directed graph, undirected graph, a directed acyclic graph, connectivity maps. 3 According to the nature of the input graph, to achieve the following algorithm (choose one or two): If the graph is a directed acyclic graph, the first plan is to achieve some kind of traversal algorithm, based on this map of topological sorting algorithm implementation. If the graph is a connected graph, then calculate the Maximum Spanning Tree (not a minimum spanning tree, the reference teaches a method), which obtained the right values and the maximum spanning tree. If the graph is undirected, places the f
1 完成图的创建方法,即从键盘或文件输入图的信息,建立图的邻接表或是邻接矩阵存储结构。
2 给出判定图的性质的算法,即能够判定图是否是有向图、无向图、有向无环图、连通图等。
3 根据输入的图的性质,实现以下算法(选择其中一两个):
如果图是有向无环图,则先实现图的某种遍历算法,在此基础上实现图的拓扑排序算法。
如果图是连通图,则求出图的最大生成树(不是最小生成树,参考讲授的方法),即得到的生成树权值之和最大。
如果图是无向图,则以第一个顶点当做源点,求出单源最短路径。
-Given N vertices, E edges Figure G, complete graph related algorithms, specific requirements are as follows: a complete graph creation method, that is, from the keyboard or file input map information, to establish the adjacency table or the adjacency matrix storage structure. Figure 2 shows the determination of the nature of the algorithm, that is able to determine whether the graph is a directed graph, undirected graph, a directed acyclic graph, connectivity maps. 3 According to the nature of the input graph, to achieve the following algorithm (choose one or two): If the graph is a directed acyclic graph, the first plan is to achieve some kind of traversal algorithm, based on this map of topological sorting algorithm implementation. If the graph is a connected graph, then calculate the Maximum Spanning Tree (not a minimum spanning tree, the reference teaches a method), which obtained the right values and the maximum spanning tree. If the graph is undirected, places the f
(系统自动生成,下载前可以参看下载内容)
下载文件列表
text
....\Debug
....\.....\text.exe
....\.....\text.ilk
....\.....\text.pdb
....\ipch
....\....\text-e7a07229
....\....\.............\text-2fde9051.ipch
....\text
....\text.sdf
....\text.sln
....\text.suo
....\....\Debug
....\....\.....\CL.read.1.tlog
....\....\.....\CL.write.1.tlog
....\....\.....\link-cvtres.read.1.tlog
....\....\.....\link-cvtres.write.1.tlog
....\....\.....\link.5044-cvtres.read.1.tlog
....\....\.....\link.5044-cvtres.write.1.tlog
....\....\.....\link.5044.read.1.tlog
....\....\.....\link.5044.write.1.tlog
....\....\.....\link.5220-cvtres.read.1.tlog
....\....\.....\link.5220-cvtres.write.1.tlog
....\....\.....\link.5220.read.1.tlog
....\....\.....\link.5220.write.1.tlog
....\....\.....\link.7952-cvtres.read.1.tlog
....\....\.....\link.7952-cvtres.write.1.tlog
....\....\.....\link.7952.read.1.tlog
....\....\.....\link.7952.write.1.tlog
....\....\.....\link.8868-cvtres.read.1.tlog
....\....\.....\link.8868-cvtres.write.1.tlog
....\....\.....\link.8868.read.1.tlog
....\....\.....\link.8868.write.1.tlog
....\....\.....\link.read.1.tlog
....\....\.....\link.write.1.tlog
....\....\.....\mt.read.1.tlog
....\....\.....\mt.write.1.tlog
....\....\.....\rc.read.1.tlog
....\....\.....\rc.write.1.tlog
....\....\.....\stdafx.obj
....\....\.....\text.exe.embed.manifest
....\....\.....\text.exe.embed.manifest.res
....\....\.....\text.exe.intermediate.manifest
....\....\.....\text.lastbuildstate
....\....\.....\text.log
....\....\.....\text.obj
....\....\.....\text.pch
....\....\.....\text.vcxprojResolveAssemblyReference.cache
....\....\.....\text.write.1.tlog
....\....\.....\text_manifest.rc
....\....\.....\vc100.idb
....\....\.....\vc100.pdb
....\....\ReadMe.txt
....\....\stdafx.cpp
....\....\stdafx.h
....\....\targetver.h
....\....\text.cpp
....\....\text.vcxproj
....\....\text.vcxproj.filters
....\....\text.vcxproj.user