Sorting algorithms - Properties Flashcards

1
Q

Insertion Sort - In-place?

A

Yes

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

Insertion Sort - Stable?

A

Yes

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

Selection Sort - In-place?

A

Yes

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

Selection Sort - Stable?

A

Yes

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

Merge Sort - In-place?

A

No - Uses additional array for merging

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

Merge Sort - Stable?

A

Yes

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

Quick Sort - In-place?

A

Yes

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

Quick Sort - Stable?

A

No - Uneven pivots can create divisions

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

Radix Sort - In-place?

A

No - Needs bucket queues

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

Radix Sort - Stable?

A

Yes

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