0

I am trying to understand the recurrence relation of f(n) = n^cos n and g(n) = n. I am told that this relation has no asymptotic behavior related to Big O, little o, Big Omega, little omega, or Theta. Something about the oscillations of cos n? Can I receive a little more understanding on this behavior?

When I use L' Hospital rule on my calculator, I get undefined.

templatetypedef
  • 362,284
  • 104
  • 897
  • 1,065
user3339453
  • 57
  • 1
  • 7

1 Answers1

0

The function ncos n is O(n). Since -1 ≤ cos n ≤ 1, the function ncos n is always bounded between n-1 and n1, so in particular it's always upper-bounded by O(n). However, it's not Ω(n), because for any number n0 and any constant c, you can find an n > n0 where ncos n < cn. One way to do this is to look for choices of n where cos n is negative; the value of n for any ε > 0 will eventually be smaller than cn for any c.

Hope this helps!

templatetypedef
  • 362,284
  • 104
  • 897
  • 1,065