Ok All right. Let's take 10 more seconds on that. OK.
好,再给10秒钟。
OK, now what I want to do is just describe a little bit of how do you measure all this stuff, right?
好,现在我要做的就是,介绍一下怎样来测量这些东西?
First of all, the majority of the alpha particles were transmitted through the screen, OK, majority, vast majority.
第一点,大部分的阿尔法粒子,全都从屏幕穿透过去了,嗯,大部分的,绝大部分的。
All right, so OK, it looks like we have a very mixed response in terms of the answer to the clicker question today.
好的,看来今天课堂,习题的答案比较多样。
OK? All right. x 3, as you can see right here, does exactly that.
你们可以看到,就是这么做的对不对?
You all put whatever number you have, including the cellphone number. OK What are you looking for, Michelle?
只要有什么号码,都写下来吧,包括手机号码,米歇尔,你想从这门课里学到什么呢?
And then, so OK so we have all these people then, like how do you come watch what they're doing and I'm not trying to control too much what they're doing.
当你拥有自己的团队之后,你需要做好监督工作,但不要过分控制你的下属。
If you say today, "Ok, is all the good stuff in the days gone by?"
如果你今天说,“过去的日子里都是美好的吗?“
It's all OK. Just breath.
都没关系,呼吸。
Ok, that's all nice.
差不多就是这些。
Press one more time - Press one more time Ok.So we don't have--we don't All right. We are going to just leave these up.
再按一次Fa键,-再按一次Fa键,可还是没有,我们不管它了
OK, so w, first of all, work is being done to the system on the left hand side here.
好的,首先,我们通过左边对系统做功。
All right. OK, looks like we got the majority, which is a good start, but we having discrepancy on what people are thinking.
好的,OK,看来大部分人都做对了,这是个不错的开始,但还有一部分人的答案有分歧。
OK, any questions? All right, so we've described the system with these properties.
好,有没有问题?,好的,我们已经用这些性质描述了系统,这些性质。
OK. Let's simulate the code. Let's see what it's doing here. All right, so we start off.
让我们看看这里到底做了神马?,好的,我们开始吧。
OK, All right, so these are the thermodynamic quantities that you're familiar with already.
好,这些是你们已经,熟悉了的热力学量,让我们很快地。
OK. So to do this, we're going to have to do a couple of things. All right, the first one is, what do we mean by input size?
好,为了实现这种方法我们,有些事情要做,第一件事情就是,当我们说到输入的大小的时候代表了什么呢?
OK. So if I look at this code, first of all I'm calling search, it just has one call, so looks like search is constant, except I don't know what happens inside of b search. So I've got to look at b search.
首先调用一下搜索,就一步调用,看起来搜索是固定的,除非我不知道二分搜索的原理,那我们来看看二分搜索吧,所以让我们看看,第一行打印出来的内容。
OK. All right, let me show you one other tool that I want to use. Which is, I've written that piece of code, I ought to check it. Well, I could just run it, but another useful thing to do is, I'm, especially as I want to debug these things, is to simulate that code.
好,那么,让我给大家讲下,我想用的另外一个工具吧,也就是,我已经写好了这一块代码,我应该去检查检查,那么我可以去运行它,但是特别是当我想要调试代码的时候。
OK. If b is even, then a to the b is the same as a squared all to the b over 2.
就等于a的平方的二分之b次方,好,就是把二挪到外面来了。
b OK. In this example I'd use b. All right, as b get-- b is the thing that's changing as I go along here, but it could be things like, how many elements are there in a list if the input is a list, could be how many digits are there in a string if the input's a string, it could be the size of the integer as we go along. All right.?
好,在这个例子里我会用,因为b是一直在变的东西,但是也可能是如下情况:,如果输入是数组的话,变化的就是数组的元素数,如果输入是字符串的话,变化的就是字符串的长度,如果是integer的话,可能就是这个数的大小,对不对?
We can put a list in the list again, as we've seen before. So let's put the list containing the string a, and I'll print out so now we see something pretty interesting about a list, that we can mix up all sorts of things in it, and that's OK.
数组放到数组中去,让我们把这个包含,字符串a的数组放进去,然后再显示,我们看到了一些,挺有趣的事情:我们可以把各种,各类的东西混合着放进去,没问题。
OK, good. This might be our all-time high, 89% got this right. This is great.
好的,很好这可能是我们上课以来正确率最高的一次,89%,的同学都做对了,这太棒了。
OK cool All right, a couple. OK, cool.
有几个。
First of all, two parameters. It's OK. All it says is, when I call this, I need to pass in two parameters for this to work. All right? Now, if I want to use that, I'm going to use a second piece of code here, called Barnyard. I'm going Barnyard to read in a couple of values, convert them into integers, and then I'm going to use solve to get a solution out.
注意我得到了什么,第一,两个参数,它的意思就是我调用这个函数,我得给它输入两个参数,明白了吗?,现在如果我要使用它我得用,这里的第二段代码,也叫,我将读入一组值,将它们转化为整型,然后我会用solve得到一个解决方案。
应用推荐