Page 1261 - AP Computer Science A, 7th edition
P. 1261

36. (A) Since the records are not sorted, the quickest way to find a given name is to start at the beginning of the list and sequentially search for that name. Choices C, D, and E will all work, but it’s inefficient to sort and then search because all sorting algorithms take longer than simply inspecting each element. Choice B won’t work: A binary search can only be used for a sorted list.


































































































   1259   1260   1261   1262   1263