如果我们搜索火山和新西兰呢?
我们搜索又搜索,直到觉得继续下去也枉然时才罢手。
We searched until we knew it would be pointless to continue.
“只要我们搜索就能发现它们。” 海德曼博士说。
“Wherever we search for them, we find them, ” Dr. Heidmann said.
They submit their data about their people, their users to us, so Baidu users can easily find information related to that.
校内网将用户数据提交给我们,这样,百度的用户就能够轻松,搜索到相关信息。
Yeah, it's kind of simple, but it gives me an ordered list of these things, And let's run it. OK.
让我们来运行运行吧,好,我会先去搜索一些数组中没有的元素,让我来试试,看-1在不在这个数组里。
If it was an unordered list, we were basically stuck with linear search. Got to walk through the whole list to see if the thing is there.
如果是一个未排序的列表,基本上我们就只能使用线性搜索了,通过遍历整个列表来查看。
应用推荐