Search Algorithms Flashcards
1
Q
Which search algorithm requires a sorted list?
A
Binary Search
2
Q
What is the Big O for linear search?
A
O(n)
3
Q
What data sets is linear search suitable for?
A
Small data sets.
4
Q
What is the Big O for binary search?
A
O (nlogn)