Which of the following search algorithm requires a sorted array ?
Show answerHide answer
Correct answer: (C) Binary search
Explanation
Binary search repeatedly halves the search range by comparing with the middle element, which only works if the array is sorted. Linear search works on unsorted data.