Professional Documents
Culture Documents
7
Order of growth: visualization
5 .025
• Divide by 3
𝑛 , 3 + .001 + 2 ≤𝑐
𝑛 𝑛
• RHS of inequality will hold for n0=1 and c ≥ 6
19
Theorem
• For any two functions 𝑓(𝑛) and 𝑔 𝑛 , we have
𝑓 𝑛 = Θ(𝑔 𝑛 iff 𝑓 𝑛 = Ο(𝑔 𝑛 ) and 𝑓 𝑛 =
Ω(𝑔 𝑛 )