摘要
排序是计算机科学中的基本操作,快速排序、堆排序和归并排序是三种常用的效率较高的排序算法.为便于理解和掌握,并为具体问题选择适合的算法提供借鉴和依据,本文详细阐述了每种算法的基本思想和实现步骤,给出了每种算法的时间复杂度的推导过程,分析了每种算法的稳定性和适用情况.
Sorting is the basic operation in computer science.Three efficient and commonly used sorting algorithms include quick sorting,heap sorting and merge sorting.In order to facilitate understanding and mastery,and to provide a reference and basis for selecting the appropriate sorting algorithm for practical problems,this paper elaborates the basic ideas and implementation steps of each algorithm in detail,gives the derivation process of each algorithm time complexity,and analyzes the stability and application of each algorithm.
作者
秦玉平
冷强奎
马靖善
QIN Yuping;LENG Qiangkui;MA Jingshan(College of Engineering,Bohai University,Jinzhou 121013,China;College of Information Science and Technology,Bohai University,Jinzhou 121013,China)
出处
《渤海大学学报(自然科学版)》
CAS
2019年第1期75-80,共6页
Journal of Bohai University:Natural Science Edition
基金
国家自然科学基金项目(No:61602056)
辽宁省自然科学基金项目(No:20180550525)
渤海大学教学改革研究项目(BDJG2016YA01)
关键词
快速排序
堆排序
归并排序
时间复杂度
quick sorting
heap sorting
merge sorting
time complexity