Sorts + Searches + Big-O Flashcards
1
Q
Big-O of Selection Sort (best case)
A
O(n^2)
2
Q
Big-O of Selection Sort (average case)
A
O(n^2)
3
Q
Big-O of Selection Sort (worst case)
A
O(n^2)
4
Q
Big-O of Insertion Sort (best case)
A
O(n)
5
Q
Big-O of Insertion Sort (average case)
A
O(n^2)
6
Q
Big-O of Insertion Sort (worst case)
A
O(n^2)
7
Q
Big-O of Merge Sort (best case)
A
O(nlogn)
8
Q
Big-O of Merge Sort (average case)
A
O(nlogn)
9
Q
Big-O of Merge Sort (worst case)
A
O(nlogn)
10
Q
Big-O of Quick Sort (best case)
A
O(nlogn)
11
Q
Big-O of Quick Sort (average case)
A
O(nlogn)
12
Q
Big-O of Quick Sort (worst case)
A
O(n^2)
13
Q
Big-O of Linear Search (best case)
A
O(1)
14
Q
Big-O of Linear Search (average case)
A
O(n)
15
Q
Big-O of Linear Search (worst case)
A
O(n)