
http://jsdo.it/norahiko/oxIy/fullscreen
这个网页有各种排序方法的直观预览,包括:Bubble(冒泡)、Selection(选择)
、Shaker(摇晃冒泡)、Insertion(插入)、Shell(希尔)、Merge(归并)、Heap(堆积)、Quick(快排)、Bogo(猴子)。
有趣的是它还有 Bogo 排序, Bogo 排序是一个纯娱乐排序法:每次随机排列所有元素,直到某一次运气好所有元素都按顺序排列为止...,运气差的话有可能永远无法得到结果...

网友评论