Gnome sort

类别:排序-交换排序
参看 维基百科的定义

 

Gnome sort is a sorting algorithm which is similar to insertion sort, except that moving an element to its proper place is accomplished by a series of swaps, as in bubble sort. The name comes from the supposed behavior of the Dutch garden gnome in sorting a line of flowerpots and is described on Dick Grune's Gnome sort page.

 


posted @ 2009-12-15 16:18  反正我信了  阅读(242)  评论(0)    收藏  举报