8.2: Elementary Searches

Three simple searches are applicable when records are stored in arrays: (1) linear search, (2) binary search, and (3) interpolation search. You probably have all used these methods in everyday activities. Understanding their limitations and how they work will help you see the need for the more complex structures and algorithms of later sections.

8.2.1 Linear Search

8.2.2 Saving Time: A Neat Trick

8.2.3 Binary Search

8.2.4 Timing the Binary Search

8.2.5 Interpolation Search

8.2.6 Efficiency Comparisons