GATEverse
← GATE CSE 2017 Set 1

Q48

NAT2 marks

Let AA be an array of 3131 numbers consisting of a sequence of 00's followed by a sequence of 11's. The problem is to find the smallest index ii such that A[i]A\left [i \right ] is 11 by probing the minimum number of locations in AA. The worst case number of probes performed by an optimal algorithm is ____________.

Sign in to save attempts.

Loading…