OK. So if we have variables, one of the questions we can ask is, what's the type of the variable.
好,如果我们有了一个变量,我们要问的问题之一就是,这个变量的类型是什么?
what the sections are, who's working where, who's on top of what they're doing,
都在做什么类型的工作,谁在哪里工作,谁在那一方面做的最好,
We need to know not only what are the primitives, but how do we make things meaningful in that language.
我们不仅需要知道什么是基本类型,还要知道我们在那种语言中,怎样使其变得有意义。
So what I want to do today is look closely first at the selections from Black Boy that I asked you to read and to look at those as a text and to ask ourselves what kind of story it is.
它们细微的差别,我先读部分《黑孩子》,先前我布置给大家去阅读,并思考几个问题,我发现了什么,故事是什么类型。
Last time we taught this class, we did a survey to find out what type of people were sitting in this room-- they are just like yourselves-- and find out why you'll be taking this class.
上一次我们教这门课时,我们做了一个调查,看看坐在这上课的都是什么类型的人-,他们就像你们一样-,看看为什么你们会上这门课。
So in the first case of this first bond here that I've put in a square, what type of a bond is this, is the sigma or pi?
在这第一个键里,我用方框把它标出来了,这个键是什么类型的,sigma还是π?
The question of whether discriminant conditioning has been used with babies to explore what sort of concepts they have.
这个问题是,在探究婴儿拥有什么类型的概念时,是否对婴儿应用了判别式条件作用
You have to be ever so explicit as to what data type your actually passing in.
你必须很清楚,你们输入的参数是什么类型的。
What kind of performance can we see at the theater in Harlem?
在哈莱姆的剧院里,我们能看到什么类型的表演呢?
We need to check another entrant from the outside, left wing or right wing, we need to check another entrant in the middle, there is only one possible one there, and there's a third kind of deviation we should check, what's the third type of deviation?
我们需要验证另外一个外部的参选人,左派或右派,我们需要验证另外一个中间的参选人,只有一个可能参选的人,还有第三种要验证的偏差类型,第三种偏差类型是什么
What kind of movies have you watched recently?
你最近看了什么类型的电影?
What kind of music do you like?
你喜欢什么类型的音乐?
What we're really doing, or I shouldn't say what we're really doing, a basic piece of what we're doing, when we talk about classes or objects, is we're doing something that Professor Guttag mentioned, we're defining an abstract data type.
或者我不应该,说我们真正要做的,当我谈到类或者对象的时候,我们在做的基本的东西,如Guttag教授提到的,就是定义一个抽象数据类型,那么这到底是什么意思呢?
So if you think about any one of these carbon-carbon bonds, what type of a bond would you expect that to be?
如果你们考虑任何一个碳碳键,它是什么类型的?
What have we done over the last three or four lectures? We've started introducing you to classes of algorithms. Things that I'd like you to be able to see are how to do some simple complexity analysis.
我们在过去三节或四节课中讲了什么?,我开始向你们,介绍算法的类型,我想你们知道的是,如何做一些简单的复杂度分析。
So you're implementing this black box, and if its purpose in life is to actually return a value, you have to tell the compiler what kind of value to expect, and this is going to have ripple effects.
你在实现这个黑盒子,如果它的目的是,返回一个值,你必须告诉编译器你期望的是什么类型的值,这个将是一个连锁反应。
The second thing is, what do I print out if I actually don't get the right input in?
第二件事是我没得到,正确类型的输入时输出什么?
Now, what type of variable is this?
那么,这个变量的类型是什么?
So what data type can we use to actually get more bits of precision than an int?
所以我们能用什么数据类型来表示,比int类型更多位数的数呢?
So I'm going to now build an object, it's going to represent a point.
基本上说我们想要明白,这是个什么类型的对象。
Whenever I think about how to build an interesting program, and I hope whenever you think about it, the first thing I think about is, what are the classes I might want to have, what are the types?
无论我何时,去想怎样建立一个有趣的程序,你们每次做这种思考的时候,你们想得第一件事,就是我应该要有什么类呢,它们是什么类型的呢?
All right, the question is, as I started to say, is, "What are the right primitives?"
好了,就像我刚开始说的,问题在于,“什么才是正确的基本类型呢?“
So one of the questions is, well, what are the right primitives to use?
因此问题之一是,好吧,要使用的正确基本类型是什么呢?
The order complexity here, if I actually write it would be-- sorry, order n times m, and if m was equal to n, that would be order n squared, and this is quadratic.
如果m等于n的话,也就是n的平方,这是一个平方复杂度的问题,这是和前面不同类型的,好,我在做什么呢?
应用推荐