-
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
-
1).能够实现对班级学生基本信息的录入,包括学生的学号,姓名,性别,专业,民族以及出生年月等。 2).能够实现对学生基本信息的修改。 3).根据学号对学生信息进...
1).能够实现对班级学生基本信息的录入,包括学生的学号,姓名,性别,专业,民族以及出生年月等。 2).能够实现对学生基本信息的修改。 3).根据学号对学生信息进行查询。 4).能够删除某些学生的信息。-1)able to insert the basic information of students,including number,gender,major,nation and birthday.
2)able to modify basic information of students.
3)query student s information by his/her number.
4)delete information of certain students.
- 2023-01-22 18:05:03下载
- 积分:1
-
适用于 WinRT Phones 和 App 的帮助架构
翻译 maninwest@Codeforge 作者David Maw @CodeProject一个在 Windows RT 或Windows Phone 中嵌入帮助页面的方式。创建一个 Windows Phone 程序时,我希望能提供一个用户帮户,格式能与设备设置兼容且可灵活应对不同的设备配置。我选择的解决方案是在代码文件中嵌入 HTML 页面,并根据设备设置进行渲染。背景你需要 XAML 和 C# 背景包含什么此代码是个可运行的通用应用,构建于 Windows Modern程序和 Windows Phone 8.1 程序上 -除了运行平台不同外,它们大体是对等的。解压缩文件并加载到 Visual Studio 2013 (我使用的的更新4) ,你应该可以构建它并在设备或者模拟器上运行。 在自己的项目中使用代码要使用该代码,你需要将一些文件复制到你的项目。你需要 Helper.cs, 它不渲染 UI,但是有各种有益的类。你还需要一个实际显示帮助的页面 (复制我的 HelpPage.xaml和 HelpPage.cs 作为开始点).你会希望允许用户在你程序的某个地方导航到帮助页面,为了实现这个功能,添加一个资源 ( HelpViewModel, 见下文) 和一些控件(按钮等)。你需要创建一页或者多页HTML 帮助页面,并将其放置在项目的 "Help"目录下。在你复制的文件中将"UniversalHelp" 替换成你的程序名称。在每一个你想添加帮助控件的页面,你需要添加类似下面的东西:
- 2022-03-07 14:16:24下载
- 积分: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
-
自己编写的Dtmf的matlab仿真的fig文件,在matlab6。0下编译通过
自己编写的Dtmf的matlab仿真的fig文件,在matlab6。0下编译通过-Fig file of Mathlab Dtmf Emulation. matlab6.0
- 2022-06-20 05:17:46下载
- 积分:1
-
机票需求分析,需求分析从一开始到包的一个G。
机票需求分析,从开始的需求分析到封装一气呵成,教你编程的基础-Ticket needs analysis, needs analysis from the beginning to the package at one go, and teach you the basis for programming
- 2022-06-02 09:09:25下载
- 积分:1
-
OpenCV
基于opencv的人脸和人眼检测程序,mfc界面,功能强大,简洁好用-Opencv-based human face and the human eye testing procedures, mfc interface, a powerful, simple and easy to use
- 2022-01-28 00:57:35下载
- 积分:1
-
这是一个VB 人事系统 课程设计学习用
这是一个VB 人事系统 课程设计学习用 -This is a personnel system to learn the curriculum design
- 2022-11-01 12:35:04下载
- 积分:1
-
password View : includes functions : 1. How to Form 2 overall in the forefront....
密码查看器:包括的功能: 1. 如何让窗体总在最前面 2. 坐标在窗体上的位置 3. 获得当前鼠标所在窗体的类型 4. 得到文本筐中的密码-password View : includes functions : 1. How to Form 2 overall in the forefront. The coordinates of the location on Form 3. Access to current forms of the host mouse type 4. Text basket to be the password
- 2022-03-25 14:08:51下载
- 积分:1
-
face recognition using pca and ann wih training and testing and validation privi...
face recognition using pca and ann wih training and testing and validation privided for ORL databases -face recognition using pca and ann wih training and testing and validation privided for ORL databases
- 2022-07-09 14:57:08下载
- 积分:1