prim

所属分类:数据结构
开发工具:Visual C++
文件大小:1040KB
下载次数:8
上传日期:2013-12-31 14:59:47
上 传 者dengjunwen1992
说明:  无向图应用问题 任务:如果以五向网表示n个城市之间通信网络的建设计划,顶点表示城市,边上的权表示该线路的造价,设计一个方案,使这个通讯网的总造价最低。 提示:这是一个求最小生成树的问题。n个城市名和各边的权值由用户输入,建立图的邻接矩阵,然后以Prim算法来求最小生成树,然后输出方案。
( The application of an undirected graph Task: If the five-way communications network, said network between n cities construction plan, the vertices represent cities, said the right side of the line cost, design a plan to make the lowest total cost of this communications network. Tip: This is a minimum spanning tree problem. n cities weights on each side of the name and entered by the user to establish the adjacency matrix, then Prim algorithm to find the minimum spanning tree, and then output the program.)

文件列表:
kcsj (0, 2013-12-31)
kcsj\Debug (0, 2013-12-31)
kcsj\Debug\kcsj.exe (544855, 2013-12-31)
kcsj\Debug\kcsj.ilk (785020, 2013-12-31)
kcsj\Debug\kcsj.pch (2001516, 2013-12-31)
kcsj\Debug\kcsj.pdb (1090560, 2013-12-31)
kcsj\Debug\prim.obj (249490, 2013-12-31)
kcsj\Debug\vc60.idb (74752, 2013-12-31)
kcsj\Debug\vc60.pdb (110592, 2013-12-31)
kcsj\kcsj.dsp (3975, 2013-12-31)
kcsj\kcsj.dsw (516, 2013-12-31)
kcsj\kcsj.ncb (33792, 2013-12-31)
kcsj\kcsj.opt (48640, 2013-12-31)
kcsj\kcsj.plg (744, 2013-12-31)
kcsj\prim.cpp (1058, 2013-12-31)

近期下载者

相关文件


收藏者