JT in Helsinki

Home About RSS

Nice Sort Algorithm Animation

  • data structures

A great page that illustrates how data sets from different starting points can be sorted using different sorting algorithms.

https://www.toptal.com/developers/sorting-algorithms

What’s especially interesting is just how different the various algorithms perform in different scenarios. Avoid Insertion, Bubble and Selection sorts for almost all scenarios. The exception to this rule is where the data is almost sorted and Bubble and Selection sorts are optimal.

Anyway, have a play around.

(sorry, I am unable to embed the animation)