4.2 Quicksort Flashcards
1
Q
Aim of quicksort
A
Divide and conquer algorithm that works in situ
2
Q
Is quickSort a stable algorithm
A
No
3
Q
What is the worst case runtime complexity of quickSort?
A
n(n-1)/2 = theta(n^2)
4
Q
Is quickSort in situ
A
Yes ( sort of, has to store m)
5
Q
Best case runtime complexity for quickSort?
A
theta(nLog(n))
6
Q
Average expected runtime complexity for quickSort?
A
theta(nLog(n))