Find from the following condition that holds FALSE for binary search:
Find from the following condition that holds FALSE for binary search:
Solution
✅ Correct Option: 2
Binary search works only on a sorted list. It compares the key with the middle element, then discards half the list depending on whether the key is smaller or larger. This halving is valid only if the order is known, so requiring an unordered list is false.
Options 1, 3 and 4: these are true steps of binary search (sorted input, find the middle, compare the middle with the key).
Linear search is the one that works on unordered lists.
Related questions:
2025: 15 May Shift 2
2025: 27 May Shift 2
2026: 19 May Shift 1