-
Description:
采用邻接表表示有向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列,...
Description:
采用邻接表表示有向图,完成图的创建、图的深度优先遍历、图的广度优先遍历操作。其中图的顶点信息是字符型,图中顶点序号按字符顺序排列,边的输入按照边的顶点序号从小到大的顺序排列,如下图的边的输入顺序为0 1,0 2,0 3,1 2,1 3,2 4,3 4共七条边,邻接表的边结点采用头插法。本输入样例中所用的图如下所示:
Input Format:
第一行输入两个值,第一个是图中顶点的个数,第二个是图中边的条数
第二行输入各顶点的信息,即输入每个顶点字符
第三行开始输入每条边,每条边的形式为两个顶点的序号,中间以空格隔开,输入完一条边换行
Output format:
首先输出图的顶点信息,输出完毕换行
接着输出图的邻接表,格式为首先输出第一个顶点,接着输出该顶点的所有的临界点的序号,换行,然后输出下一个顶点及邻接点,以此类推
接下来一行输出从图的第一个顶点开始进行深度优先遍历的序列,中间以空格隔开,输出完毕换行
最后一行输出从图的第一个顶点开始进行广度优先遍历的序列,中间以空格隔开,输出完毕换行
-Description:
Adjacency list using said directed graph to complete the map creation, map of the depth-first traversal, breadth-first graph traversal operations. In which vertex information is character, the graph vertices in order arranged by character number, while the input side of the vertex according to serial number from small to large order, the following graph of the input side of the order of 0 1,0 2,0 3,1 2,1 3,2 4,3 4 a total of seven edge, the edge-node adjacency list using the first interp
- 2022-01-28 23:09:39下载
- 积分:1
-
此代码实现了快速检索mp3文件,并且把相应的信息显示出来,比如歌手名字,专辑,乐曲风格等,为不可多地的好代码...
此代码实现了快速检索mp3文件,并且把相应的信息显示出来,比如歌手名字,专辑,乐曲风格等,为不可多地的好代码-this code has achieved rapid retrieval MP3 files, and to the corresponding display information, such as names of artists, albums, music style, so as to not more good code! !
- 2022-06-20 16:40:14下载
- 积分:1
-
参考源码,学习例子
参考源码,学习例子-reference source, study examples
- 2022-09-02 11:05:03下载
- 积分:1
-
Windows socket编程的客户端实现。
Windows socket编程的客户端实现。-Windows socket programming, client-side implementation.
- 2023-07-07 12:45:03下载
- 积分:1
-
E-Bazaar Online Shopping System
This project is to provide ease in the transaction of money for student and other faculty members in collage. In this project, we have tried to cover important things like given the new account, username password, for new students. Sending the request for the authentication of username and password, selecting the students’ order, verifying that order and then giving the receipt to student and that much money will be deducted from student’s accounts. The students are also informed about the low account balance after some specific low amount.
- 2022-06-27 23:39:45下载
- 积分:1
-
退出程序后,如何保存信息。
退出程序后,如何保存信息。-withdraw from the process, how to preserve information.
- 2022-03-11 10:25:03下载
- 积分:1
-
重复文件查找算法usind标准模板库的C
Duplicated file finder algorithm usind standard template library of c-Duplicated file finder algorithm usind standard template library of c++
- 2022-05-21 20:12:29下载
- 积分:1
-
创建了一个能够获得并且修改计算机系统时间的应用程序。程序能够实现系统时间的显示和日历查看,还可以完成系统时间的重新设定。...
创建了一个能够获得并且修改计算机系统时间的应用程序。程序能够实现系统时间的显示和日历查看,还可以完成系统时间的重新设定。-Created a computer system access and modify the time of application. Programs to achieve system time display and calendar view, you can also reset the time to complete the system.
- 2022-03-24 15:10:55下载
- 积分:1
-
银行交易系统银行交易系统
- 2023-03-29 12:30:04下载
- 积分:1
-
程序崩溃后,将内存中的崩溃信息dump到本地,供调试用
当我们系统要求的程序,有时会在客户端计算机的应用程序崩溃,因为没有调试信息,我们不能调试应用程序崩溃,为什么。但与小型转储,我们可以调试崩溃是本地机器调试
- 2022-09-05 05:45:02下载
- 积分:1