-2

I am trying to order these different big theta values from largest to smallest:

Θ(n2)
Θ(2n log n)
Θ(n log n2)
Θ(2n2)
Θ(log n)
Θ(n log 2n)
Θ(k2)
Θ(22n)
Θ(n3)
Θ(n)
Θ(2n)
Θ(n1.5)
Θ(√n)
Θ(2n2)

and some of the values are equivalent. Particularly, I want to know if a constant term makes one big-theta value larger than an identical big-theta term without the constant term (for example, are these two values equivalent: Θ(22n) & Θ(n)?).

Alex Shesterov
  • 26,085
  • 12
  • 82
  • 103
adub3
  • 141
  • 3
  • 9
  • I think your could answer the question yourself if you thought about what does the notation represent. – SJuan76 Aug 05 '13 at 08:04
  • Well, the main question I had was how to deal with values of the same order but different constant multipliers. I feel they are identical, but I wasn't sure how to order: Θ(n log n2) and Θ(n log 2n). The former is identical to log n3 and the latter is the same as log n2, but I wasn't sure if the former is considered larger than the latter? – adub3 Aug 05 '13 at 08:14

2 Answers2

1

Θ(log n)

Θ(√n) = Θ(n1/2)

Θ(n) = Θ(2n) = Θ(22n)

Θ(n log n) = Θ(2n log n) = Θ(n log n2) = Θ(n log 2n)

Θ(n1.5)

Θ(n2) = Θ(2n2)

Θ(n3)


Considering your comment:

n log 2n = n (log 2 + log n) = n log 2 + n log n

log 2 is a constant non-zero value, so:

Θ(n log 2n) = Θ(n log 2 + n log n) = Θ(n + n log n) = Θ(n log n)

See the sum and multiplication by a constant properties of the big-{O,Theta, Omega}-notations.

Community
  • 1
  • 1
Alex Shesterov
  • 26,085
  • 12
  • 82
  • 103
0

If try replacing n with a huge value then you can figure it out yourself without even asking it to the forum:

o(1)
O(log log n)
O(log n)
O(n^c)
O(n)
O(n log n)
O(n^2)
O(c^n)
O(n!)
sadaf2605
  • 7,332
  • 8
  • 60
  • 103