Assume that f(n) and g(n) are asymptotically positive. Which of the following is correct?

  1. f(n) = O(g(n)) and g(n) = O(h(n)) ⇒ f(n) = ω(h(n))
  2. f(n) = Ω(g(n)) and g(n) = Ω(h(n)) ⇒ f(n) = O(h(n))
  3. f(n) = o(g(n)) and g(n) = o(h(n)) ⇒ f(n) = o(h(n))
  4. f(n) = ω(g(n)) and g(n) = ω(h(n)) ⇒ f(n) = Ω(h(n))

Answer (Detailed Solution Below)

Option 3 : f(n) = o(g(n)) and g(n) = o(h(n)) ⇒ f(n) = o(h(n))

Detailed Solution

Download Solution PDF

Correct answer is Option 3Explanation:

Omega Notation, Ω

The notation Ω(n) is the formal way to express the lower bound of an algorithm's running time.

It measures the best case time complexity or the best amount of time an algorithm can possibly take to complete.

For example, for a function f(n)

Ω(f(n)) ≥ { g(n) : there exists c > 0 and n0 such that g(n) ≤ c.f(n) for all n > n0. }

According to Transitive Property

 f(n) = o(g(n)) and g(n) = o(h(n)) ⇒ f(n) = o(h(n)) is Correct

More Asymptotic Notations Questions

More Asymptotic Worst Case Time and Time Complexity Questions

Hot Links: teen patti - 3patti cards game downloadable content teen patti flush teen patti master golden india teen patti classic