What lambda that does, it creates on the fly a function, as the program runs. That I can then pass around.
这里的入是在函数运行的时候,由一个函数创建的,然后我会传递这个值。
>> They only use that when the program that you're running-- the program that you're referring to is going to your computer?
>它只有在你运行程序的时候才用到-,那你刚刚提到的程序,会到你的电脑上运行吗?
Whereas in the linear case, I make it ten times bigger, it takes ten times longer to run. OK.
它要占用原来十倍的时间去运行,我一直在说还有一件事情没有讲,这是我要强调的最后一件事。
The gods are very unhappy because they have now been assigned specific duties in the maintenance of the cosmos.
众神们因为被指派了任务而闷闷不乐,他们都有具体的工作来维持宇宙的运行。
Now Microsoft is sort of a funny place, we've got these big businesses but in the software business big businesses need to be constantly recreated.
现今的微软是非常有意思的地方,我们运行着庞大的生意,但是在软件交易上,大宗交易更像是消遣。
So it's a measure of how well we can do to run the refrigerator.
这是衡量,我们运行制冷机的一个量。
It is generally believed that in order for that to work you need the round ship delays in milliseconds, in 100 milliseconds, in 200 milliseconds, not 8s.
人们一般相信,为了运行正常,总延迟需要控制在毫秒的单位,在100毫秒,200毫秒以内,而不是8秒。
Because positing them allows you explain things about the rotation of the star or the gravitational fluctuations, what have you.
因为这样假定能帮助你解释,诸如星体运行,引力波动,等现象
Likewise, when in outer space, when you are orbiting the Earth, people are always floating around in these space stations.
就好比在外太空,当你在绕地球运行时,宇航员总是悬浮在太空站
They make the markets work because if you didn't have this there would be all kinds of crooks and bad actors.
监管使得市场有序运行,如果缺乏监管,市场就会充斥着不法商人
I didn't expect it to do this. If you understand why it did what it did, you're half way there.
这样运行的啊,如果你能弄明白为什么,它这么运行,你已经完成了差不多一半了。
Therefore, for simple branching programs, the length of time, the complexity the code, is what we would call constant.
因此,对于简单的分支程序,运行的时间长度,算法的复杂度,也就是我们说的常数。
But let's not try and figure out what's going on with this big, big example because we'll get really tired.
但是我们不用去想,这个超大的例子是怎么运行的,因为那太累人了,哦实际上,在我们这么做之前。
All right. Then we're going to set low to-- low and high, and we're going to perform exactly the process I talked about.
不满足条件,我们就可以直接停止运行了,好,接下来我们要定义边界值,然后按照我之前。
So that's the only change we need to make there and watch what happens when we actually run this.
那就是我们需要改变的,并且当我们运行它,会发生什么事情。
SSH I'm gonna go ahead and run this command, SSH, This just means making encrypted connection to someone else's server.
运行这条命令:,这样就加密连接到,某个人的服务器上。
So we can see what it's doing is it runs. So let's try fib it here with Fib of 6.
我们可以看到它在,运行的时候做了什么,让我们试试。
So in general, when you're running command line programs, they can take input or arguments or parameters or switches or flags.
一般而言,当你运行命令行程序时,可以把把这些当做输入,像什么参数啊,或开关啊,或标志啊等等。
Over all possible inputs to this function, what's the fastest it runs? The fewest, so the minimum, if you like.
哪个输入程序运行的最快?,用的时间最少?如果你喜欢的话,这个方法看起来不错。
And if they can't answer that question, I say well, before you even run it, have an answer to that.
如果他们没法回答这个问题的话,我会说好吧,在你运行实验之前,先回答这个问题吧。
They're easy to spot, you can't run the program with them there, so you're not going to get weird answers.
它们很容易被捕捉到,你没法带着这些错误去运行程序,因此你不会得到奇怪的答案。
This machinery is so precise that a human hair couldn't even pass between the heads and spinning platters, yet it all works in terrific speeds.
这些设备是很紧密的以至于人的头发,都不能在头和旋转的磁盘之间通过,尽管如此,它的运行速度非常快。
In other words it doesn't just return when it finds one, it's going to run through all of them. All right?
但是它将会继续运行,换句话来说当它找到一个结果时,它不会立刻返回结果它会先遍历所有的内容?
Usually when you know why it's not working, it's obvious what you have to do to make it work.
通常你明白了出错的原因后,很明显你必须让程序正常运行起来。
And the obvious question I could start with is, and suppose I ask you, how long does the algorithm implemented by this program take to run?
我开始这个话题的第一个问题是,假设我问你,由这个算法实现的程序大概,要运行多久才能给出答案?
GCC -o So, on the one hand, I've run this command here, GCC dash O and this projector I'm highlighting things all day long on the screen here and you're not seeing any of it unfortunately it seems on this projector.
我在这运行了一条命令,这台投影仪我一天到晚的开着,一再强调屏幕上的东西,不幸地,你们却,在投影仪上没有看到它。
OK, says it says enter a float. I give it something that can be converted into a float, it says fine. I'm going to go back and run it again though. If I run it again, it says enter a float.
好了,看到他说输入一个浮点数,我输入它可以转换为浮点数的值,那没问题,我回过来再运行一遍,如果我再运行一遍。
I'm thinking about a problem, I'm going to show you an example in a second, first thing I'm going to do is say, what is the thing that's going to change every time I run through the same set of code?
我要解决一个问题,我马上会让大家看一个例子,第一件我要做的事情就是,弄明白每次运行同样的指令集时,每次都会改变的东西是什么?
All right so it has to live in RAM as opposed to the hard drive because otherwise things would be terribly slow as you know so it's much better if your programs live while they're running in RAM and they end up in what's called the tech segment.
好的,它存在内存中,而不是硬盘中,因为,否则程序会非常的缓慢,程序在内存中运行会好得多,它们在技术段,的地方结束。
It will probably quit at some point because of space issues, unless I'm writing an algorithm that is using no additional space.
其中一个的时候,它会一直运行下去,它可能在某一处因为空间问题退出,除非我写了一个。
应用推荐