ToolBunny LogoToolBunny
Back to Homepage
Algorithm Visualizer

Watch sorting algorithms in action.

About This Tool

The Algorithm Visualizer is an educational tool designed to help developers and students understand how different sorting algorithms work. By representing an array of numbers as bars of varying heights, this tool animates the sorting process, showing the step-by-step comparisons and swaps that each algorithm performs. It's a great way to see the efficiency and logic of various sorting methods in action.

How to Use
  1. Select a sorting algorithm from the dropdown menu (e.g., "Bubble Sort").
  2. Use the "Array Size" slider to determine how many items will be in the array to sort.
  3. Click "Generate New Array" to create a new random set of numbers to visualize.
  4. Use the "Speed" slider to control the animation speed.
  5. Click the "Sort" button to start the visualization. The bars will change color to indicate which elements are being compared or swapped.
  6. You can pause, resume, or reset the visualization at any time.