Users Also Read
MCQ's Search Engine
Electrical Engineering
Mechanical Engineering
Civil Engineering
Automobile Engineering
Chemical Engineering
Computer Engineering
Electronics Engineering
Medical Science Engg
If the binary search algorithm determines that the search argument is in the lower half of the array, which of the following statements will, set the appropriate variable to the appropriate value? | |
A. | stop Sub = middle Sub - 1; [Wrong Answer] |
B. | stop Sub = middle Sub + 1. [Wrong Answer] |
C. | start Sub = middle Sub - 1; [Wrong Answer] |
D. | start Sub = middle Sub + 1; [Correct Answer] |