文件名称:sort
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.37kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
三)排序
(1)插入排序——已知序列{17,18,60,40,7,32,73,65,85}
建立一个顺序表,采用插入排序算法的实现升序排序,打印排序结果;
(2)交换排序——已知序列{503,87,512,61,908,170,897,275,652,462}
(1)建立一个顺序表,采用冒泡排序法实现升序排序,并打印每趟排序结果;
(2)建立一个顺序表,采用快速排序法实现升序排序,并打印每趟排序结果,与(1)做比较;
(3)选择排序——已知序列{42,13,24,91,23,16,05,88}
利用简单选择排序,实现上述序列的降序排序;-C) sort (1) insertion sort- known sequences to create a sequence {17,18,60,40,7,32,73,65,85} table, using insertion sort algorithm implementation in ascending order, print, sort the results (2) Exchange sort- known sequence {503,87,512,61,908,170,897,275,652,462} (1) to establish a sequence tables, using bubble sort method to achieve ascending order, Sort and print the results of each trip (2) to establish a sequence tables, realized by quick sort in ascending order, sort and print the results of each trip, and (1) to compare (3) Select the sort- known sequence {42 , 13,24,91,23,16,05,88} using a simple selection sort, to achieve the above sequence of descending order
(1)插入排序——已知序列{17,18,60,40,7,32,73,65,85}
建立一个顺序表,采用插入排序算法的实现升序排序,打印排序结果;
(2)交换排序——已知序列{503,87,512,61,908,170,897,275,652,462}
(1)建立一个顺序表,采用冒泡排序法实现升序排序,并打印每趟排序结果;
(2)建立一个顺序表,采用快速排序法实现升序排序,并打印每趟排序结果,与(1)做比较;
(3)选择排序——已知序列{42,13,24,91,23,16,05,88}
利用简单选择排序,实现上述序列的降序排序;-C) sort (1) insertion sort- known sequences to create a sequence {17,18,60,40,7,32,73,65,85} table, using insertion sort algorithm implementation in ascending order, print, sort the results (2) Exchange sort- known sequence {503,87,512,61,908,170,897,275,652,462} (1) to establish a sequence tables, using bubble sort method to achieve ascending order, Sort and print the results of each trip (2) to establish a sequence tables, realized by quick sort in ascending order, sort and print the results of each trip, and (1) to compare (3) Select the sort- known sequence {42 , 13,24,91,23,16,05,88} using a simple selection sort, to achieve the above sequence of descending order
(系统自动生成,下载前可以参看下载内容)
下载文件列表
3.cpp
3+.cpp
3+.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.