Skip to main contentSkip to solution

Searching a dictionary or a telephone directory is an application of which search technique?

Solution

✅ Correct Option: 1

A dictionary or telephone directory is already sorted alphabetically. You open near the middle, see whether the word you want comes before or after that page, and discard the other half. Repeating this halves the search space each time, which is binary search, with time complexity O(log⁡n)O(\log n).


Option 2: linear search checks entries one by one from the start and does not need sorted data. Nobody searches a dictionary this way.

Option 3: hashing finds an item by computing an index from a key, which is not how we look up a word in a dictionary.

Option 4: bubble sort is a sorting technique, and "bubble search" is not a standard search method.

Keyboard Shortcuts

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