Discover a wealth of knowledge and get your questions answered at IDNLearn.com. Find accurate and detailed answers to your questions from our experienced and dedicated community members.
Answer:
b. The names in the list should be in alphabetical order.
Explanation:
A binary search is an algorithm used for searching for an item in a list or array. The algorithm first sorts the data structure into order and then divides it into halves. If the searched item is less than the middle item in the list, then the algorithm searches for the target in the first half, else, in the second half. This reduces the time complexity of the search.