Bucket Sort
Bucket Sort
Objective:
To implement the Bucket Sort algorithm in Java and test it on a sample array of floating-point
numbers to use the Divide and Conquer approach and sorting within individual "buckets" to
achieve overall sorting.
import java.util.*;
Expected Output
1. Original array: 0.79 0.13 0.16 0.64 0.39 0.2 0.89 0.53 0.71 0.42
2. Sorted array: 0.13 0.16 0.2 0.39 0.42 0.53 0.64 0.71 0.79 0.89