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.

Here is another video that talks about bubble sort, insertion sort, and quick sort. Of these only insertion sort is on the exam.

Next Section - Sequential Search