by Daniel Miller

Optimizing Inefficiency: Human folly and the quest for the worst sorting algorithm

tLg23w5eYkx9kgU1ars22uRlRnIvEBO5-7xr
(Image source)

Lookup Bogosort, Slowsort, or Stooge sort on Wikipedia sometime and prepare to enter a deep rabbit hole which leads to the strange world of “perversely awful” sorting algorithms.

These three relatively tame algorithms, used primarily for illustrative purposes in computer science classes, are only the beginning. A strange…