318 views
3 votes
3 votes
Let $f(n),g(n)$ and $h(n)$ be the time complexities of three programs. Let $f(n) = O(g(n))$ and $h(n) = O(g(n)).$ Which of the following is necessarily FALSE?
  1. $f(n) = O(h(n))$
  2. $g(n) = O(f(n))$
  3. $h(n) = \Omega(g(n))$
  4. None of the above are necessarily FALSE

1 Answer

Best answer
6 votes
6 votes
If we use $\leq$ to denote asymptotically less than or equal to, we can write  
 $f(n) = O(g(n))$ and $h(n) = O(g(n))$ as $f \leq g$ and $h \leq g.$
 
 Now, the given choices can be written as
 A. $f \leq h.$ Possible
 
 B. $g \leq f.$ Possible when $f = g.$
 
 C. $h \geq g.$ Possible when $h = g.$
 
 So, none of the given options are necessarily FALSE.
 
 Correct Option: D
selected by
Answer:

Related questions

1 votes
1 votes
2 answers
1
4 votes
4 votes
1 answer
2
1 votes
1 votes
1 answer
3
3 votes
3 votes
1 answer
4
gatecse asked Aug 9, 2020
227 views
The cut vertices in the given graph areE and FA, C and DC, E and FB and C