The algorithm doesn't know that it's going to take this long to compute, it's just busy crunching away, trying to see if it can make it happen.
这很可能会发生,但是你知道的,算法本身并不知道,计算这个问题需要多长的时间,它就一直忙碌的算啊算。
It's just, yeah, taking advantage of people who need a quick sandwich when they're at lunch and
这是利用了人们午餐时间需要快速来一份三明治的这个市场需求,
As I said, what we want to do is, we want to count the number of basic steps it takes to compute a computation as a function of input size.
我刚才提到了,我们要建立,一个根据输入大小的方法来计算,一个计算过程需要的时间,建立这个方法需要几步呢?
Now of course, nutrition is the kind of subject that one could spend the whole semester on, could spend--do multiple classes on, because it's a very interesting, fascinating, and complex topic.
当然,要学习营养学这门课程,可能需要整个学期的时间,耗费很多课时,因为这个话题十分有趣,且吸引人,而又一言难尽
So that way you can have an idea if, oh, I do really understand this but I'm a little bit slow, maybe I need to practice this one type of problem a little bit longer so I can get up to speed so I'm going to be able to get through all this in terms of the exam time.
这样你就可以知道,假设,噢,我真的懂这个,但是我的速度有点慢,或许我需要在练习这个类型的题目上,多花一点时间,这样我就可以提高自己的速度,可以全部做完,在考试规定的时间内。
What I want to think about though, is, how much time does this take?
我想的是,这个程序需要多长的时间来运行?
应用推荐