-
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
-
游戏代码相当不错,感兴趣的可以下载来看看,
游戏代码相当不错,感兴趣的可以下载来看看, -Game code pretty well, interested can download to look at,
- 2022-04-28 05:20:16下载
- 积分:1
-
Mobile手机录像,获取源数据是WMV9格式,输出格式为ASF
Requirements:
Visual Studio 2005,
Win...
Mobile手机录像,获取源数据是WMV9格式,输出格式为ASF
Requirements:
Visual Studio 2005,
Windows Mobile 5.0 Pocket PC SDK,
ActiveSync 4.0.-Feature Area:
Video capture
Description:
This sample provides the basic video capture functionalities: It captures and encodes video in a WMV file,
and captures and encodes an image in a jpeg file.
Usage:
Build and deploy using Visual Studio 2005.
Relevant APIs/Associated Help Topics:
ICaptureGraphBUilder2
Assumptions:
Your device needs to have a video capture driver installed (the emulator ships with a null capture driver).
The video will be saved to the root of your device to "video1.asf".
The still picture will be saved to "test.jpg"
If you wish, you can change these hardcoded values in the code for the files to be saved to a different
location.
Requirements:
Visual Studio 2005,
Windows Mobile 5.0 Pocket PC SDK,
ActiveSync 4.0.
- 2022-03-10 08:30:19下载
- 积分:1
-
经典问题的源码(n皇后问题,点灯问题)
经典问题的源码(n皇后问题,点灯问题)-the classic source (n Queen, the Lantern)
- 2022-03-22 02:37:07下载
- 积分:1
-
求图中从一个顶点到另一个顶点的一条路径。
//为简化算法,没有提供顶点到其编号的转换函数,函数Path_vtou(ALGraph G,VexIndex v,...
求图中从一个顶点到另一个顶点的一条路径。
//为简化算法,没有提供顶点到其编号的转换函数,函数Path_vtou(ALGraph G,VexIndex v,VexIndex u)
//中两顶点参数用的是顶点的编号;函数Printpath(ListType Path)输出的是路径上的顶点编号序列-seeking a map from the vertex to another vertex of a path.// To simplify the algorithm, not to its peak numbered conversion, function Path_vtou (ALGraph G, VexIndex v, u VexIndex)// 2 vertex parameters of the number of vertices; Function Printpath (ListType Path) output is on the path to the peak numbers Sequence
- 2022-08-31 23:55:03下载
- 积分:1
-
图书馆的管理系统
图书馆的管理系统-Library Management System
- 2022-10-13 08:45:03下载
- 积分:1
-
我的小小的有趣的井字游戏
my little small funny TicTacToe game -my little small funny TicTacToe game
- 2022-03-02 09:40:17下载
- 积分:1
-
摄像头录像工具
通过家用摄像头拍照录像。.版本 2
.支持库 twain
.子程序 _摄像头数_被单击
.如果 (摄像头数.标题 = “2摄像头”)
镜头1单选框.禁止 = 假
镜头2单选框.禁止 = 假
视频设备2.可视 = 真
视频设备2.当前来源 = 1
视频设备2.预览 (真, 60)
视频设备2.设置视频输入 ()
摄像头数.标题 = “3摄像头”
来源按钮.标题 = “查看”
- 2022-03-02 07:08:40下载
- 积分:1
-
C# Realize simple WordPad feature, already most of the functions Word
C# 实现简单的写字板功能,已经具备了Word的大部分功能-C# Realize simple WordPad feature, already most of the functions Word
- 2022-08-08 11:35:40下载
- 积分:1
-
当时的如同热
当时的如同热-then soak
- 2022-07-07 14:36:41下载
- 积分:1