ICSE Class 10 Computer Applications Question 6 of 59

Arrays — Question 6

Back to all questions
6
Question

Question 6

Why does Binary Search need a sorted array to perform the search operation?

Answer

In Binary Search, the array is repeatedly divided into two halves and the element is searched in that half whose last element is greater than or equal to the element being searched. For this reason, Binary Search needs a sorted array to perform the search operation.