Searching and SortingΒΆ

Computers store vast amounts of data. One of the strengths of computers is their ability to find things quickly. This ability is called searching. For the AP CS A exam you will need to know both sequential search and binary search.

If binary search requires the values in an array or list to be sorted, how can you do that? There are many sorting algorithms. The three that you need to know for the AP CS A exam are:

There are many videos on YouTube that show these sorts. Here is a folk dance for selection sort.

Here is folk dance for insertion sort.

Here is folk dance for merge sort.