The binary search algorithm in the text makes recursive calls on subarrays of the array passed to the algorithm. The range passed to the search function is first to last. The search algorithm makes recursive calls on the left or right subarray that target will be in, if the target is present. What are the left and right ends of the right subarray?
a) Last , mid – 1
b) last , mid + 1
c) mid – 1, last
d) mid + 1, last
e) last, mid
d) mid + 1, last
Computer Science & Information Technology
You might also like to view...
To find a synonym for a word, ________ the word and point to Synonyms on the shortcut menu
A) right-click B) left-click C) select D) double-click
Computer Science & Information Technology
An area to position fields that you want to display as rows in the PivotTable reports is called the ________
A) ROWS area B) VALUES area C) COLUMNS area D) FILTER area
Computer Science & Information Technology