Computing Theory > 4.3.4 Searching algorithms > Flashcards
What time complexity is:
linear search
binary search
O(n)
O(log n)
What is the maximum number of items accessed when searching for a particular item from a list using a binary search?
2^(n) > length of the list
n is the max number of items