Solution to a particular algorithm increases in time as the number of operations n increases. Suppose the … - Sikademy
Author Image

Archangel Macsika

a particular algorithm increases in time as the number of operations n increases. Suppose the time complexity of this algorithm is given by: f(n)=4n2+5n2*log(n) Show that f(n) is O(g(n)) for g(n) = n3

The Answer to the Question
is below this banner.

Can't find a solution anywhere?

NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?

Get the Answers Now!

You will get a detailed answer to your question or assignment in the shortest time possible.

Here's the Solution to this Question

f(n)=4n^2+5n^2log(n)\le4n^3+5n^3=9n^3=9g(n)

so f(n) is O(g(n))

Related Answers

Was this answer helpful?

Join our Community to stay in the know

Get updates for similar and other helpful Answers

Question ID: mtid-5-stid-8-sqid-782-qpid-667