Which type of search would be best for the following array?

Beloit
Green Bay
Madison
Milwaukee
Oshkosh
jimih4
Asked Feb 12, 2011
If the list is already in order as the above list is, a binary search would be better than sequential. It will also allow the list to grow as long as the order is maintained as new items are added.
Rob
Answered Feb 12, 2011

TIP: If it's not your answer to this question, please click "Leave a Comment" button under the question to communicate with the question owner.

Categories