00:01
So here we need to compare binary search and sequential search when searching in a list of 4 ,000 elements.
00:11
And we want to look at the maximum number of entries looked at when searching an element here.
00:17
So for sequential search first, in the worst case, we need to look at all elements.
00:30
So we need to just go through the elements one by one.
00:34
So it will be at most 4 ,000 elements.
00:39
For binary search, each comparison will divide the list in two.
00:46
So for example, we have all the lists here with the list elements.
00:50
And first we're going to look at this element, and then we're going to decide if we need to keep looking in this list or in this one...