-
trainreset:有许多列车需要开车出站的作用。
TrainReset:there are many trains need to drive out of the station .In terms of their numbers from small to large.There are only three railways used to place the trains ,and also need the same order.-TrainReset : there are many trains need to drive out of the sta tion. In terms of their numbers from small to deviation ge.There are only three railways used to place t he trains, and also need the same order.
- 2022-07-14 05:15:14下载
- 积分:1
-
数据结构经典算法的实现
数据结构经典算法的实现-data structure to achieve the classical algorithm
- 2023-05-18 22:35:04下载
- 积分: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
-
Shot 26001
Shot 26001- I_pla - Ok Shot-Shot 26001- I_pla- Ok Shot
- 2023-04-22 01:10:04下载
- 积分:1
-
DES,MD5,ZLIB算法源代码
DES,MD5,ZLIB算法源代码-DES, MD5, ZLIB algorithm source code
- 2022-07-10 21:54:32下载
- 积分:1
-
使用收音机
一个使用射频卡的考勤软件-use of a radio-frequency card appraisal software
- 2022-07-19 04:56:07下载
- 积分:1
-
数据结构课程设计报告,算术表达式求值,自动辨别算符优先级,括号,将char型转换成int计算,再将结果显示,具有精美用户界面...
数据结构课程设计报告,算术表达式求值,自动辨别算符优先级,括号,将char型转换成int计算,再将结果显示,具有精美用户界面-data structure curriculum design, arithmetic expression evaluates automatically identify operator precedence, in brackets, char to int conversion type, the result shows that the user interface is attractive
- 2022-12-30 10:20:04下载
- 积分:1
-
xmail 邮件程序案例
xmail 邮件程序案例-mail procedures DCS case
- 2023-08-06 22:15:04下载
- 积分:1
-
孙鑫kecheng1源代码
sun xin kecheng1 yuandaima
- 2023-02-25 19:10:03下载
- 积分:1
-
一个电力企业的后台管理程序,请大家笑纳
一个电力企业的后台管理程序,请大家笑纳-The background of a power enterprise management process, please笑纳
- 2022-01-31 12:03:23下载
- 积分:1