And I want to show you a little bit more detail of that, so let's create a simple little list here.
我还想给你们再讲详细些,那让我们来创建一个简单的列表吧。
These are roughly... Well, let me put up the payoffs for this game and then I'll explain them.
差不多就是这样,我先把收益写一下吧,一会再来解释
They are computationally challenged, meaning, at the time they were invented, they were perfectly good sorting algorithms, there are better ones, we're going to see a much better one next time around, but this is a good way to just start thinking about how to do the algorithm, or how to do the sort.
他们是相当棒的排序算法,是有更好的算法,我们下一次,就会看一个更好的,但是开始想想,如何完成算法,或者说是如何排序,是一个好的学习方法,恩,再试试吧,如何来排序呢?
Host: So I understand we have time for one more question and I'm going to take the liberty since I'm sitting here to ask it.
主持人:我想还有时间再问一个问题,还是我来问吧,反正都坐这儿了。
So those are very important political factors, but let's talk about psychology for a minute.
所以它就成了非常重要的政治因素,再来谈谈食品的心理学吧
Okay, let me correct myself before I correct you.
好的,我先把这个改正过来再来补充吧。
Let's vote again.
我们再来投票吧。
All right, I've got to do one pass to bubble the last element to the end. I've got to do another pass to bubble the second last element to the end.
好的,我要冒一次泡来,把最大的元素冒到最后去,我还得再冒一次泡来吧第二大的元素。
Now there's one more lesson in this class and this is going to be it.
我们再来总结出一个结论吧
Come get me one later if you can't find it.
如果你没找到的话课下再来找我要一个吧。
Well once again, we can plot that point.
我们再来画一条线,我们先来描点吧
Okay now, so why... Let's go back again.
好吧,那我再来问一下
In this case, it's cutting up from the bottom end, which makes sense because the thing I'm looking for is always bigger than the midpoint and then, I don't know, let's pick something in between. Somebody want-- ah, I keep doing that-- somebody like to give me a number?
排除元素,这是讲得通的,因为我总是找比中点大的元素,那让我们挑一个同,中点之间的元素吧,我再来试试,谁给我个数字吧,我知道你们想给我些其他东西?
But they're not. OK?
让我再来告诉你们一个求乘方的方法吧?
Let me just raise one more issue.
我再来提出一个问题吧
Let me just repeat the point here.
我们再来重申一下吧
For the latter, this is a place where running test cases would do a good job of helping with that. Nonetheless, having done that, let's look at a better way to write this. Which is right here it is also, I think, on your sheet, I'm going to uncomment that, and comment this one out, yeah. All right?
对于后者来说,运行测试用例,对它会有很大的帮助,尽管如此,讲完了这些,让我们再来看看更好的,来写这个程序的一种方法吧,也就是这里,我想这程序也在,你们的课堂手册上面,我得先把这里取消注释,然后注释掉这里,是的,对不对?
I'm going to assume a little bit more and I'm going to assume that I haven't spelled maximized right, max will do they want to max their share of the vote.
我们来再进一步假设,最大化怎么拼,就用max代替吧,假设他们想要最大化自己的得票数
应用推荐