Let f(n) = n and g(n) = n(1 + sin n), where n is a positive integer. Which of the following statements is/are correct? I. f(n) = O(g(n)) II. f(n) = Ω(g(n))

Let f(n) = n and g(n) = n(1 + sin n), where n is a positive integer. Which of the following statements is/are correct? I. f(n) = O(g(n)) II. f(n) = Ω(g(n)) Correct Answer Neither I nor II

Concept:

Sin function value ranges from -1 to + 1. (-1, 0, 1)

Explanation:

Case 1: when sin(n) is -1,

g(n) = n(1 - 1) = n0 = 1

so, for this case f(n) > g(n) i.e. g(n) = O (f(n))

So, statement 1 is incorrect.

Case 2: when sin(n) is +1,

g(n) = n(1 + 1) = n2

so, for this case f(n) < g(n) i.e. f(n) = O(g(n))

but for this, second statement i.e. f(n) = Ω(g(n)) is incorrect.

Both statements are not true for all values of sin(n).

Hence, option 4 is correct answer.

Related Questions

Find the ∫∫x3 y3 sin⁡(x)sin⁡(y) dxdy. ]) b) (-x3 Cos(x) – 3x2 Sin(x) – 6xCos(x)-6Sin(x))(-y3 Cos(y) + 3]) c) (-x3 Cos(x) + 3x2 Sin(x) + 6xCos(x)-6Sin(x))(-y3 Cos(y) + 3y2 Sin(y) + 6yCos(y) – 6Sin(y)) d) (–x3 Cos(x) + 6xCos(x) – 6Sin(x))(-y3 Cos(y))