排序稳定性stable
stable排序
O(n^2): InsertionSort,BubbleSort
O(nlgn): MergeSort
O(n+k): CountSort, RadixSort,BucketSort
non-stable排序
O(n^2): SelectionSort
O(nlgn): QuickSort, HeapSort
ShellSort
个人学习笔记,欢迎拍砖!---by hellogiser
Author: hellogiser
Warning: 本文版权归作者和博客园共有,欢迎转载,但请保留此段声明,且在文章页面明显位置给出原文连接。Thanks!

浙公网安备 33010602011771号