搜索资源列表
code
- (1) 生成n个[0,65535]以内的整数随机数,存入文本文件; (2) 将n个随机数从小到大排序,并显示结果。排序采用k桶法 (3)用函数编制混合同余的伪随机数发生器-(1) generate n-[0,65535] integer random number within, into a text file (2) n random numbers from small to large order, and displays the results. Sort by k B
Ktongfa
- 著名的大数量的排序算法--K桶排序法~在数据文本式的大数据排序时,K桶法会是一个不错的选择! k桶法:k桶法有两个主要步骤:分桶,整合。 分桶:把n个数依次放入k个桶中,除了第k个桶外,放入前k 1个桶中的数都要求后一个大于 前一个。分桶的具体规则如下: 第1个数放入第一个桶内,第2个数若大于第一个桶中的数(即第一个数)则放入第一个桶内, 否则放入第二桶内,以此类推。设现要将第j个数放入某桶中,先从第一个桶试起,若第j个 数大于当前第一个桶中最
suanfa
- 各种排序算法(冒泡,桶,归并,快速,希尔排序),及各种算法的时间分析-Various sorting algorithms (bubble, bucket, merge, quick, Hill sort), and the time of various algorithms
Question_LinearTimeSort
- 利用java实现的线性时间排序算法,主要有桶排序、计数排序、基数排序,希望对大家有用,如果有不懂可以联系我-Use a Java implementation of linear time sorting algorithms, there are mainly bucket sorting and counting sort, radix sort, hope useful for everyone, if you have not understand can contact me
TONGPAIXU.doc
- 通过这个程序实现桶排序。将数组分到有限数量的桶子里。每个桶子再个别排序(有可能再使用别的排序算法或是以递归方式继续使用桶排序进行排序)。桶排序是鸽巢排序的一种归纳结果。-Realize bucket sort through this program. A limited number will be assigned to an array of a bucket. Each individual bucket and then sorted (it is possible to re-use
bucketSort
- 桶排序 (Bucket sort)或所谓的箱排序,是一个排序算法,工作的原理是将数组分到有限数量的桶子里。(BUCKETSORT (Bucket sort) or the so-called box sort is a sorting algorithm, the principle is the array is divided into a finite number of buckets.)
sort
- 使用java实现最基础的四种排序 冒泡排序 选择排序 桶排序 插入排序(Using java to implement the most basic four sorts Bubble sort Selection sorting Bucket sorting Insertion sort)
CountingSort
- 改进的基于c++的计算排序算法。排序算法大体可分为两种: 一种是比较排序,时间复杂度O(nlogn) ~ O(n^2),主要有:冒泡排序,选择排序,插入排序,归并排序,堆排序,快速排序等。 另一种是非比较排序,时间复杂度可以达到O(n),主要有:计数排序,基数排序,桶排序等。(Improved calculation algorithm based on C ++. There are two kinds of sorting algorithms: one is sorting
HeapSort
- 改进的基于c++的堆积排序算法。排序算法大体可分为两种: 一种是比较排序,时间复杂度O(nlogn) ~ O(n^2),主要有:冒泡排序,选择排序,插入排序,归并排序,堆排序,快速排序等。 另一种是非比较排序,时间复杂度可以达到O(n),主要有:计数排序,基数排序,桶排序等。(Improved stacking algorithm based on C ++. There are two kinds of sorting algorithms: one is sorting, t
InsertSort1
- 改进的基于c++的插入排序算法。排序算法大体可分为两种: 一种是比较排序,时间复杂度O(nlogn) ~ O(n^2),主要有:冒泡排序,选择排序,插入排序,归并排序,堆排序,快速排序等。 另一种是非比较排序,时间复杂度可以达到O(n),主要有:计数排序,基数排序,桶排序等。(Improved C ++ Based Insertion Sorting Algorithm. There are two kinds of sorting algorithms: one is sort
MergeSort
- 改进的基于c++的归并排序算法。排序算法大体可分为两种: 一种是比较排序,时间复杂度O(nlogn) ~ O(n^2),主要有:冒泡排序,选择排序,插入排序,归并排序,堆排序,快速排序等。 另一种是非比较排序,时间复杂度可以达到O(n),主要有:计数排序,基数排序,桶排序等。(Improved c ++ based merge sort algorithm. There are two kinds of sorting algorithms: one is sorting, th