= Stooge sort
{wiki=Stooge_sort}
Stooge sort is a highly inefficient sorting algorithm that is primarily of theoretical interest or as a demonstration of poor algorithm design. It was introduced in the context of computer science education to illustrate the concept of sorting algorithms in a humorous or whimsical manner. \#\#\# Algorithm Description Stooge sort works based on a recursive approach. The algorithm sorts an array (or list) by following these steps: 1. If the first element is greater than the last element, swap them.
Back to article page