-
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示...
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示:
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
-
演示了如果拖放文件,并解析文件是否为快捷方式和文件信息。...
演示了如果拖放文件,并解析文件是否为快捷方式和文件信息。
- 2023-04-12 14:50:04下载
- 积分:1
-
Research Institute in China Blocks AD conversion
研究研华模块得AD转换程序-Research Institute in China Blocks AD conversion
- 2022-08-16 14:29:51下载
- 积分:1
-
人机猜拳对战游戏。由电脑随机猜拳分别石头、剪刀、布
然后有用户输入自己的猜拳,判断输赢。程序要求可以循环猜拳...
人机猜拳对战游戏。由电脑随机猜拳分别石头、剪刀、布
然后有用户输入自己的猜拳,判断输赢。程序要求可以循环猜拳 -Human finger-guessing game against the game. Finger-guessing game, respectively, by the computer-generated random stone, scissors, cloth then entered by the user" s own finger-guessing game to determine winning or losing. Procedural requirements could be re-finger-guessing game
- 2022-02-27 02:05:48下载
- 积分:1
-
图书管理系统
图书管理系统其实是对图书、读者数据的管理,它的实现将为管理者提供极大的方便。系统功能模块如下: (一)登录模块 (二)书库管理模块 1.增加图书 2.图书查询 3.图书编辑 (三)借还管理模块 1.借阅管理 2.归还管理 (四)管理员模块 1.添加成员 2.修改密码管理员账户:root密码:123456调试软件:eclipse操作系统:window7数据库:MySQL运行环境:普通电脑
- 2022-03-23 10:38:19下载
- 积分:1
-
VPN,RAS拨号程序
一个完整的使用RAS相关函数编写的拨号程序,可支持VPN拨号程序代码,也适用于其他PPPOE拨号程序。主功能位于MyRasFunction,同时提供两个简单的测试程序。使用C++编写,测试程序界面使用ATL。
- 2022-02-03 18:10:58下载
- 积分:1
-
installation tool kits can be embedded programming tools such as Visual C++, the...
白盒测试工具安装包,可以嵌入VC等编程工具中,对代码进行白盒测试-installation tool kits can be embedded programming tools such as Visual C++, the code of White Box
- 2022-03-06 02:10:36下载
- 积分:1
-
这是一个用JAVA编写的的一个模拟WINDOWNS计算器。程序有很多地方请各位高手指教。...
这是一个用JAVA编写的的一个模拟WINDOWNS计算器。程序有很多地方请各位高手指教。-This is a preparation using the Java simulation of a WINDOWNS calculator. Procedures are many places you please enlighten master.
- 2022-02-02 17:46:55下载
- 积分:1
-
这是基于6个算法的单
这是基于VC++6.0的单用户注水算法的源程序,-This is based on the VC++ 6.0 Algorithm for single-user water source,
- 2022-05-14 00:31:21下载
- 积分:1
-
screen capture program for capture screen images and save this example is a scre...
屏幕捕获程序 用以捕获屏幕图象并保存,本实例是一个能随时抓取屏幕图象的软件-screen capture program for capture screen images and save this example is a screen that can capture images of the software
- 2023-01-15 12:25:04下载
- 积分:1