Searching a dictionary or a telephone directory or finding the element with minimum value or maximum value in a sorted list, etc. are the applications of _______________.
Searching a dictionary or a telephone directory or finding the element with minimum value or maximum value in a sorted list, etc. are the applications of _______________.
Solution
Binary search works on sorted data. It compares the target with the middle element and discards half of the list each time, so it takes time.
A dictionary or telephone directory is sorted alphabetically, so you open near the middle and keep halving the range. In a sorted list, the minimum and maximum sit at the ends, so they are found by using the sorted order.
Linear Search: it checks elements one by one and does not use the sorted order. It takes time.
Hashing: it finds an item directly from a hash of its key and does not depend on sorted order.
Bubble Search: no such search algorithm exists. Bubble Sort is a sorting algorithm, so the name is a trap.
Related questions:
2025: 27 May Shift 2
2026: 26 May Shift 1
2026: 18 May Shift 2