登录
首页 » Visual C++ » Graph

Graph

于 2020-12-13 发布 文件大小:4KB
0 341
下载积分: 1 下载次数: 26

代码说明:

  输入一个带权无向图的顶点数、边数、各条边信息(两个顶点和权值),建立该图的邻接矩阵结构,输出该邻接矩阵。将上述无向图邻接矩阵转换为邻接表结构,输出该邻接表;根据该邻接表对无向图进行深度优先遍历序列和广度优先遍历序列,并输出遍历结果;用prim算法实现构造该带权无向图的最小生成树,并将该最小生成树的各条边信息输出。(Enter a weighted undirected graph with vertices, edges, each of the side information (two vertices and weights), the establishment of the adjacency matrix structure, the output of the adjacency matrix. The above undirected graph adjacency matrix into adjacency list structure, the output of the adjacency list according to the adjacency table undirected graph depth-first traversal sequence and breadth-first traversal sequence, and outputs through the results using prim algorithm construct the weighted undirected graph minimum spanning tree, and the minimum spanning tree information on respective sides of the output.)

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

发表评论

0 个回复

  • BMP_pix_read_write
    实现BMP文件的基本功能。用C++实现一个Class,该Class具有读写BMP文件功能;该Class还具有对图像像素进行操作的功能(针对每个像素的读、写) (BMP files to achieve the basic functions. Using C++ implementation of a Class, the Class has read and write BMP file functions the Class also features the image pixel operation function (for each pixel of the read, write))
    2010-06-03 15:50:25下载
    积分:1
  • ballalongline
    小球沿斜线运动,可以扩展到其他程序中,第一次上传,谢谢。(a ball along with a line.)
    2013-11-17 20:53:20下载
    积分:1
  • DebugDemo
    设置位置断点跟踪程序,VC++精选编程源码,很好的参考资料。(Set breakpoint location tracking procedures, VC++ programming source code, a good reference.)
    2013-11-26 09:57:15下载
    积分:1
  • waituigai
    基于格子玻尔兹曼方法模拟泊肃叶流,边界条件用非平衡格式(Poiseuille flow based on the lattice Boltzmann method to simulate the boundary conditions with unbalanced format )
    2021-03-25 18:49:13下载
    积分:1
  • Video-Demo
    该源码为目标检测和跟踪算法 包括: 1. 静态背景下的背景预测法目标检测 2. 静态背景下帧间差分法目标检测 3. Mean Shift目标跟踪方法 4. 重心多目标跟踪方法 (The source code for target detection and tracking algorithm include: 1 Static background background prediction target detection 2 Static background frame difference method for target detection 3. Mean Shift tracking method 4 multi-target tracking methods focus)
    2013-08-11 20:39:39下载
    积分:1
  • DebugDemo
    设置位置断点跟踪程序,VC++精选编程源码,很好的参考资料。(Set breakpoint location tracking procedures, VC++ programming source code, a good reference.)
    2013-11-26 09:57:15下载
    积分:1
  • 首OPENCV单目标定
    相机的单目标定,使用张正友标定法,可靠使用(The monocular camera calibration, using the zhangzhengyou calibration method, reliable use)
    2017-09-23 20:48:47下载
    积分:1
  • DDBOpen-show-save
    DDB 图像编程 实现图像的打开,保存,显示,一般处理等功能(DDB image programming to achieve the image open, save, display, general processing and other functions)
    2013-09-15 11:34:36下载
    积分:1
  • NumberRecognize
    根据RBM深度网络(Hinton,2006)进行MINST手写文字的分类器的训练,利用训练得到的权值制作了这个小程序,通过这个程序可以看出训练结果对数据集内的测试样本和训练样本都能进行很好的识别,但是对其他的手写字体识别就没有那么好了。(According to RBM depth network (Hinton, 2006) conducted MINST handwritten text classifier training, using the training to get the right value to produce this small program, this program can be seen through the results of the training data set and the training sample test samples are can be well identified, but on the other handwriting recognition is not so good.)
    2013-10-17 15:55:34下载
    积分:1
  • the-Algorithm-of-fire-detection
    推荐火灾检测的参考文献,有火焰多个特征提取的算法。(the article is about how to detect fire,using many algorithms to get the features of fire.)
    2013-03-26 15:01:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载