The binary search algorithm in the text makes recursive 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 left subarray?
a. first, mid – 1
b. first, mid + 1
c. mid – 1, left
d. mid + 1, left
e. left, mid
a)
Computer Science & Information Technology
You might also like to view...
If you want to use a SmartArt graphic to visually represent information that is not sequential, use the List SmartArt graphic type
Indicate whether the statement is true or false
Computer Science & Information Technology
The XPS file format was created by ________
Fill in the blank(s) with correct word
Computer Science & Information Technology