-
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示...
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示:
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
-
现成的摇奖程序。
修改一下所需数量即可使用。
现成的摇奖程序。
修改一下所需数量即可使用。-摇奖off-the-shelf program. Changed a bit to use the required quantity.
- 2022-04-27 19:21:11下载
- 积分:1
-
multifunction machines regular customs procedures can achieve this Mytob.BSNotes
多功能定时关机器 这个程序可以实现定时关机-multifunction machines regular customs procedures can achieve this Mytob.BSNotes
- 2022-02-03 01:03:41下载
- 积分:1
-
高斯算子对图像进行平滑,附源码和测试图片
高斯算子对图像进行平滑,附源码和测试图片-Gaussian operator for smoothing the image, with source code and test images
- 2023-02-16 18:25:04下载
- 积分:1
-
针对采用赛灵思 ise 设计套件中 mini_aes verilog 代码
# $Id: 自述,2005年-12-06 v1.1.1.1 2:47:45 Exp $ arif_endro目录布局.| — — 板凳-> 测试 benchdirectory|| — — 数据-> 数据 files,"ecb_tbl.txt" 用于核查文件。||-doc-> documentationfiles|" — — 源-> VHDL 源代码的这个项目。试验台如果你想要运行测试工作台,然后转到长椅上的子目录中,然后运行协同文件,即 "modelsim_bench.do"。这种模拟将生成输出到一个文件中被称为 "ecb_tbl_result_enc.txt" 和"ecb_tbl_result_dec.txt",然后你可以分析这些文件,以查看结果。此致敬礼Arif E.努格罗霍
- 2023-02-27 07:10:04下载
- 积分:1
-
c++大学教程 适合初学者使用 书中详细介绍各类函数 另有大量源码...
c++大学教程 适合初学者使用 书中详细介绍各类函数 另有大量源码-c++ University tutorial suitable for beginners to use the book in detail various types of function otherwise introduce a large number of source
- 2023-04-26 15:45:04下载
- 积分:1
-
Are mainly used in a number of examples and useful development of the library fi...
主要是一些示例和开发所用的有用的库文件,希望能给你的开发工作提供帮助-Are mainly used in a number of examples and useful development of the library files, hope that I can help your development work
- 2022-04-25 02:10:13下载
- 积分:1
-
This example uses the FTP Server Profile library (ftps) to implement a simple re...
This example uses the FTP Server Profile library (ftps) to implement a simple read-only FTP server application. When the application is running, Bluetooth FTP Profile client devices can connect to this FTP server. The FTP server provides the following functionality:
* File & folder browsing
* Downloading files
Since the filesystem is read only, folder listings can be pre-generated using the included make_listing.pl Perl script for each folder. Each folder to be included in the FTP Server must have a file containing the GOEP Folder Listing. This file should be called "_dir.xml". This must conform to the GOEP specification for folder listings. No processing of this file is made by the example application, it is just sent to the client when requested.
- 2022-12-09 17:20:03下载
- 积分:1
-
wince LAN91C11 card driver wince 4.2 5.0 6.0 are available
wince LAN91C11 网卡驱动
wince 4.2 5.0 6.0都可用,没有原来驱动引起PPPOE拨号引起网络崩溃问题-wince LAN91C11 card driver wince 4.2 5.0 6.0 are available
- 2022-03-07 16:05:35下载
- 积分:1
-
希望大家共同交流!
希望大家共同交流!-hope that we can exchange!
- 2022-05-28 07:41:50下载
- 积分:1