希爾排序(Windows+VC6.0環境編譯)
摘要: 希爾排序實際上是一種分組插入排序,它的執行時間依賴于增量序列,而且是不穩定的。其基本思想是:先取一個小于n的整數d1作為第一個增量,把文件的全部記錄分成d1個組。所有距離為dl的倍數的記錄放在同一個組中。先在各組內進行直接插入排序;然后,取第二個增量d2posted @ 2009-07-29 23:06 xmoss 閱讀(1622) | 評論 (0) 編輯
我之所以在這里,只是因為我想要在這里
posted @ 2009-07-29 23:06 xmoss 閱讀(1622) | 評論 (0) 編輯
posted @ 2009-07-27 23:13 xmoss 閱讀(471) | 評論 (0) 編輯
posted @ 2009-07-25 11:18 xmoss 閱讀(1551) | 評論 (0) 編輯
posted @ 2009-07-25 11:14 xmoss 閱讀(747) | 評論 (0) 編輯
posted @ 2009-07-20 23:51 xmoss 閱讀(552) | 評論 (0) 編輯
posted @ 2009-07-20 23:50 xmoss 閱讀(612) | 評論 (0) 編輯
posted @ 2009-07-20 23:48 xmoss 閱讀(456) | 評論 (0) 編輯
posted @ 2009-07-20 23:46 xmoss 閱讀(360) | 評論 (0) 編輯