主方法

2019-12-22  本文已影响0人  spraysss

T(n)=aT(\frac n b)+f(n)

主方法可以简单记忆为f(n)n^{\log_ b ^{a}}谁大取谁,相等的话需要乘上\log n

上一篇 下一篇

猜你喜欢

热点阅读