Week 3 Flashcards

1
Q

Selection Sort Complexity? C(n)

A

((n - 1)n)/2

subset of
O(n^2)

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

Bubble Sort Complexity? C(n)

A

((n - 1)n)/2

subset of
O(n^2)

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

Bubble sort Stable?

A

True

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

How can you make bubble sort more efficient?

A

Early termination

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