30. 以時間複雜度(time complexity)而言,下列哪一種演算法是排序列表(sorting a list)的 最佳解決方法? 稿
(A) Selection sort
(B) Bubble sort
(C) Insertion sort
(D) Merge sort

答案:登入後查看
統計: A(7), B(7), C(8), D(64), E(0) #2704348

詳解 (共 1 筆)

#5418452
(A) Selection sort   O(n2)
(B) Bubble sort       O(n)
(C) Insertion sort    O(n)
(D) Merge sort        O(nlogn)
 最佳為Merge sort
0
0