Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2025 Set 2
Questions

Q31

MCQ2 marks, −0.67Algorithms

An array AA of length nn with distinct elements is said to be bitonic if there is an index 1≤i≤n1 \leq i \leq n such that A[1..i]A[1 . . i] is sorted in the non-decreasing order and A[i+1…n]A[i+1 \ldots n] is sorted in the non-increasing order. Which ONE of the following represents the best possible asymptotic bound for the worst-case number of comparisons by an algorithm that searches for an element in a bitonic array AA ?

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.