-
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示...
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示:
Input Format:
第一行输入两个值,第一个是图中顶点的个数,第二个是图中边的条数
第二行输入各顶点的信息,即输入每个顶点字符
第三行开始输入每条边,每条边的形式为两个顶点的序号,中间以空格隔开,输入完一条边换行
Output format:
首先输出图的顶点信息,输出完毕换行
接着输出图的邻接矩阵,假如图中有n个顶点,则输出形式为n行n列的邻接矩阵,输出完毕换行
接下来一行输出从图的第一个顶点开始进行深度优先遍历的序列,中间以空格隔开,输出完毕换行
最后一行输出从图的第一个顶点开始进行广度优先遍历的序列,中间以空格隔开,输出完毕换行
-Using an undirected graph adjacency matrix representation to complete the map creation, graph depth-first traversal, graph breadth-first traversal operation. In which vertex information is character, the graph vertex number by characters in order. The input sample used in the diagram are as follows:
Input Format:
The first line of input two values, the first one is the number of graph vertices, the second one is the number of graph edges
Second row, enter information in each vertex, that enter each vertex character
Start typing in the third line of each side, each side in the form of two vertices
- 2022-01-26 03:32:41下载
- 积分:1
-
in VB program simulated mouse movement, and can allow programs to automatically...
在VB程序中模拟鼠标的动作,可让程序自动动作。-in VB program simulated mouse movement, and can allow programs to automatically moves.
- 2022-05-21 19:27:44下载
- 积分:1
-
图像处理小程序,有界面,以及一些基本的处理操作.
图像处理小程序,有界面,以及一些基本的处理操作.-small image processing procedures, interface, as well as some basic handling operations.
- 2023-05-30 04:55:03下载
- 积分:1
-
FLUENT UDF计算钨的化学烧蚀速率
本程序用于计算固体火箭发动机钨渗铜燃气舵的化学烧蚀速率,计算钨材料与火箭喷管尾气中水和二氧化碳的反应,从而算出钨渗铜燃气舵的烧蚀速率和一定时间的烧蚀量。
- 2023-07-03 06:50:15下载
- 积分:1
-
c++ high
c++高级编程的源代码,供大家学习c++时使用-c++ high-level programming source code for everyone to learn c++ use
- 2022-01-24 16:41:10下载
- 积分:1
-
算法分析实验报告:Strassen矩阵乘法,无问题
算法分析实验报告:Strassen矩阵乘法,无问题-algorithm analysis experiment : Strassen matrix multiplication, no problem
- 2023-03-11 13:55:03下载
- 积分:1
-
最新的杀人游戏的源代码
来源于84源码下载站,请不要恶意传播,...
最新的杀人游戏的源代码
来源于84源码下载站,请不要恶意传播,-The latest killings came from the source code of the game Download the source station 84, please do not malicious dissemination,
- 2023-02-11 15:00:03下载
- 积分:1
-
VB student performance management system, with the whole thesis of graduate desi...
VB学生成绩管理系统,对整个毕业论文的设计具有很高的参考价值。
- 2022-06-01 16:04:50下载
- 积分:1
-
Duilib VS2013 静态链接库 动态连接库 库文件 编译
采用vs 2013编译的Duilib,将Lib引入,Dll放在Debug和Release目录。
参考Alberl的教程
在VS的菜单里,选择【工具】-【选项】-【项目和解决方案】-【VC++ 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-29 23:46:50下载
- 积分:1
-
产品管理系统
系统采用Java的编程技术,对产品实现了管理。对产品的管理功能可以延展和延伸。但凡是相关产品管理系统系统设计均可以在本系统额基础上进行完善和修改。
- 2022-04-23 04:50:00下载
- 积分:1