Sorting Algorithm Visualizer

2021-10-22
1 min read

Last week I had a lot of fun visualizing various pathfinding algorithms so I decided to follow that up with a visualizer for another classic type of algorithm in CS, sorting algorithms.

You can find the code for the final version here. Below, I will showcase what algorithms I covered and what the visualizations looked like, in this order:

  • Bubble Sort
  • Merge Sort
  • Quick Sort
  • Heap Sort

In addition, the user can choose between 10 and 100 items to sort.

Bubble Sort

Merge Sort

Quick Sort

Heap Sort