And Mark is extraordinary that way as are many of the best entrepreneurs or executives that we've met.
马克就像我们见过的,许多优秀企业家或执行官一样,特别善于倾听。
whereas in college, they seem to be a little more geared towards enforcement often.
但是在大学的时候,这些政策都是要严格执行的。
These things run for variable amounts of time because they take input, a list of size of some amount.
而这一段的执行时间是可变的,因为它们需要输入一个包含一些元素的列表。
And we're going to do this initially by looking at a straightforward implementation based upon what's called the decision tree.
我们将要做的是看看一种,直截了当的执行方案,这种方案是基于决策树的。
We're selling everyday to hundreds of thousands of customers, and so it is an execution kind of business.
我们每天把产品,卖给成千上万的客户,所以也是重视执行的企业。
He is the founder and the executive director of the Interfaith Youth Core located in Chicago, Illinois.
他是跨信仰青年核心组织的创使人,及执行理事长,该组织总部设于伊利诺州芝加哥市。
We might say, even if we are smart enough to build programs that can, by mechanistically following the program, do things we've never thought of.
我们或许说,即使我们非常聪明,可以编制些,能够机械地执行指令的程序,做一些我们从来没想到的事情
The WHCF in most configurations, usually most effectively in that role, is a staffer.
白宫办公室主任在很多情况下,最充分执行职务的时候,其实是一个职员。
I'm now the CEO of Google.
现在,我是谷歌公司的首席执行官。
The sovereign, he says, or Leviathan, this great artificial man, the sovereign is something more like what we would call today an office, rather than a person, as when we speak of the executive as an office.
他说,君主,或者“利维坦,这个人造的人,君主更像是,我们今天称之的“职务“,而不是一个人,就像我们说某个职务的执行官一样。
So the open curly brace followed by the closed curly brace means everything inside of these curly braces should get executed, but only if that first condition is actually true.
所以左花括号后面跟着,右花括号,这意味着花括号里面所有的代码,都应该是要被执行的,但只有当第一个条件是正确的。
And I want to remind you, that block of code is a set of instructions, the same set of instructions that are going to be done each time through the loop.
我想提醒大家,这块代码是一个指令集,一个每次循环都会被执行的相同指令集,会变化的仅仅是变量的值。
Thus far and in Scratch will pretty much focus on the idea of correctness: Does your code work as we asked it to and as you intended it to?
至此,人们大都是把注意力集中于正确性,观点上:你的代码是不是根据你的意愿,并按照你的要求来执行呢?
up employing something called programming, the act of constructing, telling a computer to do your bidding.
你们会使用一种叫做程序设计的方法,或称之为构建,即让计算机去执行你的命令。
People make really stupid decisions and so as you know in this course with P sets there are three axes that we look at when evaluating your code.
人们做了一个愚蠢的决定,在这个课程上,通过习题集,当执行你的代码的时候,有三个评估方面。
What that means, in a stored-program computer, is that I can provide to the computer a sequence of instructions describing the process I want it to execute.
它的意思就是说,我可以给一个存储程序计算机,提供一系列,描述我希望,能执行的过程的指令。
So let me expand on that very slightly, and again we did this last time but I want to do one more time. I have to be careful about how I'm actually implementing a list.
我们之前做过了一次,但还是再做一次吧,我得小心的在列表中执行,例如在这个例子中。
Right? You can see that this ought to be linear, because what am I doing?
这个算法应该是线性复杂度的,因为这个算法是怎么执行的呢?
Let's look at a straightforward implementation of this.
让我们看看这个方案的,直接执行方案。
So what we've seen is I've run it twice here.
我们现在看到的就是,我执行了这条打印语句两次。
So in your mind, if you are now the computer program and you are executing this thing from top to bottom, what just has happened verbally is we are stepping into the line of code that says sort left half of elements.
在你们看来,如果你现在是计算机程序,正在从上到下执行一系列指令,刚才所发生的就是我们现在已执行到了这行代码,它告诉你要对左半部分的元素排序。
It's a little puzzle piece that says when the green flag is clicked and this is kind ; of like the beginning of a program; when you double click an icon on your desktop this is how something like that is implemented; it's listening for that double click, it's listening for that green flag.
是一小个按钮,它的意思是,何时点击绿色旗帜,这就好比开始运行程序;,当你双击桌面上的图标,就开始执行操作,桌面的图标需要双击,绿色小旗也等待点击来执行命令。
This is code that's got to be executed before anything else happens.
这个代码是,在所有事情发生之前执行的。
Is it some kind of procedure standard operating procedure that you follow?
是不是有一定的程序,标准的执行程序呢,然后你就按照那个程序?
So let's look at an implementation here.
所以让我们看看这里的具体执行。
It's running through a similar set of loops.
它执行的是相似的一套循环。
It's the first thing that gets executed.
他是开始执行的第一个函数。
You can certainly implement your own.
你当然也可以执行你自己的函数。
Sorry? OK. You're doing the whole thing for me What's the complexity just of this inner loop m How many times do I go through that loop?
就这一块代码的,我执行了多少次这个循环?,次对不对?,here?,Just,this,piece。,我一会儿就会去得到你的答案的?
应用推荐