So the heap is a chunk of memory in a computer's RAM that's conceptually allocated to what's called dynamic memory allocation.
堆是在计算机RAM中的一块内存,它可以进行,动态内存分配。
But one of the teaching fellas also passed long to us recently, a little real world example of what happens when you're not mindful of various data types and you're not mindful of the imprecision that's inherent in representing data in a computer, at least using a language like C and low level primitives like floats and even doubles.
最近有个助教告诉我们,一个现实世界中的例子,当你不注意各种各样的数据类型,也不注意在计算机中表示数据时,其内在的不精确性,至少在用像C语言,和float甚至double型数据时,那将会发生什么?
The reason I'm showing you this is it that this is a gain, a common trade off in computer science.
我向你们说明这个,是因为是这个计算机科学中。
He said "Steve, you don't get it. We're going to put a computer on every desk, in every home. You didn't drop out of business school to be the bookkeeper of a 30 person company."
他说“史蒂夫,你还没尽力呢,我们要让电脑进入每桌每户,你从商学院辍学又不是为了,给一个只有30人的公司当图书管理员的“
What's on the screen are computer generated faces of a Caucasian male and a Caucasian female who don't exist in the real world.
屏幕上面的这些是电脑生成的,一个高加索男性和一个高加索女性的面孔,他们在现实世界中并不存在
Well, the thought, I suppose is, in philosopher's jargon, that the computer is a deterministic system.
对于这个观点,我认为,以哲学的语言可以表达为,电脑是个决定论的系统
Jin says he is a sophomore in computer science and he has science fiction in mind and plus machines So you have some immersion in philosophy.
杰,他大二,学计算机科学,他满脑子都是科幻小说和机器,所以你对哲学有点了解。
Because as a young, four or five-year-old company, if we're trying to attract somebody from a company that's been around since before I was born, that is in the computer industry, that's pretty hard.
因为作为一个只有四五岁的年轻公司,如果我们想要吸引大家的注意,尤其是在公司创立之前,这在电脑行业是很难的。
So but the diary is a way to get more sophisticated information on individuals for dietary counseling purposes and the like, but it's pretty labor intensive and then it requires either a computer to analyze the diet or some human being who is trained in this to sit down and make sense of the data.
日记这个办法,可获得更加精确的个体信息,用以进行饮食咨询等,但这更像是劳动密集型工作,然后还需要一台电脑,来分析食物数据,有些人学的就是,坐在电脑前弄明白这些数据
And so this, in fact, when you say your computer stores information as zeros and ones, A you've just typed the capital letter A, that's all that's going on inside.
事实上,当你说电脑以这些0与1进行信息存储时,你已经键入了大写字母,那就是在计算机内部发生的过程。
Which are actually things that take in a value and ask the computer to do something with it.
这其实也就是让计算机,对某个值进行某种操作。
Well, we saw the teaser in terms of that animation that suggests this merge sort algorithm when implemented by a computer is absolutely faster.
我们从前面的动画中可以看到,这个归并排序算法在计算机上实现之后,绝对比其他算法更快。
It can't be true because there's two ways in which the brain is better than a computer.
这个观点之所以不对,是因为大脑在两个方面上,要优于计算机
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.
它的意思就是说,我可以给一个存储程序计算机,提供一系列,描述我希望,能执行的过程的指令。
I've added the ability to have more complex data structures here. But I dropped a hint in the first lecture about what you could computer with things. In fact if you think for a second about that list, you could ask what can I compute with just that set of constructs?
我添加了使用更复杂的数据结构的能力,但是我在第一节课给大家了了一个,关于你可以用什么来做计算的暗示,实际上如果你思考,这个列表一会儿的话,你会问我可以用?
What happened? I'm down here and try, I'm trying do get grades, which is a call to that function, which is not bound in my computer.
尝试着读取成绩,这被称为函数,是不被我的计算机局限的。
应用推荐