2
Contributors
1
Reply
4
Views
5 Years
Discussion Span
Last Post by Ancient Dragon
1
  1. The array must be in sorted order, you can either enter the numbers that way or call some sort of sort function after input.

  2. Binary search assumes unique values, not duplicate values. The array can contain duplicates but binary search algorithm will find only one of them.

  3. Once one of the values are found the program needs to check other locations immediately before and after the location that was found. Sequential seareches are useful here because binary search can't do that.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.