GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Let f(n) = (log₂ n)^(log₂ n), g(n) = n^(log₂ log₂ n) and h(n) = (log₂ log₂ n)!. Which of the following is correct? I. f(n) = Θ(g(n)). II. g(n) = O(n^k) for some constant k. III. h(n) = O(n).

  1. A. I only
  2. B. II and III only
  3. C. I, II and III
  4. D. I and III only

Correct answer: D. I and III only

With L = log₂n: log f = L·log L = log g, so f = g exactly (I true). Since log g = L log L grows faster than kL, g is not polynomially bounded (II false). log h = Θ(log L · log log L) = o(L), so h = o(n) (III true).

More Algorithms questions

Exams that ask this topic