• What's the next step in the algorithm?

    那算法中的下一步是什么呢?

    哈佛公开课 - 计算机科学课程节选

  • And so the fact that in this whole slide here, this algorithm for sorting, I'm using the verb sort.

    在这个排序算法中,我用到了一个动词排序。

    哈佛公开课 - 计算机科学课程节选

  • Cut the problem in half. Cut the problem in half again. And that's a typical characterization of a log algorithm.

    是每次除以特定的量,将问题减一半,再减一半,如此,这就是对数算法的典型特性。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Now, as obvious a statement as that is in this algorithm, it turns out that is the key to this whole problem being solved correctly without my algorithm looping infinitely.

    这是此算法中很明显的一句话,也是正确解决,整个问题的关键,否则此算法就会陷入死循环。

    哈佛公开课 - 计算机科学课程节选

  • It's an example of a very common tool that's going to be really useful to us, not just for doing search, but for doing a whole range of problems. That is, in essence, the template the describes a log style algorithm.

    不仅仅是做搜索,还可以解决一整类问题,本质上,这个模板就描述了,对数形的算法,我们一会再回来。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • All right? Because if I don't do any swaps on a pass through the algorithm, then it says everything's in the right order.

    好么?因为如果我,这一遍没有做任何交换,那么就意味着已经排好序了。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Well, we saw the teaser in terms of that animation that suggests this merge sort algorithm when implemented by a computer is absolutely faster.

    我们从前面的动画中可以看到,这个归并排序算法在计算机上实现之后,绝对比其他算法更快。

    哈佛公开课 - 计算机科学课程节选

  • I want you to recognize classes of algorithms and match what you see in the performance of the algorithm to the complexity of that algorithm. All right?

    让我再试一次这么说,我期望大家能通过,算法的复杂度,来看到算法的性能?

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I ask you for the running time of this algorithm and you give me the running time in terms of the running time, right.

    我需要得到此算法的时间复杂度,那就明确地给出其,运行时间。

    哈佛公开课 - 计算机科学课程节选

  • But in general, it's hard to come up with the really clever algorithm.

    但是通常来讲,真正巧妙的算法,确实非常难设计。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • N But it's definitely not one and in fact it wasn't N in the case of Selection Sort because remember the algorithm we implemented on stage last week had me going back and forth across the stage selecting on iteration, the smallest person I can find, the smallest number and then putting them into place.

    但在选择排序中,肯定不会是1,也不是,注意,上周我们在这儿,实现的算法中,反复地,迭代进行选择,选出最小的数,然后将其放在合适的位置。

    哈佛公开课 - 计算机科学课程节选

  • Yeah. Log. It's a good think, but why do you think it's log? Ah-ha. It's not a bad instinct, the length is getting shorter each time, but what's one of the characteristics of a log algorithm? It drops in half each time.

    对了,对数,这是个好想法,但是你们为什么认为是对数呢?,啊哈,这样的本能不错,每次长度都会缩小些,但是对数算法的特性是什么。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • > So now that might not have felt like the fastest algorithm but think about what you could have done with that algorithm in each iteration, much like the phonebook up front here, you literally split that problem in two because on each iteration roughly half of you were sitting down and then another half and then another half.

    虽然这并不是最快的算法,但如果把这种算法每次迭代,就像刚才查电话簿一样,你便将这个问题一分为二了,因为每一次迭代后只有一半坐下来,以此类推。

    哈佛公开课 - 计算机科学课程节选

  • So I propose this as a new algorithm for sorting N elements and being 8 in this case or really a thousand in the case of the phonebook, or anything of larger size.

    所以我提出一种新的算法,来解决N个元素的排序问题,在这个问题中N是8,在电话簿的问题中N是一千,或者是大规模的任何问题。

    哈佛公开课 - 计算机科学课程节选

  • If I'm using algorithm that I'm now calling merge sort, T the running time involved in sorting N elements, T of N, you know, is just the same as running the algorithm for the right half, plus what's this plus N come from?

    如果我用归并排序算法,对N个元素其运行时间,就等于此算法一半元素的运行时间,另一半的运行时间,再加上N,这个N是什么呢?

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定