← Back to Projects

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 for every comparison and swap.

Python PyGame Algorithm Design Data Visualization

Overview

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. The visualizer supports ascending and descending sort directions and resets with a new random list on demand.

Algorithms

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

Controls

  • Space,Start sorting
  • R,Reset with new random list
  • A / D,Ascending / Descending
  • 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.
  • Ascending and descending sort directions.
  • Runs in the browser as an embedded interactive demo.
Live Demo Click the canvas to activate audio, then use the keyboard controls above.