Skip to content
NPH Interactive

Sorting algorithms

Same list, very different work

Starting order

Being compared Just moved Sorted

What happens when the list doubles?

Comparisons needed at your list size, then at twice that size, averaged over a few lists. The bar shows the multiple.

How the work grows

Comparisons for lists from 10 to 400 items. The dashed lines mark your list size (n) and double it (2n). The two algorithms in the race are drawn bold.