搜索资源列表
paixu-bijiao
- 对六种排序算法进行时间比较,看哪个用的时间有多少秒,包括归并排序,基排序,选择排序等-Six kinds of sorting algorithm for time comparison, see which time how many seconds, including merge sort, and sorting, selection sort, etc
merge_sort
- 归并排序是建立在归并操作上的一种有效的排序算法。该算法是采用分治法(Divide and Conquer)的一个非常典型的应用。首先考虑下如何将将二个有序数列合并。这个非常简单,只要从比较二个数列的第一个数,谁小就先取谁,取了后就在对应数列中删除这个数。然后再进行比较,如果有数列为空,那直接将另一个数列的数据依次取出即可-It is a algorithm of Merge sort,and it was realized by using c++.
QuickSort
- 数据结构中C语言所写的快速排序算法,与严蔚敏书上的比较一致-Quicksort algorithm, written in C language data structure book with Yan Wei Min
sort
- 对排序算法效能的比较,其中包括:冒泡排序,选择排序,快速排序,直接插入排序等-Performance comparison of sorting algorithms, including: bubble sort, selection sort, quick sort, insertion sort directly
3
- 分别编写函数实现冒泡排序、快速排序和简单插入排序算法; 2) 2路归并排序(选做) 3) 编制一个应用程序,它将随机产生的N个0~65535之间的整数插入到一个顺序表中,然后分别用上述排序算法对这个顺序表进行排序;记录并显示各种方法的运行时间; 4) 以N=500和N=5000运行这个应用程序,对算法运行的时间作比较和分析。 -Write a separate function to achieve the bubble sort, quick sort and simple
suanfa
- 本程序通过对10000个随机产生的整型数据,利用起泡排序算法和选择排序算法进行排序并比较其排序时间, 从而揭示这两个算法在时间性能上的差异。-The program by 10,000 randomly generated integer data, using bubble sort algorithm and selection sort algorithm to sort and compare sort time, which reveals the difference in time
suanfa2
- 文件: 排序比较.cpp —— 在产生随机数方面,使用编译系统给出的头文件 本程序通过对10000个随机产生的整型数据,利用起泡排序算法和选择排序算法进行排序并比较其排序时间, 从而揭示这两个算法时间性能上的差异。 -File comparison (2): Sort cpp- generate random numbers, use the build system header files given this program by 10,000 randomly generated
bstree_frame
- 通过对不同排序算法性能的比较,用c语言实现二叉树的排序算法-Comparison of the performance of different sorting algorithms, binary tree sort algorithm c language
paopao
- 冒泡排序冒泡法排序:将待排序的元素看作是竖着排列的"气泡",较小的元素比较轻,从而要往上浮。在冒泡排序算法中我们要对这个"气泡"序列处理若干遍。所谓一遍处理,就是自底向上检查一遍这个序列,并时刻注意两个相邻的元素的顺序是否正确。如果发现两个相邻元素的顺序不对,即"轻"的元素在下面,就交换它们的位置。显然,处理一遍之后,"最轻"的元素就浮到了最高位置;处理二遍之后,"次轻"的元素就浮到了次高位置。在作第二遍处理时,由于最高位置上的元素已是"最轻"元素,所以不必检查。一般地,第i遍处理时,不必检查第
Internal-sorting-
- 内部排序算法比较 掌握排序法的工作原理及应用过程,运用其工作原理上述实验题目中的内容。 -Internal sorting algorithm sorting method to grasp the working principle and the application process, the use of its working principle of the experimental subject content.
lab1
- 实验一:分治算法归并排序与快速排序平均时间之比较 (验证型实验) 实验目标: (1) 通过实验比较归并排序与快速排序算法在平均情况下哪一个更快。 (2) 加深对时间复杂度概念的理解。-Experiment one: divide and conquer algorithm merge sort and quick sort compare the average time (confirmatory test) test objectives: (1) Comparing a me
sort
- 用汇编语言来实现选择排序的算法,比较简单-Using assembly language to implement selection sort algorithm is relatively simple
paixu
- 利用随机函数产生N个随机整数(20000以上),对这些数进行多种方法进行排序。 (1)至少采用三种方法(希尔排序、快速排序、堆排序)实现上述问题求解; (2)统计每一种排序方法的性能(以上机运行程序所花费的时间为准进行对比),找出其中两种较快的方法; (3)统计每种算法所用的比较次数和交换次数,最后列表显示; -Using the random function random integers N (20,000 or more), the number of these var
124
- 比较简单的堆排序算法提供了一个很好的思路,简单易懂值得看哦-Heap sorting algorithm is relatively simple, straightforward worth Kane
Demo1
- 冒泡排序(Bubble Sort),是一种计算机科学领域的较简单的排序算法。 它重复地走访过要排序的数列,一次比较两个元素,如果他们的顺序错误就把他们交换过来。走访数列的工作是重复地进行直到没有再需要交换,也就是说该数列已经排序完成。 这个算法的名字由来是因为越小的元素会经由交换慢慢“浮”到数列的顶端,故名。 由于冒泡排序简洁的特点,它通常被用来对于计算机程序设计入门的学生介绍算法的概念。 -Bubble sort (Bubble Sort), is a field of com
the-string-order
- 字符串排序问题的算法,还是比较经典,书上的例子-String sorting problem algorithm, it is quite classic
quickSort
- 快速排序是由东尼·霍尔所发展的一种排序算法。在平均状况下,排序 n 个项目要Ο(n log n)次比较。在最坏状况下则需要Ο(n2)次比较,但这种状况并不常见。事实上,快速排序通常明显比其他Ο(n log n) 算法更快,因为它的内部循环(inner loop)可以在大部分的架构上很有效率地被实现出来。-Quicksort is developed by the East Ni Huoer a sorting algorithm. In the average case, sort n item
Sort-comparision
- 对八种排序算法进行了速度的比较,为了体现算法运行差距所以选用了较大的数据量-Sorting algorithm for eight kinds of speed comparison algorithm runs in order to reflect the gap so choose a larger amount of data
Comparison-of-time
- 各种排序算法以及各种排序算法时间效率的比较-Various sorting algorithms and time efficiency of various sorting algorithms comparison
Sort
- 总结了七种比较常见的排序算法,并用c语言代码实现。-Summarizes seven more common sorting algorithm, using the c language code.