All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · September 2022

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

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. f(n) = o(g(n)) and g(n) = o(h(n)) ⇒ f(n) = o(h(n))

Explanation

Each asymptotic relation is transitive, so o and o give o (C). A and B mix different relations and are false. D also follows, since ω implies Ω, but C is the direct transitivity property the question intends.

More Data Structures and Algorithms questions