Algorithms Complexity Flashcards

1
Q

Quicksort Average

A

O(N logN)

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

Mergesort Average

A

O(N logN)

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

Insertion Sort Average

A

O(N^2)

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

Insertion Sort Best

A

O(N)

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

Quicksort Best

A

O(N logN)

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

Mergesort Best

A

O(N logN)

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

Rabin Karp Substring Search Best Case

A

O(M+N)

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

KMP Substring Search

A

O(M+N)

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

Rabing Karp Substring Search Worst Case

A

O(MN)

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

Breadth First Search Time Complexity

A

O(V+E)

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

Breadth First Search Space Complexity

A

O(V)

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

Depth First Search Time Complexity

A

O(V+E)

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

Depth First Search Space Complexity

A

O(V)

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

Bubble Sort

A

O(N^2)

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

Insertion Sort

A

O(N^2)

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

Selection Sort

A

O(N^2)

17
Q

Heap Sort

A

O(N*log(N))