登录
首页 » Visual C++ » Project_ShortestPath

Project_ShortestPath

于 2013-08-21 发布 文件大小:1218KB
0 232
下载积分: 1 下载次数: 5

代码说明:

  任务:实现Dijkstra算法 工程名:Project_ShortestPath 要求:实现Dijkstra算法,算法主体写在CGraph类中;要求是从command窗口中输入源节点编号,并在command窗口中输出从源节点到所有目的节点的最短路长及最短路。注:要输出整条路径,而不仅仅是前一跳,也不允许逆序输出。 (Task: Dijkstra' s algorithm to achieve the project name: Project_ShortestPath requirements: achieve Dijkstra algorithm, the algorithm written in the body CGraph class requires input from the command window, the source node number, and in the command window, all of the output from the source node to the destination node shortest long and the shortest. Note: To export the entire path, not just before the jump, do not allow reverse output.)

文件列表:

Project_ShortestPath
....................\Project_ShortestPath
....................\....................\Common.h,844,2009-11-06
....................\....................\Edge.cpp,1524,2012-03-05
....................\....................\Edge.h,1490,2012-03-05
....................\....................\Graph.cpp,1317,2012-06-11
....................\....................\Graph.h,782,2012-06-10
....................\....................\InputOutputManager.cpp,2425,2012-06-11
....................\....................\InputOutputManager.h,371,2012-06-10
....................\....................\Link.txt,73,2012-03-02
....................\....................\Node.txt,19,2012-02-20
....................\....................\Project_ShortestPath.cpp,592,2012-06-11
....................\....................\Project_ShortestPath.vcproj,5092,2012-03-02
....................\....................\Project_ShortestPath.vcproj.4305665D3DFD4AD.Administrator.user,1427,2010-04-02
....................\....................\Project_ShortestPath.vcproj.hzc-PC.hyq.user,1409,2012-06-11
....................\....................\Project_ShortestPath.vcproj.VFGRFY0D6XD50WI.Administrator.user,1427,2012-03-21
....................\....................\ReadMe.txt,1028,2010-04-02
....................\....................\stdafx.cpp,216,2012-02-20
....................\....................\stdafx.h,296,2012-02-20
....................\....................\Vertex.cpp,660,2012-06-11
....................\....................\Vertex.h,717,2012-06-11
....................\Project_ShortestPath.ncb,6491136,2012-06-11
....................\Project_ShortestPath.sln,925,2010-04-02

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • bag1
    使用不同的方法解决背包问题:本算法采用的是动态规划方法,比较好的解决背包问题。(Use different methods to solve knapsack problem: The algorithm is a dynamic programming approach, a better solution to knapsack problem.)
    2011-07-16 18:40:31下载
    积分:1
  • search
    数据结构与算法分析的 C++检索代码,很经典(the code of Data structure)
    2016-12-22 13:30:46下载
    积分:1
  • HuffmanTree
    用c++实现的haffman tree 小程序,仅供参考 。 (The the haffman tree applet realized with c++ for reference only.)
    2013-03-14 16:38:15下载
    积分:1
  • SplitADT
    链表L,创建公有成员函数Split(A,B ),创建2个新表A,B,使的A 中含有L中奇数位置元数,B中含L偶数位置元数 (Chain L, create public member function Split (A, B), to create two new tables A, B, A so containing L odd position of a few yuan, B-L even a few locations yuan)
    2007-03-30 20:48:18下载
    积分:1
  • BresenhamLine
    在VC中实现Bresenham算法画直线(Bresenham algorithm in VC draw a straight line)
    2012-06-03 18:21:13下载
    积分:1
  • Josephus(data_struct)
    数据结构中基于约瑟夫环问题,用C++方式实现的。。。。。(Data structure based on Josephus problem with C++ a manner. . . . .)
    2013-11-17 11:30:24下载
    积分:1
  • communication
    VC简易通讯录,加强C的编程,熟悉链表文件的使用等。(Simple VC contacts, strengthen C programming, familiar with the use of a linked list file.)
    2012-09-02 17:11:12下载
    积分:1
  • complex
    .h文件。c++中的复数类,能够直接完成基本四则运算,输入输出流,完成一定范围内的比较运算(. H file. c++ classes in the plural, to directly perform basic arithmetic, input and output streams, to complete a range of comparison operators)
    2021-04-25 14:58:46下载
    积分:1
  • jose
    约瑟夫环(约瑟夫问题)是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。通常解决这类问题时我们把编号从0~n-1,最后结果+1即为原问题的解。 (Josephus (Josephus problem) is the application of a mathematical problem: Given n individuals (with numbers 1,2,3 ... n respectively) sitting around a round table. From the number of people gettin k, number of the m man out of the line he s the next person and a number of gettin number to m the man was out of the line and so the law is repeated until the round table were all out of the column. We numbered 0 ~ n-1, the final result is the original problem solution+1 usually solve these problems.)
    2015-01-09 17:28:41下载
    积分:1
  • C++
    说明:  标准答案习题1 1.1 简述C++语言程序的结构特点。 答: (1)C++程序由一个或多个函数组成,其中至少有一个主函数main(),程序从主函数开始执行,由主函数来调用其他函数。(Standard answer to Exercise 11.1 on C++ Language program structural characteristics. Answer: (1) C++ Procedures by one or more functions, of which at least one of the main function main (), the procedure started from the main function, from the main function to call the other function.)
    2008-11-25 16:16:27下载
    积分:1
  • 696516资源总数
  • 106637会员总数
  • 8今日下载