But I also know that we've got a long way to go to fully restore our economy and recover from what's been the longest and deepest downturn since the Great Depression."
VOA: special.2009.10.30
Right? If that was the case in that code, then my complexity is no longer log, because I need linear access for each time I've got to go to the list, and it's going to Lisp be much worse than that.
这里的复杂度不再是对数的了,因为每次在列表中,查找需要线性访问,可能还要糟糕,其实,有些编程语言,如。
I've got to go to the first place, figure out how far over to skip, go to the next place, figure out how far over to skip, eventually I'll be out the door.
需要多长时间?,这太离谱了,因为我需要先去第一个元素,计算出下一个元素。
We've got 32 years to go and I won't back up easily."
VOA: standard.2009.12.10
Sometimes it was spiritualized. In this sense, this is why I put this quote up on the board from On the Road: "We've got to go someplace, find something."
有时候这是精神化的,从这个意义上去理解,所以我把《在路上》里的这句话写在黑板上:,我们必须去到某个地方,发现某些东西“
So let's listen to We've got two more cuts to do and then i'll let you go.
让我们再听,两个片段,然后下课
Conversely, if you get an answer and it doesn't seem to make sense, then you've got to go back and ask, am I violating some of the assumptions, and here you will find the assumption that the particle had that acceleration a is true as long it's freely falling under gravity but not when you hit the ground.
反过来说,如果你得到一个结果,发现似乎是错的,那么你就应该回过头来问问自己,我是不是违反某些前提了,这个模型中,你就发现,只要质点在重力作用下自由下落,质点具有加速度a的前提是正确的,但是落地后就不成立了
The worst case here is, the things not in the list in which case I've got to go all the way through the list to get to the end.
目标数不在数组里,这意味着我必须遍历数组中所有的元素,好,说完了这些。
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.
如果很幸运就在开头,那运行起来很快,如果是在末尾,那就一直得走到头,上次看到了,如果搜索空间很大,程序都会暂停一会,好的,那我希望你们。
b times. So I've got to go 3 b steps. All right I've got to go through the loop b times I've got three steps each time, and then when I pop out of the loop, I've got two more steps. All right I've got the initiation of answer and the return of it.
好,我一共执行了b次循环,每次循环内部进行了三次基本操作,当跳出循环后还有两个基本操作,因此这个初始的答案就是,2+3b次基本操作,来完成这个循环。
OK. Having done this now, I can simply go ahead and run this, and in fact if I go up here to run, you'll see I've got both an option to check the module, though in this case I'm just going to run it.
好,讲完了这些,我可以去执行程序了,实际上如果我在这里运行,你们会看到我同样得到了,一个可以同时检查模块的选项,虽然在这个例子中我就是直接去运行程序了。
Good question. Actually, I've got to get rid of this candy, so since it was a good question, here you go. Nice catch. Almost. Sorry. OK. No, I'm not. I'm sorry. I thought you had it, and then I've got the wrong glasses on and I realized you didn't, so I will, ah come back to that later.
问得好,事实上我不得不给你这个糖果,因为你问的很好,接好,不错,抱歉,对不起,我以为你接到了,我带错了眼镜而且,我意识到你没带错,所以我会待会再讲。
应用推荐