Master Mathematics.

Programming · Searching, Sorting & Complexity · Problem 2

Comparisons in binary search

Let denote the maximum number of comparisons made while searching for an entry in a sorted array of size using binary search. Which ONE of the following options is TRUE?

  1. (A)
  2. (B)
  3. (C)
  4. (D)

Source: GATE DA