GATE CS 2015 · Set-2 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0186

An unordered list contains n distinct elements. The number of comparisons to find an element in this list that is neither maximum nor minimum is
  1. A
    \(\Theta (n log n)\)
  2. B
    \(\Theta (n)\)
  3. C
    \(\Theta (log n)\)
  4. D
    \(\Theta (1)\)

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

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/8113/gate2015-2-6

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