Quick Sort Algorithm

Quick Sort Algorithm Visually

A divide-and-conquer algorithm that picks an element as a pivot and partitions the array around the pivot, recursively sorting sub-arrays.

Sorting Algorithm Unstable Algorithm Time Complexity O(n log n) Space Complexity O(log n) Intermediate Level
Quick Sort Controls
Swaps: 0
Comparisons: 0
Steps: 0

Algorithm Status

Ready
Progress 0%

Array Visualization

About Quick Sort

Quick sort is a highly efficient divide-and-conquer sorting algorithm that works by selecting a 'pivot' element from the array and partitioning the other elements into two sub-arrays according to whether they are less than or greater than the pivot. The sub-arrays are then sorted recursively. It's one of the most popular sorting algorithms due to its excellent average-case performance.

Time Complexity
O(n log n)
Average Case
Space Complexity
O(log n)
Auxiliary

Execution Log

Operation Log
Quick sort visualization initialized
Enter array values and click Initialize to begin