Start learning →

In binary search, if the middle element is less than the key, search the:

ASteady half
BSingle half
CShorter half
DSecond half
Answer & Solution
Correct answer: D. Second half
1. Everything before the middle is smaller still. 2. The key can only lie after the middle. 3. If the middle element is less than the key, the key must be in the second half. 4. So the answer is the second half. _Source: syllabus Computer Science, Ch 5 'Sorting' and Ch 6 'Searching'_
Practise this question with Quill — IGNOU MCA →

Keep practising Sorting and Searching

Browse all Sorting and Searching questions for IGNOU MCA, or explore more Computer Science topics.

Start a Sorting and Searching lesson →
Related questions