Algorithms Flashcards

1
Q

Selection Sort

Time Complexity

A

Average: O(n2)

Worst: O(n2)

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

Quicksort

Time Complexity

A

Average: O(n log n)

Worst: O(n2)

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

Insertion Sort

Space Complexity

A

O(1)

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

Bubble Sort

Space Complexity

A

O(1)

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

Insertion Sort

Time Complexity

A

Average: O(n2)

Worst: O(n2)

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

Radix Sort

Space Complexity

A

O(n+k)

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

Heapsort

Space Complexity

A

O(1)

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

Mergesort

Space Complexity

A

O(n)

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

Bubble Sort

Time Complexity

A

Average: O(n2)

Worst: O(n2)

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

Bucket Sort

Time Complexity

A

Average: O(n + k)

Worst: O(n2)

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

Mergesort

Time Complexity

A

Average: O(n log n)

Worst: O(n log n)

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

Radix Sort

Time Complexity

A

Average: O(nk)

Worst: O(nk)

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

Heapsort

Time Complexity

A

Average: O(n log n)

Worst: O(n log n)

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

Quicksort

Space Complexity

A

O(log n)

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

Bucket Sort

Space Complexity

A

O(n)

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

Selection Sort

Space Complexity

A

O(1)