Skip to main contentSkip to solution

Searching a dictionary or a telephone directory is an example of which searching technique?

Solution

✅ Correct Option: 2

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 O(log⁡n)O(\log n) time.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question