Searching a dictionary or a telephone directory is an example of which searching technique?
Searching a dictionary or a telephone directory is an example of which searching technique?
Solution
A dictionary or telephone directory is sorted alphabetically. You open near the middle, see whether your word comes before or after that page, discard the other half, and repeat. This repeated halving of a sorted list is binary search.
Linear Search: this would mean reading every entry from the first page onwards, which nobody does.
Jump Search: it also works on sorted data, but it moves ahead in fixed-size blocks and then searches linearly inside one block, unlike the halving used in a directory.
Binary search needs sorted data and takes time.
Related questions:
2025: 14 May Shift 1
2026: 18 May Shift 2
2026: 23 May Shift 2
2026: 31 May Shift 1
2026: 11 May Shift 2