2 votes 2 votes Assume f(n) and g(n) are two functions such that f (n)=O(g(n)) which of the following always hold F(n) = O (f(n)2) F(n) = Ω (f(n)2) G(n) = O (f(n)2) G(n) = Ω (g(n)) Surya Dhanraj asked Oct 15, 2017 Surya Dhanraj 528 views answer comment Share Follow See all 9 Comments See all 9 9 Comments reply Rishabh Gupta 2 commented Oct 15, 2017 reply Follow Share Please recheck option D. since $g(n) = \Omega (g(n))$ is always true. 0 votes 0 votes sourav. commented Oct 15, 2017 reply Follow Share option $A,D$ will alawys hold , option $B,C$ will not always hold 0 votes 0 votes Surya Dhanraj commented Oct 16, 2017 reply Follow Share Answer was d....Can u give some examples 0 votes 0 votes Prashant. commented Oct 16, 2017 i edited by Prashant. Oct 16, 2017 reply Follow Share f(n) = O (f(n)2) Take f(n)= 1/n Here it is fail. f(n) = Ω (f(n)2) Take f(n) = n Here it is fail g(n) = O (f(n)2) Never hold true. it is saying complement of given question. g(n) = Ω (g(n)) True 1 votes 1 votes joshi_nitish commented Oct 16, 2017 reply Follow Share @Prashant g(n) = O(f(n)2) // though it is always not true but sometimes it may be true, take f(n)=n and g(n)=n2 clearly, f(n)=O(g(n)) and also g(n)=O(f(n)2).. secondaly, every function is both Big-Oh and Big-Omega of itslef, therefore g(n) = Ω (g(n)) is always true.. 0 votes 0 votes Prashant. commented Oct 16, 2017 reply Follow Share nitish one case fail mean fail. Ya g(n) = Ω (g(n)) is ture i was thinking it is g(n) = Ω (g(n)2) 1 votes 1 votes joshi_nitish commented Oct 16, 2017 reply Follow Share but you can not say that, g(n) = O (f(n)2) Never hold true. sometimes it may be true(depending on f(n) and g(n)) 0 votes 0 votes Prashant. commented Oct 16, 2017 reply Follow Share Question is following always hold . Nowhere i said never hold true. Counterexample are given to show not hold not for hold. Hope you get it 1 votes 1 votes Rishabh Gupta 2 commented Oct 16, 2017 reply Follow Share I think we have to consider all possible cases for something to always hold true. Therefore D should be correct. 0 votes 0 votes Please log in or register to add a comment.