Gradient LabSign up free

Home / GATE DA / 2026 / Q.31

GATE DA 2026, Q.31: Worst-case comparisons for a missing key in 1000 items

Data structures and algorithmsBinary search comparisons1 markNumerical answer

The question

A sorted array A has 1000 distinct integers. Recursive binary search compares the middle element with y at each step (equal, less or greater). What is the maximum number of comparisons if y is NOT in A?

Checking your access…

Source: official GATE DA 2026 question paper and answer key (IIT Guwahati). The question is lightly reworded; every number and option is kept.