Consider a binary search algorithm to search an element in an array of ‘n’…

Consider a binary search algorithm to search an element in an array of ‘n’ numbers. Assume that this array spans over multiple pages with each page holding ‘p’ elements (n>p). Every memory access will generate a page fault until the search range is less than ‘p’. The minimum value of ‘p’ that reduces the page fault is

  1. A.

     log n

  2. B.

     1/n

  3. C.

    n

  4. D.

    1

Attempted by 167 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…