Q. What additional requirement is placed on an array, so that binary search may be used to locate an entry? (Solved)

1. the array elements must form a heap

2. the array must have at least 2 entries.

3. the array must be sorted.

4. the array\s size must be a power of two.

  • c. the array must be sorted.
Subscribe Now

Get All Updates & News