clipped from:
commons.wikimedia.org
An animation of the
quicksort
algorithm sorting an array of randomized values
The red bars mark the pivot element; at the start of the animation, the element farthest to the right hand side is chosen as the pivot. Created with: Ruby 1.8.4, RMagick