I'm perfectly capable of understanding the past in and for itself without any contribution of my own, without, in short, any preconceptions."
我十分能够理解过去,而没有自己的贡献,简单点说就是没有任何的先入之见“
So, I know this is a simple example and I can see everyone pretty much got it right, and probably those that didn't actually made some sort of clicker error is my guess.
分别是质子和电子,我知道这是个很简单的问题,你们大部分人都做对了,我猜那些没做对的大概是因为点错了。
Thing I've got a little procedure that could do that, but you know the simplest thing I could do is to say well, gee, wait a minute, why don't I just check to see if these are the same thing?
这两个点是同一个点么?,我已经写了一小块代码,可以提供这个功能,但是你知道的我可以做的,最简单的事情就是说好,嗯?,等等,我为什么不直接去看看,这两个东西相等不相等呢?
And so ease of implementation is actually a very compelling -- metric against which to measure-- -- do you mind toning my voice down a bit-- is a very reasonable measure against which to measure the quality of an algorithm, right.
如此简单的实现实际上是一个很牵强的,度量,与之相对的衡量是-,如果你们不介意,我降低点音量-,是一种用来度量算法质量的,合理的方法。
Let me simply tell you that in time I am going to show you that this formula is inconsistent with the Bohr model.
让我说简单点吧,之后我会向你演示,这个方程式与波尔模型不一致。
Now, the marriage case is extreme but Freud gives a lot of simpler examples where this sort of unconscious motivation might play a role.
婚姻是一个极端的例子,但弗洛伊德还举了很多简单点的例子,来阐释无意识动机是如何发挥作用的。
To make life easy, we're going to assume that this political spectrum has ten positions.
简单点说,一系列政治主张中 共有10个立场
Now let's go on to another thing that we'll want to be doing here and that I guess is taking a little bit of rhythmic dictation, writing down some simple rhythms.
现在咱们来做另一件事,我觉得咱们得做点节奏的听写,写下一些简单的节奏
You have to know where the vowels are supposed to go, and that makes it harder to learn how to read, but when you have the vowel sounds it's easier and the Greeks made that contribution.
你必须知道这些元音都应该加在哪,这使的学习阅读变得更加困难,但是如果填入元音,那么就会简单点,而希腊人在这方面做出了贡献
Or maybe, what would be even simpler than that? Maybe I should just do that.
或者还可以简单点?,可能我只要这么做就好了。
I'm actually just going to do something simple first, print the arguments to this function.
我实际上将要先做点简单的东西,打印函数的参数。
It's a little more straightforward now, but even then semantically frankly it's a little confusing.
现在这就稍微简单点了,但是,根据语义,它有点令人困惑的。
Algorithms for searching. Debugging is simply a search process.
调试简单点来说,就是一个搜索的过程。
So this first little piece of code right here says, ok you give me 2 points, I'll create another 1 of these lists and I'll simply take the x, sorry I shouldn't say x, I'm going to assume it's the x, the x-values are the two points, add them together, just right there, the y-values, add them together and return that list.
好,为了来认识到这一点,让我们来看一个简单的小例子,在你们的课堂手册上,你可以看到我写了一个小程序,它假设我得到了,这些点中的一些,我想对它们做一些操作,例如我想把它们加到一起,那么这里的第一小片,代码的意思是,好给我两个点,我会再创建一个数组。
Pardon? I could square x but maybe I should just do something pretty simple here. Suppose-- whoops.
对不起我没听清,我可以求x的平方,但是好像这里我做点简单的,改动就可以解决问题了。
So before we leave coordination games, I want to look at another one, a little bit more complicated one perhaps, that we mentioned briefly last time.
在我们结束讲解协调博弈前,我们再来看一个,稍微复杂点的问题,上一讲我简单提到过的
We'll make one other assumption to keep life simple.
为了更简单点我们将设定另一个假设
And if you're sharing a particularly decent amount of code, you should definitely submit it as private, or if easier, you can email help at cs50.net.
当你分享了一些相当好的代码量,也可以私下提交,或者更简单点,发邮件到cs50,net寻求帮助。
Remember last time, I said that there's different kinds of complexity in our code, and I suggested for simple branching programs, the amount of time it takes to run that program is, in essence, bounded by the number of instructions, because you only execute each instruction at most once.
但是这里有个很重要的点,记得上节课,我提过在我们的代码中,有不同种类的复杂度,而且我还说了对于简单的分支程序,运行这种程序需要的总体时间,大体上,是和指令的数目相关的,因为每个指令只会被执行最多一次。
OK, for example, I might say point p1 is that list, x is 1, y is 2.
和y坐标的数组是很简单的1,那么,例如,我可能会说点。
You can stack these things in C. So if you want to do if - and then rather -- let me tweak this just so simplify -- if you want to stack these things and do this in one case or that in the other, can you stack them like this?
你们才可以在C语言中使用这些东西,所以如果你想做,-让我把这个弄得更简单点-,如果你想把这些代码堆集在一起,在一个情况中,或在另一个情况中处理,你能够像这样把他们集在一起吗?
应用推荐