All right? A linear search, I start at the beginning of the list and walk all the way through it. All right, if I'm lucky and it's at the low end, If it's not, if it's at the far end, I've got to go forever, and you saw that last time where this thing paused for a little while while it actually searched a list this big.
如果很幸运就在开头,那运行起来很快,如果是在末尾,那就一直得走到头,上次看到了,如果搜索空间很大,程序都会暂停一会,好的,那我希望你们。
In principle, we could play this with the whole class, but let's single out a particular row of the class so I'm going to come down here and I guess eventually, well I'll grab it in a minute.
理论上,我们可以全班一起做这个博弈,但我要选出特定的一行,我先走下来,我觉得,我很快就能挑到人
应用推荐