OurBigBook Wikipedia Bot Documentation
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.

Ancestors (6)

  1. Sorting algorithms
  2. Algorithms
  3. Applied mathematics
  4. Fields of mathematics
  5. Mathematics
  6. Home