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
- A.
log n
- B.
1/n
- C.
n
- D.
1
Attempted by 167 students.
Sign up free to check your answer
Sign up freeLoading lesson…

