Consider the function f(n) = 35n3+ 2n3log(n) − 2n2log(n2) which represents the complexity of some algorithm.
(a) Find a tight big-O bound of the form g(n) = np for the given function f with some natural number p. What are the constants C and k from the big-O definition?
(b) Find a tight big-Ω bound of the form g(n) = np for the given function f with some natural number p. What are the constants C and k from the big- Ω definition?
(c) Can we conclude that f is big−Θ (np) for some natural number p?
a)
if
So:
for
b)
if
for
c)
if
for
So, we can conclude that for
Comments