摘要
论述了运用分治法的思想实现快速排序算法.首先阐述分治法的基本思想,其次应用分治与递归策略用Java语言实现快速排序算法,然后再用实例说明此算法的工作过程,最后分析了最好情况、最坏情况和平均情况下的时间复杂性,得出快速排序算法在渐进意义上最优.
The basic thought of the divide-and-conquer and recursion theory was expounded.The realization of quicksort algorithm by using the language of Java was illustrated.The time complexity in the best,the worst and the average circumstance was analysed.The result shows that quicksort algorithm is superior in asymptotic meaning.
出处
《株洲师范高等专科学校学报》
2004年第2期36-39,共4页
Journal of Zhuzhou Teachers College
关键词
分治与递归策略
快速排序算法
时间复杂性
divide-and-conquer and recursion theory
quicksort algorithm
time complexity