0

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.

shauryachats
  • 9,975
  • 4
  • 35
  • 48
ed-wright
  • 73
  • 1
  • 12

2 Answers2

1

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)

Emadpres
  • 3,466
  • 2
  • 29
  • 44
0

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)

Deadlock
  • 4,211
  • 1
  • 20
  • 25