The minimum number of comparisons required to determine if an integer appears…

PYQ GATE 2008

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.

    Θ(n)

  2. B.

    Θ(log n)

  3. C.

    Θ(log* n)

  4. D.

    Θ(1)

Attempted by 448 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…