Skip to main contentSkip to solution

The binary search makes use of the _________of elements in the list to quickly search a key.

Solution

✅ Correct Option: 4

Binary search works only on a sorted list. It compares the key with the middle element and, because the elements are in order, discards the half that cannot contain the key. This halves the search space at every step, giving O(log⁡n)O(\log n) time.


Option 2: binary search fails on unordered data, since comparing with the middle element tells nothing about which half holds the key.

Options 1 and 3: insertion and selection are sorting techniques, not a property of the list that binary search relies on.

Keyboard Shortcuts

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