1 / 21
文档名称:

图论应用案例.doc

格式:doc   大小:217KB   页数:21页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

图论应用案例.doc

上传人:s0012230 2018/4/22 文件大小:217 KB

下载得到文件列表

图论应用案例.doc

相关文档

文档介绍

文档介绍:题目:最小生成树在城市交通建设中的应用
姓名:
学号:
指导老师:
专业: 机械工程
2014年3月16
目录
摘要 I
1 绪论 1
2 有关最小生成树的概念 2
3 prim算法介绍 3
4 系统设计及其应用 5
一、系统设计 5
二、最小生成树应用 6
5 总结 9
参考文献 10
附件: 11
最小生成树在城市交通建设中的应用
摘要:连通图广泛应用于交通建设,求连通图的最小生成树是最主要的应用。比如要在n个城市间建立通信联络网,要考虑的是如何保证n点连通的前提下最节省经费,就应用到了最小生成树。
求图的最小生成树有两种算法,一种是Prim(普里姆)算法,另一种是Kruskal(克鲁斯卡尔)算法。
本文通过将城市各地点转换成连通图,再将连通图转换成邻接矩阵。在Microsoft Visual C++上,通过输入结点和权值,用普里姆算法获得权值最小边来得到最小生成树,从而在保证各个地点之间能连通的情况下节省所需费用。
本文从分析课题的题目背景、题目意义、题目要求等出发,分别从需求分析、总体设计、详细设计、测试等各个方面详细介绍了系统的设计与实现过程,最后对系统的完成情况进行了总结。
关键字:PRIM算法、最小生成树、邻接矩阵、交通建设
Abstract
Connected graph is widely applied in traffic construction, connected graph of minimum spanning tree is the main as to establish work between the n city, want to consider is how to ensure n points connected under the premise of the most save money, apply to the minimum spanning tree.
O figure there are two kinds of minimum spanning tree algorithm, one kind is Prim (she) algorithm, the other is a Kruskal algorithm (Kruskal).
In this article, through the city around point into a connected graph, then connected graph is transformed into adjacency Microsoft Visual c + +, through the input nodes and the weights, gain weight minimum edge using she algorithm to get minimum spanning tree, which in the case of guarantee every location between connected to save costs.
Based on the analysis topic subject background, significance, subject requirements, etc, from requirements analysis, general design, detailed design, testing, and other aspects detailed introduces the system design and implementation process, finally pletion of the system are summarized.

Key words: PRIM algorithm, minimum spanning tree, adjacency matrix, traffic construction
1绪论
中国国际工程咨询公司交通业务部主任周晓勤指出,“以前的各专业规划主要是按照本行业交通发展的需求进行研究和规划的,在交通设施总量不足、基本网不完善的时候,互相之间的矛盾并不突出。但随着多种运输方式设施建设的快速发展,各行业交通网络的逐步完善,多种运输方式网络之间的叠加,难免显现出各种运输方式在通道和枢纽衔接上的不协调。其结果是,资源浪费,效率低下,使用不便利。而综合交通网发展规划的颁布有利于运输整体结构的调整,资源节约和集约利用,对于交通运输业的可持续发展具有重要和深远的意义。”
在社会主义建设