+1 vote
in Data Structures & Algorithms II by (110k points)
Exponential search performs better than binary search when the element being searched is present near the starting point of the array.

(a) True

(b) False

The question was posed to me by my college director while I was bunking the class.

This intriguing question comes from Searching topic in portion Searching of Data Structures & Algorithms II

1 Answer

+1 vote
by (614k points)
selected by
Best answer
Correct answer is (a) True

To explain: Exponential search first finds the range where binary search needs to be applied. So when the element is present near the starting point of the array then exponential search performs better than standard binary search.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.