Sorting Algorithms Flashcards

1
Q

Best Case Big O runtime for Insertion sort

A

O(N)

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

Best Case Big O runtime for Quick sort

A

O(NlogN)

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

Best Case Big O runtime for Bubble sort

A

O(N)

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

Best Case Big O runtime for Selection sort

A

O(N^2)

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

Best Case Big O runtime for Merge sort

A

O(NlogN)

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

Average Case Big O runtime for Insertion sort

A

O(N^2)

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

Average Case Big O runtime for Quick sort

A

O(NlogN)

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

Average Case Big O runtime for Bubble sort

A

O(N^2)

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

Average Case Big O runtime for Selection sort

A

O(N^2)

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

Average Case Big O runtime for Merge sort

A

O(NlogN)

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

Worst Case Big O runtime for Insertion sort

A

O(N^2)

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

Worst Case Big O runtime for Quick sort

A

O(N^2)

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

Worst Case Big O runtime for Bubble sort

A

O(N^2)

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

Worst Case Big O runtime for Selection sort

A

O(N^2)

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

Worst Case Big O runtime for Merge sort

A

O(NlogN)

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

Recursive sorting algorithms

A

Quick and merge

17
Q

When to use linear search

A

Unsorted data