Selection Sort and Quick Select Flashcards

1
Q

When to use Selection Sort?

A

When data moves are high in cost and comparisons are low in costs.
When inputs n are small.

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

Finding the median element of an unsorted array can be solved in :

A

O(n log(n))

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

Quickselect Best Case Running Time

A

θ(n)

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

Quickselect Average Case Running Time

A

θ(n)

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

Quickselect Worst Case Running Time

A

θ(n^2)

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