Skip to main contentSkip to solution

In _____________, comparisons that do not find the key still give us the idea about the location where the key may probably be found.

Solution

✅ Correct Option: 1

Binary search works on a sorted list. Each time the middle element is compared and is not the key, the result (key smaller or larger) shows which half the key can lie in, so the other half is discarded.


Option 2: in linear search, a failed comparison only rules out that one element and says nothing about where the key might be.

Option 3: hash search uses the hash function to compute the location directly, not the outcome of failed comparisons.

Keyboard Shortcuts

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