GATE CS 2010 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0116

Two alternative packages A and B are available for processing a database having \(10^{k}\) records. Package A requires 0.0001\(n^{2}\) time units and package B requires \(10n \log _{{10}} n\) time units to process n records. What is the smallest value of k for which package B will be preferred over A?
  1. A
    12
  2. B
    10
  3. C
    6
  4. D
    5

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/2185/gate2010-12

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com