B And when you get a B from me... now, I say me, this is the royal me.
如果你从我这儿拿了个。,我可是说的从我这儿,这才是真的我。
Okay. I'm a producer for a record label called B-Boy Records. One of the original labels
好的,我是B-Boy唱片公司的制作人。B-Boy是最早成立的唱片公司之一。
So I take 2 plus 3 b steps to go through this loop OK. So if b is 300, it takes 902 steps.
好,如果b是300的话就是902步,如果b是3000那就有9002步。
Please choose a rhythm for excerpt one you can choose rhythm A which is or you could choose rhythm B So I'm about to play a piece. It's by Chopin.
请选一个和你听到的相符的节奏,你可以选节奏甲,也可以选节奏乙,我现在要弹一段,肖邦的曲子
So I took this to the other side and I divided through by 2b and the b here cancels.
通过移项和通分成2b,就可以消去b了
Well, A has to get whatever is in B. So now I'm clobbering, as they say, this value here, and at this point in the story, this is not good.
好的,A将获得B中的数据,现在我把这个值删掉,在这个地方,这是不好的。
Put the same point the other way around: If I can imagine A without B, then A and B have to be logically distinct things.
把这点推而广之,如果我可以想象A在没有B的情况下存在,那么A和B在逻辑上是相互独立的
B "Ok, so I don't care if I don't get a B in the course.
我不在乎成绩是不是。
I quote in here a guy who croaks before this course starts, Jean Bodin, B-O-D-I-N.
在这儿我引用一位逝者提出的观点,金博丹
And you've all been vaccinated, I would guess, for hepatitis B.
我猜,你们都接种过乙肝疫苗了
The most extreme critics of the traditional point of view would say over centuries, that you don't get the full-blown hoplite phalanx that I will be describing to you, even until you get the fifth century B.C.
对传统观点批判最激烈的一种观点,认为这一新型战术,是经过数百年,甚至到了公元前五世纪,才逐渐发展成熟的
So, let's just arbitrarily put it between these two in this case here, but actually there's no reason we couldn't also put it between oxygen b and c, so I'm going to draw another structure where we have it here.
那么,让我们任意地将它们放在这两个之间,但实际上我们没有理由,不能把它们放在氧原子,B,与,C,之间,因此我将把另外一个结构画在这里。
I go to B.B. King's all the time. And sit there, listen to the jazz.
我几乎每次都去B.B. King的演唱会,就坐在那儿,听着爵士乐曲。
If there's no heat flow between the b and c, then I can say all right, a and c were the same temperature.
如果在与之间没有热量流动,那么我就可以说,好吧与处于相同的温度。
I suggested that there was a critical response to those issues that was somewhat negative, and I want to sort of remind you of that from W. E. B. Du Bois's review of Black Boy when it came out.
对于负面问题,有个关键评述,大家看一下,关于《黑孩子》的评论。
OK. So if I look at this code, first of all I'm calling search, it just has one call, so looks like search is constant, except I don't know what happens inside of b search. So I've got to look at b search.
首先调用一下搜索,就一步调用,看起来搜索是固定的,除非我不知道二分搜索的原理,那我们来看看二分搜索吧,所以让我们看看,第一行打印出来的内容。
I want to solve a to the b.
下面我就开始讲这种方法了。
It says, if I am in the base case, if b is equal to 1, the answer is just a.
首先解决基本的,如果b等于1的话,那么答案就是a了。
OK? You can take a quick look at it, a even with the wrong glasses on, it says if a 1 sorry, b is equal to 1, a I'm just going to return a.
你们可以快速的过一遍,它是这么写的:如果,对不起,是b等于,那么就直接返回。
It says, in either case in general, t of b-- and this is where I'm going to abuse notation a little bit but I can basically bound it by t, 12 steps plus t of b over 2.
我可以用一个,比12+t的数代表,这里有点不准确的地方,具体的步数依赖于奇数偶数,但是你们可以看到在两个case中。
So I'm done when b minus k equals 1, or k equals b minus 1.
因此b-k=1或k-b=1的时候,我就可以停下来了。
t In the b even case, again I'm going to let t of b be the number of steps I want to go through.
如果b为偶数,那么我还是要用,来代表解决这个问题需要的步骤数。
Yeah. Actually, I think I want b minus k equal to 1. Right?
对,实际上,当b-k=1的时候就该停下来了对不对?
b OK. In this example I'd use b. All right, as b get-- b is the thing that's changing as I go along here, but it could be things like, how many elements are there in a list if the input is a list, could be how many digits are there in a string if the input's a string, it could be the size of the integer as we go along. All right.?
好,在这个例子里我会用,因为b是一直在变的东西,但是也可能是如下情况:,如果输入是数组的话,变化的就是数组的元素数,如果输入是字符串的话,变化的就是字符串的长度,如果是integer的话,可能就是这个数的大小,对不对?
应用推荐