Runtimes Flashcards

1
Q

Quicksort

A

Best: nlogn
Worst: n^2

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

Mergesort

A

Best: nlogn
Worst: nlogn

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

Heapsort

A

Best: nlogn
Worst: nlogn

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

Insertionsort

A

Best: n
Worst: n^2

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

Selectionsort

A

Best: n^2
Worst: n^2

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