I'm having a few problems working out the time complexity using Big-O notation.
This is the equation:
88n^2 logn + 81 + 3n^3 + 12n
I can figure it out I'm guessing its something like:
O(n^2 logn)
or O(n^3)
Thanks in advance.
I'm having a few problems working out the time complexity using Big-O notation.
This is the equation:
88n^2 logn + 81 + 3n^3 + 12n
I can figure it out I'm guessing its something like:
O(n^2 logn)
or O(n^3)
Thanks in advance.
As you know n
grow faster than logn
.
You also know we can multiply same strength factor to a complexity equation.
So we could simply say n^3
grow faster than n^2 logn
.
=> O(n^3)
Since growth rate of n greater than the growth rate of log(n),
we can say n^3 grow faster than n^2 log(n).
So 88n^2 logn + 81 + 3n^3 + 12n => O(n^3)