Quick Sort Flashcards

1
Q

What is a pivot

A

A value where everything sorted is on the left for less than the pivot and greater is on the right of the pivot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Worsr case of Quicksort

A

Always pick the largest value of n as pivot = theta(n^2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly