Quick Sort is an efficient, divide-and-conquer sorting algorithm that selects a 'pivot' element and partitions the array around the pivot.
Adjust the array size and animation speed to see how Quick Sort performs on different data sets.
Algorithm | Best Case | Average Case | Worst Case | Space | Stable |
---|---|---|---|---|---|
Bubble Sort | O(n) | O(n²) | O(n²) | O(1) | Yes |
Quick Sort | O(n log n) | O(n log n) | O(n²) | O(log n) | No |
Merge Sort | O(n log n) | O(n log n) | O(n log n) | O(n) | Yes |
Insertion Sort | O(n) | O(n²) | O(n²) | O(1) | Yes |
Selection Sort | O(n²) | O(n²) | O(n²) | O(1) | No |
Heap Sort | O(n log n) | O(n log n) | O(n log n) | O(1) | No |