KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Applications

What are the preconditions for Binary Search to be performed on a single dimensional array ?

Java Arrays

5 Likes

Answer

The preconditions for Binary Search to be performed on a single dimensional array are:

  1. The array should be sorted, either in ascending order or descending order.
  2. Lower bound, upper bound and the sort order of the array must be known.

Answered By

2 Likes


Related Questions