asymptotic analysis Flashcards
1
Q
asymptotic notation big oh
A
𝑂≈≤
0 <= f(n) <= cg(n)
asymptotic upper bound
2
Q
asymptotic notation big omega, Ω
A
Ω≈≥
cg(n) <= f(n)
asymptotic lower bound
3
Q
Asymptotic Notation – Theta, Θ
A
Θ≈=
0 c1g(n)<= f(n) <= c2g(n)
asymptotic tight bound
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
5
Q
asymptotic dominance rating
A
𝑛!≫2^𝑛≫𝑛^3≫𝑛^2≫𝑛 log𝑛≫𝑛≫log𝑛≫1
6
Q
logarithms
A
Saying 𝑏^𝑥=𝑦 is equivalent to saying that 𝑥=log_𝑏𝑦.
7
Q
binary search time complexity
A
log n