-
为保障煤矿为例
example for security of meikuang
- 2022-03-20 03:19:24下载
- 积分:1
-
[问题描述]
将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N...
[问题描述]
将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N)
[输入]
待排序记录个数,各关键字的值。
[输出]
关键字从正负分开,正数在前
[存储结构]
待排序记录顺序存储。
[算法的基本思想]
快速排序算法每次任取一个记录的关键字为标准,将其余记录分为两组将,N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前。
#include
using namespace std
#define MAXNUM 100//设文件的最长可能长度
void sort(int* keys, const int len)//排序
-[Problem Description] N keyword to the integer sequence the entire record. keyword so that all non-negative Records with the keyword for the negative record, at least require the use of the additional space and time complexity of the algorithm is O (N) [imported] to be sort record number, The value of the keyword. [Output] keyword separate from the pluses and minuses are several former [storage structure] scheduling records to be stored sequence. [Algorithm for the basic idea] quick sort algorithm each time a record for any keyword as a standard, The remaining records will be divided into two groups, N-keyword
- 2022-03-17 21:15:57下载
- 积分:1
-
算法设计的分支限界法中的单源最短路径问题的实现,是用VC++编写的...
算法设计的分支限界法中的单源最短路径问题的实现,是用VC++编写的-algorithm design of branch and bound method of single source shortest path to the realization of the problem is with VC++ prepared
- 2022-07-27 08:04:35下载
- 积分:1
-
使用VS.NET开发的数据结构红黑树可视化图形界面演示。可以进行节点的添加及删除。...
使用VS.NET开发的数据结构红黑树可视化图形界面演示。可以进行节点的添加及删除。-use VS.NET development of the data structure RED-BLACK TREE visual graphical interface demo. The nodes can be added and deleted.
- 2022-03-20 13:14:28下载
- 积分:1
-
班主任考核管理系统
班主任考核管理系统-class teacher evaluation system
- 2023-01-13 01:40:04下载
- 积分:1
-
two randomly generated Chain Link, together with a small to large export order
将两个随机产生的链表连接,并按从小到大的顺序输出-two randomly generated Chain Link, together with a small to large export order
- 2022-07-05 02:08:40下载
- 积分:1
-
图书馆管理系统
图书馆管理系统被实施的 java 平台有利于机构和图书馆数据通过计算机系统进行管理。在本场景中图书馆在手册中维护信息记录,他没有有效的方法。随着软件应用程序使用在我们日常的生活发展越来越多像这样的应用程序将简单任务,节省大量时间。使用此系统整个库数据在数据库中维护,只是所使用的软件应用程序用户可以找出的书籍图书馆与出动搜寻整个媒体库中的可用列表。同样这个应用程序还保持用户采取了书籍和返回日期的详细信息和用户详细信息。
- 2022-03-13 09:06:57下载
- 积分:1
-
图的建立和图的广度深度优先遍历(有向图和无向图)
图的建立和图的广度深度优先遍历(有向图和无向图)-Map creation and map the breadth of depth-first traversal (with the map and undirected graph)
- 2022-05-29 10:00:23下载
- 积分:1
-
DES,MD5,ZLIB算法源代码
DES,MD5,ZLIB算法源代码-DES, MD5, ZLIB algorithm source code
- 2022-07-10 21:54:32下载
- 积分:1
-
一道北大acm的试题,用双向链表实现模拟内存分配的程序
一道北大acm的试题,用双向链表实现模拟内存分配的程序-1 Peking University acm of examination questions, with two-way linked list of memory allocation procedures for analog
- 2022-03-02 17:16:01下载
- 积分:1