码迷,mamicode.com
首页 > 其他好文 > 详细

Bucket Sort

时间:2015-02-03 06:59:23      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:

1. Setup an array of initially empty "buckets".

2. Scatter: Traverse the original array and extract each element into its bucket.

3. Sort each non-empty buckets (With each bucket Heapified).

4. Visit the buckets and put them back in order.

 

https://www.youtube.com/watch?v=aaKNtxHgaq4

Bucket Sort

标签:

原文地址:http://www.cnblogs.com/winscoder/p/4269061.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!