4.2 Quicksort Flashcards

1
Q

Aim of quicksort

A

Divide and conquer algorithm that works in situ

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

Is quickSort a stable algorithm

A

No

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

What is the worst case runtime complexity of quickSort?

A

n(n-1)/2 = theta(n^2)

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

Is quickSort in situ

A

Yes ( sort of, has to store m)

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

Best case runtime complexity for quickSort?

A

theta(nLog(n))

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

Average expected runtime complexity for quickSort?

A

theta(nLog(n))

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