摘要
讨论了运用分治策略的思想实现快速排序、归并排序和堆排序三种排序算法,从分、解、合三方面剖析排序,从而得出分割方式是影响排序效率的关键,并将分治法扩展应用到更多排序方法中.
The article discusses how to use the Divide-and-Conquer Method to carry out the three sorting algorithms of quick sort and merge sort and heapsort. By analysing the sorting in terms of division, separation and combination, it concludes that the dividing and conquering method is the key to the efficiency of sorting algorithms. Moreover,it extends the usage of this method to the other sorting algorithms.
出处
《太原师范学院学报(自然科学版)》
2008年第3期29-32,共4页
Journal of Taiyuan Normal University:Natural Science Edition
关键词
分治策略
快速排序
归并排序
堆排序
Divide-and-Conquer method
quick sort
merge sort
heapsort