Skip to main contentSkip to solution

Which of the following search algorithm uses divide and conquer technique?

Solution

✅ Correct Option: 2

Binary search divides the sorted list in half at each step by comparing the key with the middle element. It then discards one half and repeats the search on the other. Splitting the problem into smaller subproblems like this is the divide and conquer technique, and it gives a time complexity of O(log⁡n)O(\log n).


Option 1: linear search checks elements one by one, with no division of the problem.

Option 3: hashing computes the position of a key directly from a hash function, so it does not split the data.

Keyboard Shortcuts

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