M3: Asymptotic Notation Flashcards

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

What is asymptotic notation used for?

A

To describe the growth rate of algorithms, particularly how they scale with input size n.

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

What does Big O Notation (O) represent?

A

Upper Bound

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

Define Big O Notation.

A

T(n)=O(f(n)) means the function T(n) grows at most as fast as f(n) for large n.

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

When is Big O Notation used?

A

When we want to provide an upper limit on the growth rate of an algorithm.

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

Give an example of Big O Notation.

A

5n^2+3n+2=O(n^2)

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

Define Little o Notation.

A

T(n)=o(f(n)) means the function T(n) grows strictly slower than f(n) as n approaches infinity.

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

When is Little o Notation used?

A

When the growth rate of T(n) is significantly smaller than f(n).

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

What does Theta Notation (θ) represent?

A

Tight Bound

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

Define Theta Notation.

A

T(n)=θ(f(n)) means T(n) grows as fast as f(n) for large n, providing both an upper and lower bound.

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

When is Theta Notation used?

A

When we want to describe the exact asymptotic behavior of an algorithm.

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

Give an example of Theta Notation.

A

3n^2+2n+1=θ(n^2)

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

What does Big Omega Notation (Ω) represent?

A

Lower Bound

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

Define Big Omega Notation.

A

T(n)= Ω(f(n)) means T(n) grows at least as fast as f(n) for large n.

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

When is Big Omega Notation used?

A

When we want to provide a minimum bound on the growth rate of an algorithm.

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

Give an example of Big Omega Notation.

A

2n^2+3n= Ω(n^2)

17
Q

What does Little omega Notation (ω) represent?

A

Strictly Lower Bound

18
Q

Define Little omega Notation.

A

T(n)=ω(f(n)) means T(n) grows strictly faster than f(n) as n approaches infinity.

19
Q

When is Little omega Notation used?

A

When the growth rate of T(n) is significantly larger than f(n).

20
Q

Give an example of Little omega Notation.

21
Q

What is the type and meaning of O(f(n))?

A

Type: Upper Bound; Meaning: T(n) grows at most as fast as f(n).

22
Q

What is the type and meaning of o(f(n))?

A

Type: Strictly Upper Bound; Meaning: T(n) grows strictly slower than f(n).

23
Q

What is the type and meaning of θ(f(n))?

A

Type: Tight Bound; Meaning: T(n) grows exactly as fast as f(n).

24
Q

What is the type and meaning of Ω(f(n))?

A

Type: Lower Bound; Meaning: T(n) grows at least as fast as f(n).

25
What is the type and meaning of ω(f(n))?
Type: Strictly Lower Bound; Meaning: T(n) grows strictly faster than f(n).
26
For the function T(n)=3n^2+2n+1, what is O(n^2)?
Growth is at most quadratic.
27
For the function T(n)=3n^2+2n+1, what is o(n^3)?
Growth is strictly slower than cubic.
28
For the function T(n)=3n^2+2n+1, what is θ(n^2)?
Growth is exactly quadratic.
29
For the function T(n)=3n^2+2n+1, what is Ω(n^2)?
Growth is at least quadratic.
30
For the function T(n)=3n^2+2n+1, what is ω(n)?
Growth is strictly faster than linear.