0

the time complexity of an algorithm is given by n^2/log(n). what is that in big O notation? Just n^2 or we keep the log?

DAVID
  • 21
  • 2

1 Answers1

0

As n^2 / (n^2/log(n)) goes to inifinity when n grows, so, n^2/log(n) = o(n^2) (little-oh). Therefore, n^2/log(n) is not equivalent to n^2.

OmG
  • 18,337
  • 10
  • 57
  • 90