But you'll see that once you get to final projects frankly, you're not gonna want to implement everything from scratch.
但是一旦你得出了最终方案,你就不会愿意利用框架去,实现任何功能了。
Neurons have these projections because one important property, or one important function of neurons, is to communicate with each other.
这些突起,源于神经细胞,一项重要的性质,或者说一项重要的功能,那就是实现信息的交流
Suppose I take a number. I'd like to add up all the digits inside of the number.
我可以用到刚刚提到的工具,来实现这个功能。
And it was fun for us but thankfully, we didn't have to implement all this stuff ourselves.
这对我们也许是有趣的,但幸运的是,我们不需要自己实现所有的功能。
One of the inputs to the problems we're gonna be working on this semester and if you continue on in this world how much thought it takes to implement something, how much time it takes to run something, how much space it takes to run something?
我们将在本学期集中探讨这些问题,或者在课程之后你们也可以继续研究,为实现一些功能要有多少想法,在运行过程中又将花费多长时间,需要多大的空间?
Another way of saying it is, anything that uses get float doesn't care what the details are inside or shouldn't, and if I change that definition, I don't have to change anything elsewhere in my code, whereas if I just have the raw code in there, I have to go off and do it.
换种说法就是,任何用到获取,输入这个功能的人不用担心具体的实现细节,如果我改变了这里的实现,我并不需要去改变我的代码,因为我的最底处的源码就在这里,我去改这里就可以了。
So this code is identical functionally nonswitch c to the last implementation we saw, nonswitch.c, but I'm just ever-more emphatically saying, "In case 1," that is when n equals 1 -- or when case 2 applies -- when n equals 2 or when n equals 3 do what?
所以这些代码到最后的实现上,功能是,完全相同的,但是我想要再次强调一下,“在case,1“,那是当n等于1时1,或者当case,2适用-,当n等于2或者当n等于3,它将做什么?
So to really add to this, we need to have branching programs.
因此为了实现这个功能,我们需要分支式程序。
All right. If you flip to the second side of your handout, you'll see that I have a piece of code there, that does this-- let me, ah, I didn't want to do that, let me back up slightly- this is the algorithm called search.
你可以看到实现这个功能的代码,让我,额,我不想这么做,让我们回来一点,这就是命名为search的算法-,我们来看看这个算法吧。
应用推荐