


















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















































1E- 1 1E+ 1E+ 1E+ 1E+ 1E+ 1E+ 1E+ 1E+ 1E+ 1E+ 1E+ 1E+ 1E+ 1E+ 1E+ 1E- 1 1E+1 1E+3 1E+5 1E+7 1E+ T ( n ) n Cubic Quadratic Linear
2
n^ 100n 10n n
7n-2 is O(n) need c > 0 and n 0 1 such that 7n-2 c•n for n n 0 this is true for c = 7 and n 0 = 1
3
2
3n 3
3 log n + log log n is O(log n) need c > 0 and n 0 1 such that 3 log n + log log n c•log n for n n 0 this is true for c = 4 and n 0 = 2
17
Big-Oh (^) f(n) is O(g(n)) if f(n) is asymptotically less than or equal to g(n) big-Omega (^) f(n) is (g(n)) if f(n) is asymptotically greater than or equal to g(n) big-Theta (^) f(n) is (g(n)) if f(n) is asymptotically equal to g(n) little-oh (^) f(n) is o(g(n)) if f(n) is asymptotically strictly less than g(n) little-omega (^) f(n) is (g(n)) if is asymptotically strictly greater than g(n)
f(n) is (g(n)) if, for any constant c > 0, there is an integer constant n 0 0 such that f(n) c•g(n) for n n 0 need 5n 0 2 c•n 0 given c, the n 0 that satisfies this is n 0 c/5 0 (^) 5n^2 is (n) f(n) is (g(n)) if there is a constant c > 0 and an integer constant n 0 1 such that f(n) c•g(n) for n n 0 let c = 1 and n 0 = 1 (^) 5n^2 is (n) f(n) is (g(n)) if there is a constant c > 0 and an integer constant n 0 1 such that f(n) c•g(n) for n n 0 let c = 5 and n 0 = 1 (^) 5n^2 is (n^2 )