-
循环队列的实现
实现循环扩容队列
- 2022-03-03 18:28:19下载
- 积分:1
-
Prim algorithm using minimum spanning tree of the experimental procedures used i...
用prim算法实验最小生成树
本程序中用到函数adjg( ),此函数作用是通过接受输入的点数和边数,建立无向图。函数prg( )用于计算并输出无向图的邻接矩阵。函数prim( )则用PRIM算法来寻找无向图的最小生成树
定义了两个数组lowcost[max],closest[max],若顶点k加入U中,则令lowcost[k]=0。
定义二维数组g[ ][ ]来建立无向图的邻接矩阵。
-Prim algorithm using minimum spanning tree of the experimental procedures used in function adjg (), this function is through the acceptance of input points and edges, the establishment of a directed graph. Function of prg () used to calculate and output undirected graph of adjacency matrix. Function prim () is used PRIM Algorithm to find the undirected graph of the minimum spanning tree array defines two lowcost [max], closest [max], if it joined the U of k vertices, then the lowcost [k] = 0. The definition of two-dimensional array g [] [] to create a undirected graph of adjacency matrix.
- 2022-03-16 20:21:07下载
- 积分:1
-
(1) 用一个4*20的二维数组M,第1行存放按从小到大排序的20个所给出的ai和bi,第2行存放相应的作业序号,第3行存放1或2(1代表是来自ai,2代表是来...
(1) 用一个4*20的二维数组M,第1行存放按从小到大排序的20个所给出的ai和bi,第2行存放相应的作业序号,第3行存放1或2(1代表是来自ai,2代表是来自bi), 第4行存放0或1(0代表作业序号未进入最优调度方案;1代表作业序号已进入最优调度方案)
(2) 排序完后,按课本所述方法求一种最优调度方案,存放在S中。
-(1) with a 4* 20 two-dimensional array M, the first a line to deposit a small to large order of 20 given by ai and bi, line 2 store operation corresponding serial number, the first three lines deposited one or 2 (a representative from the ai, 2 representatives from the bi), the first four rows stored 0 or 1 (0 for job number to gain access to optimal scheduling programs a job number has been entered on behalf of the optimal scheduling scheme) ( 2) Sort exhausted, according to the methods described in textbooks, seeking the optimal scheduling of a program stored in the S in.
- 2022-05-07 13:53:40下载
- 积分:1
-
data structure
数据结构――动态规划算法-data structure-- Dynamic Programming
- 2023-08-05 10:50:03下载
- 积分:1
-
题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列...
题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去掉不满足条件的排列。 2.程序源代码:-topic : 1,2,3,4 figures, the number can be formed with each other with no repeat of the triple-digit figures? How many are? 1. Program Analysis : can fill the 100, 10, 000 the number of spaces are 1,2,3,4. With all the components removed after not satisfied with the conditions. 2. Source code :
- 2022-05-22 05:43:42下载
- 积分:1
-
miniSQL 的数据库设计
数据库系统设计课程作业设计并实现一个精简型单用户SQL引擎(DBMS)MiniSQL,允许用户通过字符界面输入SQL语句实现表的建立/删除;索引的建立/删除以及表记录的插入/删除/查找。 通过对MiniSQL的设计与实现,提高学生的系统编程能力,加深对数据库系统原理的理解。
- 2023-02-11 23:55:04下载
- 积分:1
-
Dijkstra算法C程序实现,可以在windows和linux下运行,
Dijkstra算法C程序实现,可以在windows和linux下运行,-Dijkstra algorithm C program can run under windows and linux,
- 2023-04-18 19:45:03下载
- 积分:1
-
航空信息管理系统
航空信息管理系统-Aviation Information Management System
- 2022-04-07 08:09:51下载
- 积分:1
-
sybase数据库同步备份1采用了tcp通信。
2实现自由选择主辅库。...
sybase数据库同步备份1采用了tcp通信。
2实现自由选择主辅库。
- 2023-03-26 05:15:04下载
- 积分:1
-
Shortest Path Problem Description C
最短路径问题C++描述-Shortest Path Problem Description C
- 2022-01-27 14:10:42下载
- 积分:1