Skip to content

Instantly share code, notes, and snippets.

View andrewringler's full-sized avatar

Andrew Ringler andrewringler

View GitHub Profile
andrewringler /
Created October 1, 2012 04:00
Sorting Algorithms

Animated visualizations of Quicksort, Comb sort, Gnome sort, Selection sort, Bubble sort and Bogosort.

The Viz

  • Array values are represented by line height and color.
  • Current location in a traversal is represented by a pink bar above the array item.
  • Item swaps are signified by a bar of the same color as the array item above that item.