搜索资源列表
multidim_bsort.zip
- 二维数组的冒泡排序
简单数据结构的实现
- Shell 排序 单链表 堆排序 简单二叉树 快速排序 冒泡排序 数组生成最小堆 杨辉三角形
仓库管理系统(C语言)
- 一个仓库管理系统,用C语言编写的,之前做过学生成绩管理系统与此有相同的地方。采用结构体数组,具有输入商品,排序的功能,用菜单实现查询,学习C语言的好程序-a warehouse management system using the C language, the students did before the performance management system with the same place. Using the structure of the array, with the
bubblesorttemp
- 对字符串集进行排序,支持C++数组和MFC集合类,支持升序和降序. -right string sets, in order to support array and MFC C Class Set support ascending and descending.
数据结构配套光盘
- 《数据结构》配书光盘 内容包括:线性表,栈和队列,串,数组与广义表,树,图,查找,排序等所以算法。 该光盘中配有《数据结构》一书中的所有算法、每一个算法的 C 程序(后缀为 .cpp 的文件)及可执行文件(后缀为 .exe 的文件)。-"data structure" assigned CD include : linear table, stack and queue, strings, arrays and broad scale tree, map, searc
array_multisort()
- 一种使用PHP内置方法array_multisort()巧妙实现多维数组排序的方法-A method of using PHP s built-in method array_multisort () to realize multidimensional array sorting
merge-sort
- 归并排序的matlab实现,且该程序实现了多维数据的高效排序,并不是单纯的一维数组排序!-merge sort algriothm s source data
4
- 本题关于排序与细节处理,故选择int数组作为数据结构。 算法思想如下:对于输入的数据,根据其后的‘+’‘-’,用a,b的数组分别记录染病和正常的动物的高度。然后分别将a,b两数组排序。对于其后的m组询问,分别求出要杀中的动物数量x和最多误杀的动物数量y,分别询问a,b数组的倒数x,y位置的元素,稍作处理,分别作为最高高度和最低高度输出(若不和逻辑,输出-1)。程序结束。 复杂度:本题的运算时间主要用于排序(快排),故复杂度为O(nlogn)。空间复杂度是 O(n)。 -This
itcast
- JAVA中数组排序方法,包括冒泡、选择、插入、快速、希尔排序方法-Array sorting method in JAVA
sort_nat
- 输入字符串细胞数组 输出按自然顺序排列的结果及其索引(input: cell array of strings output: natural order sort results and index)
插入排序
- 将一个记录插入到已排序好的有序表中,从而得到一个新,记录数增1的有序表。即:先将序列的第1个记录看成是一个有序的子序列,然后从第2个记录逐个进行插入,直至整个序列有序为止。 要点:设立哨兵,作为临时存储和判断数组边界之用。(A record is inserted into a sorted ordered table to obtain a new ordered table with a record number increase of 1. That is, the first fir
setup
- 冒泡排序查询迭代数组。以及海量数据筛查,数组自由组合。(Bubble sort query iterative array)
yype823
- 一个进行数组排序的程序,可以进行数组单元的随即无序处理,产生随机数,()
c++
- 实现日期类管理,查找最大值,数组排序,日期转天数等等。(Implementing date class management)
堆排序
- 堆排序示例,用数组实现的小顶堆,面试笔试常考题(a code example of heap sort, merge sort and quick sort, it's useful when you have a test)
2
- .假设含n个记录的序列中,其所有关键字为值介于v和w之间的整数,且其中很多关键字的值是相同的。则可按如下方法进行排序:另设数组number[v…w]且令number[i]统计关键字取整数i的记录数,之后按number重排序列以达到有序。试编写算法实现上述排序方法?(Suppose that in a sequence containing n records, all the keywords are integers between V and W, and many of them are
jd-gui
- 先尝试用最简单的想法去实现排序,以此来比较学习冒泡排序 问题:设有一数组,其大小为10个元素(int str[10])数组内的数据是无序。现在要求我们通过编程将这个无序的数组变成一个从小到大排序的数组(从下标为0开始) 思路:按照题目的要求,毫无疑问,正确的结果应该就像这样: 1 2 3 4 5 6 7 8 9 10 要做到这样,最简单和最直接想到的方法就是进行对比交换。 首先,把10个数里最小的个数放到下标为0的位置上(str[0]) 通过将下标为0的数(str[0
051223
- 一个进行数组排序的程序,可以进行数组单元的随即无序处理,产生随机数,()
heap.cpp
- 这里需要做一个假设:对于数组中下标为i的节点其左子树和右子树都是保持最大堆性质的堆。在假设成立的前提上,经过这一个维护函数维护过的堆才能够保证是一个最大堆。(There is a hypothesis that the left subtree and the right subtree of the node with the subscr ipt of I in the array are the heaps that maintain the maximum heap properties
快速排序Python
- 快速排序算法的Python实现,最下方是例子,直接运行即可看到原始数组和排序后数组