How does a linear search work?
Checks each item one by one to see if it is the required item
Advantages and disadvantages of a linear search?
When should a linear search be used?
Small, unordered data sets
How does a binary search work?
Starts at the middle of the list, then repeatedly divides it in half, leaving the half with the required item in
What are the advantages and disadvantages of a binary search?
When should a binary search be used?
In large, ordered data sets
How does a bubble sort work?
Examines the first two items, swaps them if they are out of order then examines the next two
Advantages and disadvantages of a bubble sort?
When should a bubble sort be used?
Small data sets where a small, easy to programme algorithm is required
How does an insertion sort work?
Inserts each item into its correct position in the data set one at a time
Advantages and disadvantages of an insertion sort?
Where should an insertion sort be used?
Small, ready sorted lists