Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

GATE | GATE-CS-2015 (Set 3) | Question 65

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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))  

(A) Only I
(B) Only II
(C) Both I and II
(D) Neither I nor II


Answer: (D)

Explanation: The value of sine function varies from -1 to 1.
For sin = -1 or any other negative value, I becomes false.
For sin = 1 or any other positive value, II becomes false.


Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 17 Oct, 2018
Like Article
Save Article
Similar Reads