1.11 桶排序 #111
1.11 桶排序
#111
Replies: 2 comments 1 reply
-
博主我看你这儿的实现是通过定义桶容量bucket_size来处理得到桶数量bucket_count。那如果定义桶的区间范围来得到桶数量可以吗?比如桶数量 = 向上取整(最大值 - 最小值 / 区间范围),因为一般来说数据不一定是均匀的,很可能会存在某个区间数据元素较多的情况,可能这个桶还得进行容量扩容。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
桶排序和前文的快速排序等算法很多都支持平行处理,不如平行对所有桶同时进行排序。作者可以对支持平行计算的算法都提一句,这也算是个算法优势。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
1.11 桶排序
https://algo.itcharge.cn/01_array/01_11_array_bucket_sort/
Beta Was this translation helpful? Give feedback.
All reactions