Sorting Algorithm Runtime Flashcards

1
Q

Selection Sort

A

O(N^2)

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

Insertion Sort

A

O(N^2)

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

Shell Sort

A

O(N^1.5)

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

Quick Sort

A

Average case and best case: O(NlogN) Fast Worst case: O(N^2)

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

Merge Sort

A

Average, best, and worst case: O(NlogN) Fast

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

Heap Sort

A

Best case: O(N) Worst and average case: O(NlogN) Fast

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

Radix Sort

A

Average, worst, and best case: O(N) Fast

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