A Sorting Algorithm that passes over the list many times, compares each pair of adjacent items and swaps them if they are in the wrong order.
2
New cards
Selection Sort
An algorithm which passes over the list, finds the smallest item and moves it to the left, then repeats the exercise for the remaining list until it is all sorted.
3
New cards
Merge Sort
A sorting algorithm that sorts partial lists then merges them together.
4
New cards
Sorting Algorithm
A process commonly used to sort data
5
New cards
Search Algorithm
A structured process that finds a target in a set of data.
6
New cards
Linear Search
A search algorithm which looks at every element in turn until it finds the target, it is slow but works even on unsorted data.
7
New cards
Binary Search
A search algorithm that divides the search space in half each time until it finds the target, faster than linear but requires the array to be sorted.
8
New cards
Insertion Sort
Removes one element from unsorted data and puts it where it belongs in sorted list. Repeats until no input elements remain.