-
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示...
采用邻接矩阵表示无向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列。本输入样例中所用的图如下所示:
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
-
世界最小的全功能KeyLogger,不到4k
内附汇编源码。具体使用方法看包中英文readme说明。包里面的EXE会被某些杀毒软件杀掉,重新编译版本也是。...
世界最小的全功能KeyLogger,不到4k
内附汇编源码。具体使用方法看包中英文readme说明。包里面的EXE会被某些杀毒软件杀掉,重新编译版本也是。
解决方法:
把源码中的"Globalzkl" 中的"zkl"改为其它字符,然后重新编译,就可以避开杀毒软件。
-the world"s smallest full-featured KeyLogger, containing less than 4k compilation source. Specific ways of looking at the use of English readme package note. EXE inside the package will be some anti-virus software to kill, is recompiled version. Solutions : source put the "Global zkl" of the "zkl" with other characters, then recompile, they can avoid anti-virus software.
- 2022-03-15 10:16:17下载
- 积分:1
-
mathhead_e数学表达式解析器对自己使用方式的制备
MathHead_E数学表达式解析器,适合编写自己使用的计算器!-MathHead_E mathematical expression parser for the preparation of their own use of calculators!
- 2023-04-10 13:30:03下载
- 积分:1
-
字转换
figure to word convert
- 2022-10-17 04:50:02下载
- 积分:1
-
这是一个关于数据结构中三种排序的程序,包括拓扑排序,快速排序,希尔排序。都是经过老师检查过的。...
这是一个关于数据结构中三种排序的程序,包括拓扑排序,快速排序,希尔排序。都是经过老师检查过的。-This is a data structure on the three sequencing procedures, including topological sorting, quick sort, Hill sequencing. After all the teachers checked.
- 2022-02-11 16:23:19下载
- 积分:1
-
- 2022-02-06 03:37:30下载
- 积分:1
-
A pressure gauge procedures, in the dialog box enter the number above ruler can...
一个压力计程序,在对话框中输入数字,上面的尺子就可自动跑到对应的数字上-A pressure gauge procedures, in the dialog box enter the number above ruler can automatically go to the corresponding figures
- 2022-06-14 08:51:33下载
- 积分:1
-
log4cpp, very well
log4cpp,非常有名的开源日志库。为C++程序提供了一个便利的日志系统。-log4cpp, very well-known open source database log. For C++ program provides a convenient system log.
- 2022-09-30 05:15:04下载
- 积分:1
-
own collection on the javascript code, including tree menu effects, such as tab
自己收集的就javascript代码,包括树型菜单,特效,选项卡等-own collection on the javascript code, including tree menu effects, such as tab
- 2022-01-26 02:09:18下载
- 积分:1
-
The public method is used when you devolop B/S architecture ERP programe
开发B/S结构的ERP中用到的一些公共的方法-The public method is used when you devolop B/S architecture ERP programe
- 2022-06-30 22:02:36下载
- 积分:1