各種排序算法性能測試結果
摘要: 測試程序在我上一篇文章里有,大家可以參考。
排序10000數字的測試結果:
Bubble Sort Ascend: 0
Bubble Sort Descend: 0.12
Bubble Sort Normal: 0.328
Exchange Sort Ascend: 0.0
Exchange Sort Descend: 0.
Exchange Sort Normal: 0.3
Selection Sort Ascend: 0.
Selection Sort Descend: 0
Selection Sort Normal: 0.
Insertion Sort Ascend: 0
Insertion Sort Descend: 0
Insertion Sort Normal: 0.
Shell Sort Ascend: 0
Shell Sort Descend: 0
Shell Sort Normal: 0
MergeSort Ascend:
閱讀全文
posted @
2009-09-01 20:06 diwayou 閱讀(2154) |
評論 (2) 編輯
簡單的測試各種排序算法的性能
摘要: 需要的頭文件可以在我以前的文章里找到,排序的測試結果是非常有趣的,最有趣的就是冒泡了,冒泡的結果告訴我們,你們把數據排好序了再讓我給你排吧!其余的大家自己看測試結果吧!(可能不是非常準確,但是給大家一個參考,希望對大家有用,測試結果在下篇文章)
閱讀全文
posted @
2009-08-31 21:35 diwayou 閱讀(1745) |
評論 (4) 編輯