NAT · 2 marks · Searching Sorting and Hashing
GATE CS 2017 CS-1 — Q48
Let be an array of numbers consisting of a sequence of 's followed by a sequence of 's. The problem is to find the smallest index such that is by probing the minimum number of locations in . The worst case number of probes performed by an optimal algorithm is ____________.