Work

Quicksort

algorithm · 1959

Algorithms Computer Science

Quicksort is a highly efficient, general-purpose sorting algorithm developed by Tony Hoare in 1959. It remains one of the most widely used sorting algorithms due to its excellent average-case performance and cache efficiency.

How It Works

Quicksort uses a divide-and-conquer strategy:

  1. Choose a “pivot” element from the array
  2. Partition: rearrange elements so smaller values go left of pivot, larger go right
  3. Recursively apply to the sub-arrays on each side

Performance Characteristics

Why It’s Fast in Practice

Despite O(n²) worst case, Quicksort often outperforms O(n log n) algorithms:

Influence

Quicksort influenced: