GATE CS 2008 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0192

The minimum number of comparisons required to determine if an integer appears more than n/2 times in a sorted array of n integers is
  1. A
    \(\Theta\)(n)
  2. B
    \(\Theta\)(logn)
  3. C
    \(\Theta\)(log*n)
  4. D
    \(\Theta\)(1)

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/452/gate2008-40

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