-
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示...
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示:
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
-
Received e
收 发 送 电 子 邮 件-Received e-mail
- 2023-04-22 13:20:03下载
- 积分:1
-
水准计算程序,输入高差,程序自动平差,并计算闭合差
水准计算程序,输入高差,程序自动平差,并计算闭合差-Standard computer program, enter the height difference, the program auto-adjustment, and calculate the difference closure
- 2023-05-03 19:05:03下载
- 积分:1
-
SimpleTV 0.4
SimpleTV 是为在3TNet中方便的观看和录制直播视频而设计的。
SimpleTV 0.4版 的特性:...
SimpleTV 0.4
SimpleTV 是为在3TNet中方便的观看和录制直播视频而设计的。
SimpleTV 0.4版 的特性:
*可观看93个DVD画质的直播频道,包括2个1080i高清频道 (3TNet版本)
*支持交大非3TNet http模式
*集成精简VLC0.8.6i,不需要再安装任何其他解码器和播放器
*一键录制功能
*回放所录制的电视节目
*自带频道列表,单击频道名称可以看到预览图片(由Comic电视墙支持)
*频道收藏夹功能
*默认开启反交错功能,可以在选项中修改
*自动激活3TNet,可以在选项中修改
*集成PCR补丁,没有PCR的TS流可正常观看
*一键换肤功能,自带5个皮肤
*体积小巧,不到2MB
*支持32位 Windows XP、 Windows Vista-err
- 2022-09-06 21:05:03下载
- 积分:1
-
使用OpenGL的VC++的雪人
雪人小程序,用OpenGL vc―++完成-Snowman using OpenGL vc++
- 2022-04-13 10:13:21下载
- 积分:1
-
读取Excel表格文件转换成自定义格式并打印示例
读取Excel表格文件转换成自定义格式并打印示例-read Excel files into a custom format and print examples
- 2022-02-15 19:00:32下载
- 积分:1
-
升压
boost-log,一个牛人为boost库写的C++的日志库。boost作为一个庞大的C++基础库,一直缺少日志模块,改代码填补了这个空白,目前还在审核阶段-boost-log, a cow artificially boost library of C++ Writing the log database. a huge boost as the C++ foundation libraries, has been the lack of log module, change the code to fill the gaps in the current audit period is also
- 2022-03-18 04:27:59下载
- 积分:1
-
本程序是基于Windows系统SDK编程,它表示在窗口中不同的区域显示不同的光标,这对于SDK编程有一定的帮助和理解...
本程序是基于Windows系统SDK编程,它表示在窗口中不同的区域显示不同的光标,这对于SDK编程有一定的帮助和理解-this program is based on the Windows SDK programming system, it said in the window different regions show different cursor, which SDK programming will help and understanding
- 2022-11-26 12:55:02下载
- 积分:1
-
特殊的菜单(分栏显示)
特殊的菜单(分栏显示)-special menu (columns show)
- 2022-10-21 15:35:04下载
- 积分:1
-
虚拟内存分页逻辑地址和物理地址之间的转换…
分页式虚拟存储器中逻辑地址和物理地址之间的转换和缺页中断-Virtual memory paging logical address and physical address conversion and between the page fault
- 2022-04-25 00:34:02下载
- 积分:1