How can I unfold the recurrence: T(n)=2T((n+2)/3)

不打扰是莪最后的温柔 提交于 2019-12-02 06:22:58

Sort of. The rigorous version of this trick is to set U(n) = T(n+1) and write

U(n) = T(n+1)
     = 2T((n+1+2)/3) + 1
     = 2T(n/3 + 1) + 1
     = 2U(n/3) + 1.

Then solve for U (e.g., U(n) = O(n^log3(2))) and then you should be able to find an asymptotic expression for T of the same order.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!