A-Level Computing OCR > Search Algorithms > Flashcards
Which search algorithm requires a sorted list?
Binary Search
What is the Big O for linear search?
O(n)
What data sets is linear search suitable for?
Small data sets.
What is the Big O for binary search?
O (nlogn)