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 -

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly