259 views
1 votes
1 votes
Let $f(n),g(n)$ and $h(n)$ be the time complexities of three programs and let $f(n) = o(g(n))$ and $h(n) = \omega(g(n)).$ Which of the following is VALID?
  1. $f(n) = \Theta(h(n))$
  2. $g(n) = O(f(n))$
  3. $h(n) = \Omega(g(n))$
  4. $g(n) = \Omega(h(n))$

2 Answers

2 votes
2 votes
If we use $<$ to denote asymptotically less than, and similarly for the other asymptotic notations, we can write  
 $f(n) = o(g(n))$ and $h(n) = \omega(g(n))$ as $f < g$ and $h > g \implies f < g < h$
 
 Now, the given choices can be written as
 
 A. $f = h.$ Invalid
 
 B. $g \leq f.$ Invalid
 
 C. $h \geq g.$ Valid
 
 D. $g \geq h.$ Invalid
 
 So, correct option: C
Answer:

Related questions

3 votes
3 votes
1 answer
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