Complexities Flashcards

1
Q

Serial Map?

A
Work = O(n)
Span = O(n)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Parallel Map?

A
Work = O(n)
Span = O(1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Serial Reduction?

A
Work = O(n)
Span = O(n)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Parallel Reduction?

A
Work = O(n)
Span = O(log n)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Serial Scan?

A
Work = O(n)
Span = O(n)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Span Efficient Hillis-Steele Scan?

A
Work = O(nlogn)
Span = O(log n)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Work Efficient Blelloch Scan?

A
Work = O(n)
Span = O(log n)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Parallel Gather/Scatter?

A

Same as map
Work = O(n)
Span = O(1)

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

Serial Bubblesort?

A

Work = O(n2)

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

Linear Search?

A
Work = O(n)
Span = O(n)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Odd-Even Sort?

A
Work = O(n2)
Span = O(n)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Bitonic Sort?

A
Work = O(nlog2n)
Span = O(log2n)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Binary Search?

A

O(logn)

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

P-ary Search?

A

Span = O(logpn)

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