Let f(n) = n and g(n) = n(1+sinn), where n is a positive integer. Which of the following statement is/are correct?
I. f(n) = O(g(n))
II. f(n) = Ω(g(n))
A
Only II
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Neither I nor II
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Both I and II
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Only I
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is B Neither I nor II When ever the value of 'sin n' value is -1, then g(n) = 1. {sin n value ranges from -1 to +1}. Hence f(n) = O(g(n)) is violated. Hence I is false. and when ever the value of 'sin n' is +1, then g(n) = n2
Hence f(n) = Ω(g(n)) is violated. Hence II is false.