GATE Computer ScienceHardGATE CS (PYQ pattern)
Let f₁ = n^(1/log₂n), f₂ = (log₂ n)³, f₃ = (log₂ n)^(log₂ log₂ n), f₄ = 2^√(log₂ n), f₅ = n^0.001. Which lists them in increasing order of asymptotic growth?
- A. f₁, f₂, f₄, f₃, f₅
- B. f₁, f₂, f₃, f₄, f₅
- C. f₂, f₁, f₃, f₄, f₅
- D. f₁, f₂, f₃, f₅, f₄
Correct answer: B. f₁, f₂, f₃, f₄, f₅
With L = log₂n, f₁ = 2 is constant. Taking logs: log f₂ = 3 log L, log f₃ = (log L)², log f₄ = √L, log f₅ = 0.001 L. For large L these increase in the order 1 < 3 log L < (log L)² < √L < 0.001 L, even though f₅ stays below f₄ until L is about 10⁶.
More Algorithms questions
- In the median-of-medians selection algorithm the input is split into groups of g elements (g odd), giving the standard recurrence T(n) ≤…
- n keys, each an n-bit unsigned integer, are sorted by LSD radix sort that treats each key as digits of r = ⌊log₂ n⌋ bits (radix 2^r) and…
- Two sorted lists of 5 and 7 distinct keys are to be merged into one sorted list by comparisons. What does the decision-tree…
- Cocktail-shaker sort is applied to [5, 1, 4, 2, 8, 0, 3]: sweeps alternate left-to-right and right-to-left over the unsorted part (each…
- In randomised quicksort on n = 10 distinct keys (pivot chosen uniformly, so two keys with ranks i < j are compared with probability 2/(j −…
- Multiplying two n × n matrices classically costs n³ multiplications and n²(n − 1) additions. One level of Strassen (7 products of n/2 ×…