Solve recurrence

来源:互联网 发布:韩语软件哪个最好 编辑:程序博客网 时间:2024/06/05 15:59

Solve recurrences

1、substitution method 代换法

a、guess  the form of  the solution

b、verify by induction(归纳)

c、solve for constants

2、recursion-tree  method

a、draw a general picture

b、sum level by level

3、master method

seem as the application of recursion tree  only applies to a particular family of recurrences such as 

   T(n)= aT(n/b)+f(n)  a>=1,b>1    f(n)  should be asymptomatically postive  渐进趋正

compare f(n) with nlogb a

原创粉丝点击