The best case of a binary search is when, ______________ .
The best case of a binary search is when, ______________ .
Solution
✅ Correct Option: 3
Binary search first compares the key with the middle element. If the element is at the middle, it is found in the very first comparison, so the time taken is constant, .
Option 1: first position is the best case for linear search, not binary search. Binary search needs several halvings to reach an end element.
Options 2 and 4: an element at an end or absent from the list needs about comparisons, which is the worst case.
Related questions:
2025: 27 May Shift 2
2026: 18 May Shift 2
2025: 30 May Shift 2
2025: 13 May Shift 2