Computer Science: Paper 1 > Searching algorithms > Flashcards
How does a linear search work
Used to find an item in a list.
It checks the first item, if it is not a match it moves onto the next until it is a match
How does a binary search work
Needs an ordered list.
It continuously divides the list in half until the item is found.