COSC 130: Data Structures

Sorting Algorithms

 QuickSort Demonstration Instructions:

QuickSort
QuickSort is a divide-and-conquer sorting algorithm that works by:

Steps of QuickSort


Partition Function The partition function divides the array into two parts and returns the index of the pivot in its correct position.

Complexity Analysis