BANK SEBI Grade A Phase 1 & Phase 2 Mock Test 2024 Algorithms Searching, Sorting and Hashing Searching
If the Binary search algorithm determines that the search arguments is in the lower half of the array, which of the following statements will set the appropriate variable to the appropriate value.
1
start sub = middle sub - 1
2
start sub = middle sub + 1
3
stop sub = middle sub - 1
4
stop sub = middle sub + 1
5
None of above