用栈替代递归

Loading...
Peking University
4.8 (303 ratings) | 21K Students Enrolled
View Syllabus

Reviews

4.8 (303 ratings)
  • 5 stars
    257 ratings
  • 4 stars
    34 ratings
  • 3 stars
    6 ratings
  • 2 stars
    2 ratings
  • 1 star
    4 ratings

It's a valuable experience and I learned a lot about algorithms, thanks you !

Prestigious University and of course with technical professors.

From the lesson
递归
递归调用是设计和描述算法的一种有力工具,尤其是在解决复杂问题时经常采用。它的基本思想是要解决某一问题A,可以先解决一个形式相同,但规模小一点的问题B。问题B如果解决了,那么问题A也就迎刃而解。有些问题使用传统的迭代算法是很难求解甚至无解的,而使用递归却可以很容易地解决。本模块将通过具体的例题介绍如何构造递归函数,如何设置递归终止的条件以及分析递归算法的复杂度。

Taught By

  • Jiaying Liu 刘家瑛, Ph.D.

    Jiaying Liu 刘家瑛, Ph.D.

    Associate Professor
  • 郭 炜

    郭 炜

    讲师

Explore our Catalog

Join for free and get personalized recommendations, updates and offers.