-
约瑟夫环实现
约瑟夫环实现
- 2022-02-07 00:49:01下载
- 积分: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
-
数据结构课程设计 B
数据结构课程设计 B-树 等 希望对大家有帮助-Data Structure Course Design B-trees, etc. We want to help
- 2022-04-11 02:31:21下载
- 积分:1
-
网络流算法的程序以及用网络流解决两个最小割模型的代码
网络流算法的程序以及用网络流解决两个最小割模型的代码-Network flow algorithm for the procedure as well as network flow solution to the two minimal cut model code
- 2022-09-02 09:45:03下载
- 积分:1
-
我上课用的计算机算法设计与分析的电子教案,内容包括了最基本的分治法,贪心法,动态规划法,...
我上课用的计算机算法设计与分析的电子教案,内容包括了最基本的分治法,贪心法,动态规划法,-I class computer algorithms used in design and analysis of electronic lesson plans, including the most basic sub-rule law, greedy method, dynamic programming method,
- 2022-06-12 19:43:12下载
- 积分:1
-
树的建立算法和树的遍历操作。。。下载解压即可
树的建立算法和树的遍历操作。。。下载解压即可-The establishment of trees and tree traversal algorithm to operate. . . Download decompression can
- 2023-08-15 21:05:04下载
- 积分:1
-
项目描述: SQLite is a small C library that implements a self
项目描述: SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine. Features include- Project description: SQLite is a small C library that
implements a self-contained, embeddable, zero-configuration SQL
database engine. Features include
- 2022-01-22 13:40:01下载
- 积分:1
-
数据结构与算法分析中创建链表,实现多项式相加
数据结构与算法分析中创建链表,实现多项式相加-Analysis of the data structure and algorithm to create a list, add up to the realization of polynomial
- 2023-01-31 17:15:04下载
- 积分:1
-
数据结构的最短路径算法
数据结构的最短路径算法-Source codes about how to realize the short path generation for single source graph.
- 2022-06-20 23:37:38下载
- 积分:1
-
针对Excel表格文件操作的编程实现
可实现读写和表格查询
针对Excel表格文件操作的编程实现
可实现读写和表格查询-against Excel spreadsheet file manipulation of the program can achieve literacy and form inquiries
- 2022-08-24 09:53:03下载
- 积分:1