searching Flashcards
1
Q
linear search
A
search through a list of elements by checking each element one at a time (sequentially)
time complexity linear -
2
Q
binary search
A
dividing the list each time by 2 until we have found the item we are searching for
o(logn)
has to be in order