Which of the following is a required condition for binary search algorithms?
A. the list must be sorted.
B. there should be the direct access to the middle element in any sub list.
C. The number of elements in the list should be finite
D. An item round can always be obtained as a middle element.
Answer A:
the list must be sorted
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++