CS2400 M4 Flashcards

1
Q

What are algorithm constraints?

A

The time the algorithm takes to execute and the space (memory) it needs.

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

Analysis of Algorithms

A

Measuring the complexity of algorithms

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

Upper Bound

A

Big O notation,
T(n) = O(f(n)) if constants c > 0 and n0 >= 0 such that for all n >= n0, T(n) <= c * f(n).

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

Lower Bound

A

Big Ω notation,
T(n) = Ω(f(n)) if constants c > 0 and n0 >= 0 such that for all n >= n0, T(n) >= c * f(n).

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

Tight Bounds

A

Big Θ notation,
T(n) = Θ(f(n)) if constants T(n) = O(f(n)) = Ω(f(n)).

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

Unbounded

A

Does not have an upper bound, lower bound, or both.

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

Worst, average, and best case

A

Measuring execution time depending on the nature of data itself, NOT sample size.

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