OK. One of the other things you're going to see is that some of the operators have odd meanings.
好,你们会学会的另外一件事情,是一些操作符,有很奇怪的含义。
OK. So if we have variables, one of the questions we can ask is, what's the type of the variable.
好,如果我们有了一个变量,我们要问的问题之一就是,这个变量的类型是什么?
Ok All right. Let's take 10 more seconds on that. OK.
好,再给10秒钟。
OK...Let's take a moment to look at India's international relations with some of the very important countries, say the United States.
好的,现在来谈谈,印度与一些地位重大的国家,之间的国际关系,比如说,美国。
Just so I get a show of hands: how many people have heard of Roger Bannister? Ok. A handful.
举下手:,多少人听说过他?好的,只有少数。
All right, let me just go through one numerical example of a calorimetry calculation, OK.
好,让我们来做一个量热,法计算的例子,我不会把所有的。
Well, I think I'm gonna conduct this interview and ask you more questions about your story. -OK.
恩,我想接过主持棒,来问你几个问题,-好的。
Whereas in the linear case, I make it ten times bigger, it takes ten times longer to run. OK.
它要占用原来十倍的时间去运行,我一直在说还有一件事情没有讲,这是我要强调的最后一件事。
The syntax is OK in the sense of, it is an operand, an operator, an operand, so syntactically it's OK.
这里的语法应该是好的,有个运算对象,一个运算符,另外一个运算对象,因此语法上是没错的。
OK. Now, last thing about variables, and then we're going to start pushing on this, is where can you use them?
好,关于变量的最后一件事,然后我们就要,结束这个话题了,这个问题就是在什么地方可以应用变量?
So this is still adiabatic. It's insulated, but now it's constant volume, OK.
这仍然是绝热的,是隔热的,但现在它的体积是恒定的。
Yeah, it's kind of simple, but it gives me an ordered list of these things, And let's run it. OK.
让我们来运行运行吧,好,我会先去搜索一些数组中没有的元素,让我来试试,看-1在不在这个数组里。
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?
我们已经明白了一些,一会儿要讲的微妙之处,应该有更好的方法对不对?,应该有更好的思路的?
OK. I know. It looks boring. But it's a structure of the things I want to think about when I go through trying to take a problem and mapping it into a iterative program.
好,我知道这看起来有点无聊,但是这是我要去以迭代的方式,去解决一个问题采取的,措施的大致结构。
OK. Having done this now, I can simply go ahead and run this, and in fact if I go up here to run, you'll see I've got both an option to check the module, though in this case I'm just going to run it.
好,讲完了这些,我可以去执行程序了,实际上如果我在这里运行,你们会看到我同样得到了,一个可以同时检查模块的选项,虽然在这个例子中我就是直接去运行程序了。
And what does that say? It says, let's assume I want to do k searches of a list. OK.
如果我们假定要在列表中做k次搜索,在线性的情况下,假定是一个未排序的情况。
应用推荐