-8

How can one give Big O, Big Theta or Big Omega for a function like

T(n) = n + 10*log n

Can someone please tell me how I can get the complexity for such a thing?

Sharlike
  • 1,789
  • 2
  • 19
  • 30
Sorin Cioban
  • 2,237
  • 6
  • 30
  • 36

1 Answers1

1

Drop all lower-order terms and constants and you get:

Θ(T(n)) = Θ(n + 10*log(n)) = Θ(n)

Since this is a tight bound (Θ) we also infer upper and lower bounds as O(n) and Ω(n).

Emil Vikström
  • 90,431
  • 16
  • 141
  • 175