So we see that I've doubled the size of the vector but I've much more than doubled the number of calls.
所以我们看到我,把向量的大小翻倍了,但是我调用的次数,不仅仅是翻倍了。
But I've been there enough that I get a, I have a sense of what it's like there.
但我去那儿的次数够多了,所以我很清楚那儿是什么样子的。
And she was able to tell me that they can divine from the hits on their site why people are coming to that site.
她告诉我,他们可以从网站的点击次数,推断出人们为什么访问他们的网站。
Actually it's not 40, I think these are, 75 alright. So the answer is 75 and the number of calls is 1.7 million.
实际上不是4,我觉得,好了,所以答案是5,调用次数是1百70万次。
But undeniably we know most of our -- we got most of our knowledge about babies from studies of their looking times.
但不可否认的是,我们所拥有的绝大多数关于婴儿的知识,都来自于对婴儿注视次数的研究
Do the following a bunch of times, but a finite number of times which might be useful.
按照下面重复若干次,有限次数就足够了,这很有用。
I just took the tests, um, several times, not too many times, but
我参加了几次考试,次数也不是太多,不过
In fact, I think Baidu answers more queries in China today than Google does in the U.S.
说实话,中国人使用百度搜索的次数,比在美国人使用谷歌搜索的次数还要多。
we learned that the average number of romantic relationships for people to take positive psychology in 4 years is between zero and one.
我们了解到上积极心理学课的人,在4年里恋爱次数的平均数在0到1之间。
The number of copies you get depends on how many times you do the cycling.
具体的产物数量取决于你进行循环的次数
In the end, I don't want any powers of t.
最后,t的次数为0
So I'm going to check to see if- really can't read that thing, let me do it this way-- right, I'm going to increase the number of compares, and I'm going to check to say, is the thing I'm looking for at the i'th spot in the list?
让我们这样做吧-好-,我会去增加比较次数的计数器,然后去看看在第i处的元素,是不是我要找的呢?,这里s的意思就是,给定数组的?
And I have up here--This is a picture of Elizabeth Spelke, who is a developmental psychologist who's developed the most research on looking at babies' looking times and what you could learn from them.
这里是一张伊丽莎白·斯皮克的照片,她是一个发展心理学家,在婴儿注视次数,及其意义方面研究颇多
Pardon? 17 million. Computers are fast, fortunately. Well, that's a lot of calls.
幸运的是电脑很快,好了,调用次数真是多。
And in fact, if we count up all of these silly comparisons I was making verbally I bet I'm gonna be making fewer in the end than I was with bubble or with selection.
事实上,如果将所有的,比较次数加起来,我敢打赌,比起冒泡和选择排序,它最终的比较次数是相对较少的。
The learner protests as he's being shocked more and more but the experimenter continues to request obedience.
随着被电击次数增多,学习者抗议了,但实验者继续要求他服从。
So when I do the analysis, I want to think about what am I doing here, am I capturing all the pieces of it? Here, the two variables that matter are what's the length of the list, and how many times I'm going to search it?
这里,要关注的,两个变量是列表,的长度以及我要搜索的次数,这种情况下,这个算法赢了?
But whereas the other one was obviously forever, this allows you to specify a finite number of times that you wanna do something.
但又不同于“无限循环“,你可以根据需要,为它指定循环次数。
If you take it away from Yale, some of the authority goes away, and similarly, the extent to which there are fatal shocks goes down.
如果你不告诉电击者这个实验是耶鲁的,给电击者少一点权威感,得出的效果是相似的,那就是致命电击次数会减少。
It goes off after it's been hit a certain number of times.
在你玩了一定次数后,会有硬币吐出来。
So unlike Scratch where you pretty much had to say "repeat" ten times or whatever, or forever where it's just "forever" with for loops, -- can you actually specify a finite number of iterations -- and as I learned 15 years ago, finite is important.
所以不像Scratch,你大致上需要用,“repeat“10次或更多,或者需要不断地使用当它,是死循环时,你们能够指定出一个有限的迭代次数-,像我15年前学的,有穷的是重要的。
So finite number of times can you specify with a condition, as we'll see in a moment.
所以你们可以指定一个条件来表示有穷的次数,我们等下将看到。
Selection sort too really reduces to a total number of comparisons because I'm again comparing the current smallest to the next thing I see, the next thing, so really a lot of these sorting algorithms boil down to comparisons and the numbers that you actually have to make.
选择排序也可归纳为总数的比较,因为要将当前最小者与下一个进行比较,接着再下一个,可见,很多排序算法都可归结为比较,以及需要比较的次数。
As the teacher is with the learner next to him, it goes down.
如果电击者与被电击者一起,站在被电者击旁边,致命电击次数减少。
It's the number of times you pull it down.
重要的是你拉下拉杆的次数。
Now this happens to be what we would call a linear process, because the number of times I go around the loop is directly related to the size of the argument. If I double 2 the argument, I'm going to double the number of times I go around the loop. If I increase it by five, 5 I'm going to increase by five the number of times I go around the loop.
这恰好是我们会成为,线性复杂度程序的一个例子,因为我要执行循环的次数是,和输入的参数的大小直接相关的,如果我将这个参数乘以,那么我就要将进行循环的次数也乘以2了,如果我把参数加上,那么循环的次数也要加上5了。
应用推荐