Runtimes Flashcards
1
Q
Quicksort
A
Best: nlogn
Worst: n^2
2
Q
Mergesort
A
Best: nlogn
Worst: nlogn
3
Q
Heapsort
A
Best: nlogn
Worst: nlogn
4
Q
Insertionsort
A
Best: n
Worst: n^2
5
Q
Selectionsort
A
Best: n^2
Worst: n^2