// C++ program to sort an array using bucket sort #include #include #include using namespace std; // Function to sort arr[] of size n using bucket sort void bucketSort(float arr[], int n) { // 1) Create n empty buckets vector b[n]; // 2) Put array elements in different buckets for (int i=0; i