asymptotic analysis Flashcards

1
Q

asymptotic notation big oh

A

𝑂≈≤
0 <= f(n) <= cg(n)
asymptotic upper bound

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

asymptotic notation big omega, Ω

A

Ω≈≥
cg(n) <= f(n)
asymptotic lower bound

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

Asymptotic Notation – Theta, Θ

A

Θ≈=
0 c1g(n)<= f(n) <= c2g(n)
asymptotic tight bound

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

selection sort pseudocode

A

Step 1 − Set MIN to location 0
Step 2 − Search the minimum element in the list
Step 3 − Swap with value at location MIN
Step 4 − Increment MIN to point to next element
Step 5 − Repeat until list is sorted

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

asymptotic dominance rating

A

𝑛!≫2^𝑛≫𝑛^3≫𝑛^2≫𝑛 log⁡𝑛≫𝑛≫log⁡𝑛≫1

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

logarithms

A

Saying 𝑏^𝑥=𝑦 is equivalent to saying that 𝑥=log_𝑏⁡𝑦.

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

binary search time complexity

A

log n

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