[編輯]. 平均時間複雜度由高到低為:. 氣泡排序O(n2); 選擇排序O(n2); 插入排序O(n2 ); 希爾排序O(n1.25); 堆排序O(n log n); 合併 ...
zh.wikipedia.org