Ok it's not comfortable, but I'm living through this and I've met these people that helped me through that process.
的确,没有舒适的环境,但是我挺过来了,我遇到了这些帮助我的人,和我一同渡过难关。
I'm a little short but I was doing OK. But I did do some research when I saw this book last year.
虽然款项很少,但是我还做得不错,我去年看这本书的时候,做了些调查。
Ok, double line. If there are no questions I'm going to make a dramatic change in topic.
好的,这是重点,如果没什么问题,我要讲下面的内容。
OK, elements with low average valence electron energy, and here I'm saying below 11 electron volts, these are good electron donors.
平均价电子能都较低的元素,我是指那些低于11电子伏的,这些是很好的电子给体。
OK, so here is just an engine like what we've already seen, and I'm going to specify that this is a Carnot engine which is to say all the results that we just derived hold for this case.
这一个热机,跟我们以前见过的差不多,我们把它确定为,卡诺热机,所以我们之前得到的结果都对它适用。
Am I going to a class? Oh no. Ok, so the program that I'm in is, it's a program for undergraduate.
去上课?不是。我参加的是一个本科生的项目。
Ok, good. Because I'm going to bring a couple of friends with me.
哦,太好了!因为我打算带几个我的朋友来。
And you express that "I'm feeling this way, is it ok?"
你可以表达“我有这样子的感觉,没问题吧?”
Ok. I don't think I'm a modern art guy.
嗯,我想自己欣赏不了现代艺术。
and be like, "Oh, wait. No. I'm ok.
像这样,“哦,等等。不。我很好。”
So I went back to Engineering and told them, "OK, guys, we need to work harder. And I'm not under CEO.
于是我跟工程师团队说到,大家还要加把劲。
Henry Jenkins ok, so hello! I'm Henry Jenkins, the director of comparative media studies here at MIT.
大家好,我是,是麻省理工大学比较媒体学中心主任。
Palindrome 1 I'm going to give it a little indentation so that we can see this. OK.
应该是,我加一点儿缩进好让我们能看到它。
OK. Now, having said that, and I've actually got a subtlety I'm going to come back to in a second, there ought to be a better way to do this. OK?
我们已经明白了一些,一会儿要讲的微妙之处,应该有更好的方法对不对?,应该有更好的思路的?
In the example I just wrote here, this is pretty trivial, right. OK, I'm trying to input floats.
在我写的这个例子中,这是很微不足道的。
Ok, and again, I'm going to remind you, the class is this template.
就在这里,我想大家在,你们的课堂手册上看看这个,好,我将会回去重建下这个类。
OK. I'm calling palindrome with that.
它先访问了这个问题。
OK. What does that say? I'm going to change MinIndex min index to also point there n value is 8, j starts off here, and I say, OK, is the thing I'm looking at here smaller than that? Yes.
好的,这意味着什么?,我打算交换,让它也指向那里,MinVal是8,j从这里开始,我要找的值比这个小么?是的。
All right, having said that, let's do some examples. I'm going to show you a sequence of algorithms, they're mostly simple algorithms, that's OK.
好,让我们开始看例子吧,我将会给大家讲,一系列的算法,这些都是挺简单的算法。
OK? So the example I'm going to do, I'm going to search a sorted list.
来搜索目标元素,好,翻到课堂材料的第二页。
OK, now, if I actually do this, and I'm going to show you the example, I just, what did I type over there, I got p was a c point.
传入了其他的参数,好,现在,如果我,实际上要做这个的话,我要给大家看个例子。
OK. And I'm going to look to see, is a particular element inside of that list, and again, I'll remind you, that's just giving me the integers from zero up to 9999 something or other.
一个又大又长的列表吧,好的,我打算查找列表中的一个特定元素,我会告诉你,我用的是0到大概是,9999左右的整数。
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. Don't sweat the details, I'm just expanding it out.
我只是把它展开了而已,我想大家注意到的是。
OK, I'm going to go back and rebuild the class.
好,这就让我们得去看看,这个看起来很时髦的东西了。
OK. Aren't you glad I'm not a computer?
好了,你是不是很庆幸?
So what's going to happen here? If I'm inside this FOR, OK, and I'm running around, if I ever hit a place where this test is true, I'm going to execute that return, return that return returns from the entire procedure. OK? So the return comes back from the procedure.
那么这里发生了什么呢?,如果我是在这个for循环里面,我正在运行,如果我运行到test的值为真的地方,我就会执行,这个return将会返回整个程序的值,明白了吗?所以它将会从整个程序中返回值。
OK. Now, having done that, again I want to stress this idea and I'm going to write it out one more time, that there's a particular format here.
好,讲完了这些,我又想要强调一下这个思想,并且再一次把它写出来了,就是有一个特定的格式。
应用推荐