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.
如果很幸运就在开头,那运行起来很快,如果是在末尾,那就一直得走到头,上次看到了,如果搜索空间很大,程序都会暂停一会,好的,那我希望你们。
The fact that you don't need a force for it to move forever at a given speed in a given direction, that's not obvious, because in daily life you don't see that.
对于物体不需要力的作用就能保持,确定的速度和方向持续运动这一事实,它并非显而易见,因为在日常生活中你看不到这种情况
应用推荐