-
关于操作系统课程设计进程调度问题,内涵实验报告
关于操作系统课程设计进程调度问题,内涵实验报告-courses on operating system design process scheduling, content experimental report
- 2022-11-27 23:45:03下载
- 积分:1
-
生命进化游戏(The Game of Life) C++程序代码
一种在很多格子里不断进化的生命进化的小游戏。
它的规则是这样的:
对其中一个网格,如果它的邻居少于两个,则它会死于孤独;如果多于三个,它亦会因拥挤而死。只有当它的邻居数等于二或三时它才会生存到下一代;如果某格原先没有细胞,但它有三个邻居时,会繁衍一个新的细胞。
以上是百度到的介绍。这个程序是我自己写的,只用到了,用的是二维数组,在控制台显示,所以范围比较有限。
- 2023-04-18 04:10:03下载
- 积分:1
-
[输入]
图的顶点个数N,图中顶点之间的关系及起点A和终点B
[输出]
若A到B无路径,则输出“There is no path” 否则输出A到B路...
[输入]
图的顶点个数N,图中顶点之间的关系及起点A和终点B
[输出]
若A到B无路径,则输出“There is no path” 否则输出A到B路径上个顶点
[存储结构]
图采用邻接矩阵的方式存储。
[算法的基本思想]
采用广度优先搜索的方法,从顶点A开始,依次访问与A邻接的顶点VA1,VA2,...,VAK, 访问遍之后,若没有访问B,则继续访问与VA1邻接的顶点VA11,VA12,...,VA1M,再访问与VA2邻接顶点...,如此下去,直至找到B,最先到达B点的路径,一定是边数最少的路径。实现时采用队列记录被访问过的顶点。每次访问与队头顶点相邻接的顶点,然后将队头顶点从队列中删去。若队空,则说明到不存在通路。在访问顶点过程中,每次把当前顶点的序号作为与其邻接的未访问的顶点的前驱顶点记录下来,以便输出时回溯。
#include
int number //队列类型
typedef struct{
int q[20]
-[imported] map of the number of vertices N, Vertex map of the relationship between the starting point and end point A and B [output] if A to B without path then exporting "There is no path" Otherwise output A to B on the path vertices [storage structure] plan adopted adjacency matrix of storage. [Algorithm for the basic idea] BFS way from the vertex A, A visit followed with adjacent vertices VA1, VA2 ,..., VAK, visiting times, if not visit B, continue to visit with the VA1 adjacent vertices VA11, VA12 ,..., VA1M. VA2 and then
- 2022-01-25 22:50:29下载
- 积分:1
-
高高飞翔希望享受好的程序
loat hope enjoy good program
- 2022-01-31 17:27:25下载
- 积分:1
-
Introduction of a book of ancient Chinese coins, which you can numismatic knowle...
一个介绍中国古钱币的好书,通过它你可以对中国古钱币知识一览无遗,谢谢下载!-Introduction of a book of ancient Chinese coins, which you can numismatic knowledge of China glance Thank you to download!
- 2022-03-09 20:58:41下载
- 积分:1
-
主要是提供域名查询功能的主程序
PHP源代码
主要是提供域名查询功能的主程序
PHP源代码-The main function is to provide the names of the main query PHP source code
- 2022-09-22 19:50:02下载
- 积分:1
-
image of Leonardo fibonacchi
image of Leonardo fibonacchi
- 2022-01-29 01:48:15下载
- 积分:1
-
运动检测
我的项目是用opencv来识别运动检测,在这个项目中,我们使用opencv标准函数来记录图像的运动历史,并计算图像的梯度,我在运动发生的地方画一个圆并显示方向
- 2022-03-06 15:40:09下载
- 积分:1
-
这部分是用MATLAB产生随机过程的一系列源代码.含产生高斯分布随机变量,多变量高斯过程样本的产生,高斯...
这部分是用MATLAB产生随机过程的一系列源代码.含产生高斯分布随机变量,多变量高斯过程样本的产生,高斯--马尔科夫过程的产生等等..分别运行了这些程序.希望对大家有用-This is partly a random process generated by MATLAB source code of the series. Containing random variables have a Gaussian distribution, multivariate Gaussian process for selecting the sample, Gaussian- Markov process and so on .. have to run the procedure separately . everyone would like to be useful
- 2022-03-21 06:49:27下载
- 积分:1
-
一个漂亮的日记本,记录个人每日的心情,和每日的情况
一个漂亮的日记本,记录个人每日的心情,和每日的情况-A beautiful diaries, records of individual daily mood, and daily situation
- 2022-07-13 02:39:04下载
- 积分:1