00:01
Here they ask us to, again, it's kind of a computer science program about the difference between a sequential search and a binary search of something that has a million elements, a million items in it.
00:18
And they're ordered, which is helpful.
00:21
Ordering them is actually, you know, another computational effort that you have to be concerned about.
00:26
But ordering them and then doing a binary search is usually faster.
00:30
Than just doing a search without ordering them.
00:36
So a sequential search, you basically just look at h1.
00:39
You say, okay, and what we're looking for is we're looking for some item.
00:50
And so what we need to do is we have a value, and we're looking for that value, where it occurs in the list.
00:58
So sequentially, we just compare with everything and everything until we say, hey that one equals that one so here's the item in our list so it takes it's going to take a million operations or a million steps by of checking now with binary um with a binary search you basically you divide the list in half and then look at the number you have and say which half is it in then you divide you know that list in half and say well which half is it in and then you divide that list in half and say which half is it in and so you can get basically you you you kind of you narrow the range very quickly of the values you're looking through to find the one you're looking for.
01:43
And so binary searches have operations that go either the end...