-
单链表简单基数排序,关键字有三个,参与排序的关键字的值为0...
单链表简单基数排序,关键字有三个,参与排序的关键字的值为0-9之间的数-Simple single-chain base sequencing, there are three keywords to participate in the value of the keyword ranking for a number between 0-9
- 2022-07-12 16:24:08下载
- 积分:1
-
Order to map any of the distance between two nodes, (2) with two
求图的任两结点间的距离,(2) 用二维数组存放C和A ,C是原成本矩阵,A 是求出的距离矩阵
(3) 算法采用三重循环,其中最外层的循环变量必须代表中间结点,中层的循环变量代表头结点而内层循环变量代表尾结点。
(4) 试着把三层循环变量的顺序作些改变,最外层的循环变量仍代表中间结点,而中层循环变量代表尾结点,内层循环变量代表头结点。把两种做法所得结果作比较,看结果是否相同
(5) 显示结果要清晰易懂
(6) 本题运行结果
-Order to map any of the distance between two nodes, (2) with two-dimensional array of storage C, A, C is the original cost matrix, A is to find the distance matrix (3) The algorithm uses the triple loop, one of the most outer loop variable must be representative of intermediate nodes, the middle loop variable represents the first node and the inner loop variable represents the end nodes. (4) tried to three-loop order of the variables to make some changes, the most outer loop variables still represent intermediate nodes, while the middle loop variable represents the end nodes, the inner loop variable represents the first node. The two approaches to compare the results to see whether the results the same (5) shows the results must be clear and understandable (6) The q
- 2022-04-20 12:55:19下载
- 积分:1
-
xmail 邮件程序案例
xmail 邮件程序案例-mail procedures DCS case
- 2023-08-06 22:15:04下载
- 积分:1
-
一个简单适用的产品订购系统,适合初学者使用
一个简单适用的产品订购系统,适合初学者使用-A simple application of the product ordering system, suitable for beginners to use
- 2022-08-17 23:03:04下载
- 积分:1
-
Binomial coefficient computing] [Dev
二叉树系数计算[DeV-C++学习],利用动态规划动态编程计算
- 2022-02-01 00:21:29下载
- 积分:1
-
从数组中 任取一个元素 p (可随机取,现在以取第一个为例).以P作为主元,对数组 进行划分 ,前一部分小于 P,后一部分 大于p.最后划分处存储p,然后分别对...
从数组中 任取一个元素 p (可随机取,现在以取第一个为例).以P作为主元,对数组 进行划分 ,前一部分小于 P,后一部分 大于p.最后划分处存储p,然后分别对划分后的前一部分和后一部分递归调用.
算法平均时间复杂度: O(nlogn)
-Any check from the array element p (can be random access, and now to take the first example). To P as the main element of the array to be divided, the first part is less than P, the latter part of the final division is greater than p. Department store p , and then were divided into the first part and the latter part of recursive calls. algorithm the average time complexity: O (nlogn)
- 2022-03-12 12:50:19下载
- 积分:1
-
用栈解决迷宫问题,随机生成迷宫,而且还调用了 windows.h 实现了 windows 控制台字体变化,采用C++实现,注释很详细...
用栈解决迷宫问题,随机生成迷宫,而且还调用了 windows.h 实现了 windows 控制台字体变化,采用C++实现,注释很详细-Find a way through a maze with stack. The maze is generated randomly. Change the colors in console. Use C++ with detailed comments.
- 2023-02-01 05:55:03下载
- 积分:1
-
一个效率可以的线段树代码
可以直接用来求解矩形面积并
另外可以修改实现更多功能....
一个效率可以的线段树代码
可以直接用来求解矩形面积并
另外可以修改实现更多功能.-The efficiency of the line segment can be a tree code can be directly used to solve the rectangular area and the other can be modified to achieve more.
- 2023-07-08 10:55:03下载
- 积分:1
-
一元多项式相加程序,用于完成一元多项式的相加
一元多项式相加程序,用于完成一元多项式的相加-One of the polynomial sum of procedures used to complete the sum of the polynomial 1
- 2022-01-26 05:40:56下载
- 积分:1
-
一 . 需求分析:
1) 输入形式和输入值范围:
输入形式是某集体的“人名”,输入的是人名的拼音,而且字符长度不超过19。
2) 输出形式:...
一 . 需求分析:
1) 输入形式和输入值范围:
输入形式是某集体的“人名”,输入的是人名的拼音,而且字符长度不超过19。
2) 输出形式:
输出相应的“人名”哈希表,并实现查找的功能,且平均查找长度不超R.
3) 程序所能达到的功能:
利用哈希函数对“人名”拼音做编码,建立哈希表。并实现查找的功能,且平均查找长度不超R。
4)测试数据:(包括正确的输入数据及其输出结果和含有错误输入及其输出结果)
测试输入是不是有效的。进行条件判断,实现错误处理。
如果输入是正确的话,就会按程序的5个功能一步步建立起哈希表、查看哈希表、哈希表的查找。否则用函数MessageBox提示错误。然后进行更正。
二 . 概要设计:
1) 哈希表的特点
a) 据哈希函数和处理冲突的方法将一组关键字映像到一个有限的区间上
b) 以关键字在地址集中的“像”作为记录在表中的存储位置
c) 不经过任何比较,一次存取便能得到所查记录
- 2022-03-24 15:33:14下载
- 积分:1