各種排序算法性能測試結(jié)果
摘要: 測試程序在我上一篇文章里有,大家可以參考。
排序10000數(shù)字的測試結(jié)果:
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 閱讀(2178) |
評論 (2) 編輯
簡單的測試各種排序算法的性能
摘要: 需要的頭文件可以在我以前的文章里找到,排序的測試結(jié)果是非常有趣的,最有趣的就是冒泡了,冒泡的結(jié)果告訴我們,你們把數(shù)據(jù)排好序了再讓我給你排吧!其余的大家自己看測試結(jié)果吧!(可能不是非常準(zhǔn)確,但是給大家一個參考,希望對大家有用,測試結(jié)果在下篇文章)
閱讀全文
posted @
2009-08-31 21:35 diwayou 閱讀(1769) |
評論 (4) 編輯
一個簡單的計(jì)算程序運(yùn)行時間的工具類
摘要: 一個簡單的計(jì)算程序運(yùn)行時間的工具類
閱讀全文
posted @
2009-08-31 21:28 diwayou 閱讀(574) |
評論 (0) 編輯
計(jì)算以t為根的子樹的結(jié)點(diǎn)個數(shù)
摘要: 計(jì)算以t為根的子樹的結(jié)點(diǎn)個數(shù)
閱讀全文
posted @
2009-08-28 08:27 diwayou 閱讀(562) |
評論 (0) 編輯