文件名称:Internal-sort-of-comparison-method
介绍说明--下载内容均来自于网络,请自行研究使用
1)对以下9种内部排序算法进行比较:起泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、堆排序、折半插入排序、二路插入排序、归并排序。
(2)待排序表的表长不小于 100;其中的数据要用伪随机数产生器产生;至少要用 5 组不同的输入数据做比较;比较的指标为关键字参加的比较次数和关键字的移动次数(关键字交换为 3 次移动)。
(3)针对不同的输入表长做试验,观测检查两个指标相对表长的变换情况。
(4)随机产生的数据保存到文件 input.txt 中,将各个算法的关键字比较次数 和关键字移动次数的比较分析结果,显示输出到屏幕,并保存到 Out.txt 文件中。-1) for the following 9 kinds of internal sorting algorithm to compare: bubble sort, direct insertion sort, simple selection sort, quick sort, Hill sort, heap sort, insertion sort, two way insertion sort, merge sort.
(2 ) to be sorted table table length not less than 100 wherein the data using pseudo-random number generator to generate at least 5 different sets of input data for comparison comparative indicators for the keyword in comparison of the number and mobile number of keywords (keyword exchanged for the 3 mobile).
(3 ) in response to different input table long experiment, observation and check two indicators are relatively long change the situation.
(4 ) random data is saved to a file in input.txt, each algorithm for comparing the number of keywords and keyword mobile number comparison and analysis results, the display output to the screen, and saved to a Out.txt file.
(2)待排序表的表长不小于 100;其中的数据要用伪随机数产生器产生;至少要用 5 组不同的输入数据做比较;比较的指标为关键字参加的比较次数和关键字的移动次数(关键字交换为 3 次移动)。
(3)针对不同的输入表长做试验,观测检查两个指标相对表长的变换情况。
(4)随机产生的数据保存到文件 input.txt 中,将各个算法的关键字比较次数 和关键字移动次数的比较分析结果,显示输出到屏幕,并保存到 Out.txt 文件中。-1) for the following 9 kinds of internal sorting algorithm to compare: bubble sort, direct insertion sort, simple selection sort, quick sort, Hill sort, heap sort, insertion sort, two way insertion sort, merge sort.
(2 ) to be sorted table table length not less than 100 wherein the data using pseudo-random number generator to generate at least 5 different sets of input data for comparison comparative indicators for the keyword in comparison of the number and mobile number of keywords (keyword exchanged for the 3 mobile).
(3 ) in response to different input table long experiment, observation and check two indicators are relatively long change the situation.
(4 ) random data is saved to a file in input.txt, each algorithm for comparing the number of keywords and keyword mobile number comparison and analysis results, the display output to the screen, and saved to a Out.txt file.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
内部排序方法比较.txt