138) Which of the following statements is used in the binary search algorithm to halve the array ?
Answer is:
middle Sub = (start Sub + stop Sub)/2;
Related Data structures and Algorithms MCQ with Answers
Answer is:
start Sub = middle Sub + 1;
Answer is:
If the search argument is greater than the value located in the middle of the binary, the binary search continues in the upper half of the array
Answer is: