Questions tagged [bucket-sort]

Bucket sort is mainly useful when input is uniformly distributed over a range. Use this tag for implementations of the Bucket sort algorithm.

Filter by
Sorted by
Tagged with
1 vote
2 answers

bucketsort with multiprocessing

I want to compare the procedure time for each number of process. I made 5000000 numbers in input.txt in random order. I read it and do bucket sorting with ...
seokkyu's user avatar
  • 11
3 votes
1 answer

Sorts and data structures: a bucket sort

I am currently going through and implementing basic algorithms and data structures as I feel I didn't learn enough about this during my Data Structures and Algorithms unit. So far I've done the ...
Vehicular IT's user avatar
3 votes
0 answers

C# code for minimizing the sum of an array by dividing it's elements (repetition allowed) by 2 for k times

The assumption is that k is quite large as compared to no. of elements in the array and division by 2 returns ceiling of the result. Request for your review and suggestions for further improvements ...
Deepak Mishra's user avatar
6 votes
3 answers

LeetCode: Top K Frequent Elements C# Given a non-empty array of integers, return the k most frequent elements. Example 1: ...
Gilad's user avatar
  • 5,321