TEC-Bridge Logo

Bucket Sort Visualizer

STEM Interactive Visual Learning Program at TEC-Bridge AI

Setup Array

Sort Controls

Array Visualization

Current Array:
Buckets (0.0-0.1, 0.1-0.2, ...):

Algorithm Steps

How to Use

  1. Setup: Enter decimal numbers 0-1 separated by commas or click "Random"
  2. Sort: Click "Start Sort" to begin the bucket sort process
  3. Step Through: Click "Next Step" to see each step of the algorithm execution
  4. Run Through: Click "Run Through" to automatically execute all steps in sequence
  5. Observe: Watch elements being distributed and sorted in buckets
  6. Reset: Click "Reset" to start over with a new sort

Colors: Orange = Distributing, Different Colors = Buckets, Yellow = Sorting, Green = Sorted

Bucket Sort Concept

Bucket Sort is a distribution sorting algorithm that distributes elements into buckets, sorts each bucket, then concatenates results.

How it works:

  • Create empty buckets for value ranges
  • Distribute elements into appropriate buckets
  • Sort each individual bucket (using insertion sort)
  • Concatenate sorted buckets to get final result
  • Works best with uniformly distributed data

Time Complexity: O(n + k) average, O(n²) worst case

Bucket Sort Code Implementation

© 2025 TEC-Bridge AI. All rights reserved. | Contact: contact@tec-bridge.ai | https://tec-bridge.ai

Rate This Learning Tool

Clarity of Visualization:
Interactivity:
Educational Value:
Performance:
Intuitivity & Usability:
Overall Evaluation: