-
C语言做的一个数据库的小程序,虽然小,但是可以帮助初学者学习怎样用C实现数据库编程...
C语言做的一个数据库的小程序,虽然小,但是可以帮助初学者学习怎样用C实现数据库编程-C language to a database of small programs, although small, but can help beginners learn how to use C Database Programming
- 2022-03-10 06:15:55下载
- 积分:1
-
个人课程设计管理系统,写在一个宿舍的全源码…
个人课程设计写的一个宿舍管理系统的全部源代码-Personal curriculum design management system written in a dormitory full source code
- 2022-01-25 16:20:34下载
- 积分:1
-
矩阵连乘问题 对多个矩阵连乘时 的消耗进行分析
矩阵连乘问题 对多个矩阵连乘时 的消耗进行分析-matrix continually multiply problems for a number of matrix continually multiply the consumption analysis
- 2023-07-23 09:15:03下载
- 积分:1
-
编辑数据库表格,可以显示图形及打印
编辑数据库表格,可以显示图形及打印-edit database forms, and can display graphics print
- 2022-08-07 17:58:23下载
- 积分: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
-
数据结构学习中遇到的二叉树的代码,运行快速
数据结构学习中遇到的二叉树的代码,运行快速-Study data structure encountered in the code tree, run fast
- 2022-03-17 16:13:03下载
- 积分:1
-
电影回顾
movie review asp code
- 2022-10-23 15:55:03下载
- 积分:1
-
一个有关于VC6.0与ACCESS数据库结合的小程序
一个有关于VC6.0与ACCESS数据库结合的小程序-An ACCESS database on VC6.0 and the combination of small programs
- 2022-02-25 00:40:35下载
- 积分:1
-
This is a use of the Java language in a series of small procedures, the java jav...
这是一个用Java语言编的一个小程序,主要教java初学者如何使用java语言,本例实现数据结构中如何实现排序的一个小例子-This is a use of the Java language in a series of small procedures, the java java beginners how to use the language, in this case the data structure of how to achieve a ranking of small examples
- 2022-02-28 14:49:45下载
- 积分:1
-
PB制作时钟小程序
PB制作时钟小程序-PB produced small clock procedures
- 2023-08-23 03:55:04下载
- 积分:1