wiz-icon
MyQuestionIcon
MyQuestionIcon
9
You visited us 9 times! Enjoying our articles? Unlock Full Access!
Question

Let f(n),g(n) and h(n) be functions defined for positive integers such that f(n) = O(g(n)), (g(n)) O(f(n)), g(n) = O(h(n)), and h(n) = O(g(n)). Which one of the following statement is FALSE?

A
h(n) O(f(n))
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
f(n) h(n) O(g(n)h(n))
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
f(n) + g(n) = O(h)(n) + h(n)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
f(n) = O(h)(n)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B f(n) h(n) O(g(n)h(n))
We can verify as:
f g BUT g f. Therefore f < g
Also g = h as g = O(h) = O(g).
Therefore f < g and g = h
(a) f(n) + g(n) = O(h)(n) + h(n) is true.
f + g = f + h < h + h
(b) f(n) = O(h)(n) is true.
f < h
(c) h(n) O(f(n)) is true.
h f is correct.
(d) f(n) h(n) O(g(n)h(n)) is false.
f .h < g . h implies fh = O(gh)

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Continuity of a Function
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon