English

What is true for binary search comparisons? (a) Comparisons that do not find the key give us an idea about the location of the key.

Advertisements
Advertisements

Question

What is true for binary search comparisons?

Options

  • Comparisons that do not find the key give us an idea about the location of the key. 

  • Comparisons reveal whether the key exists before or after the current middle position.

  • Information provided by the comparisons can be used to narrow down or reduce searching efforts.

  • All of the above

MCQ
Advertisements

Solution

All of the above.

shaalaa.com
Binary Search in Python
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×