Question: An array of 1 0 , 0 0 0 Student objects, arr [ 0 ] , arr [ 1 ] , . . . ,
An array of Student objects, arr arr arr is to be searched for a particular Student whose ID number
only is known. In order to do a binary search, which of the following is a necessary precondition?
The array is sorted by ID number.
The array is in alphabetical order by name.
The array is sorted by ID number and alphabetically by name.
The ID number key is in the array.
No two students in the array have the same name.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
