Distribution Sorts

Radix & Bucket Sort

Visualize distribution-based sorting algorithms that avoid direct comparisons between all elements.

Main Array
Buckets

📜 Execution Log

Click Start to begin the distribution.

🏗️ Strategy

Radix Sort: Sorts numbers digit by digit starting from the least significant digit (LSD). It uses 10 buckets (0-9).

💡 Complexity

Radix: O(nk) where k is digits.

Bucket: O(n + k) on average.

Riverside