Back to portfolio

Software Project

Sorting Algorithm Visualizer

An interactive Python visualizer that animates six classic sorting algorithms in real time, with color-coded bar highlights and pitch-mapped audio feedback.

Python Pygame Algorithm Design Data Visualization

Overview

This project visualizes how six different sorting algorithms process a randomized list of values. Each algorithm is stepped through one comparison at a time, with bars color-coded to show the elements currently being examined or swapped.

Audio feedback maps each bar's value to a pitch, so you can hear the sort progress as well as see it. A completion jingle plays when the list is fully sorted.

Algorithms

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

Controls

  • Space — Start sorting
  • R — Reset with a new random list
  • A / D — Ascending / Descending order
  • B — Bubble Sort
  • I — Insertion Sort
  • Q — Quick Sort
  • M — Merge Sort
  • H — Heap Sort

Highlights

  • Real-time step-by-step animation of each algorithm.
  • Pitch-mapped audio feedback tied to bar values.
  • Support for ascending and descending sort directions.
  • Runs directly inside the portfolio page as an embedded interactive demo.

Live Demo

Click the canvas to start, then use the listed keyboard controls. Audio requires a click to activate.