Big O notation using the recursion method [duplicate]

ⅰ亾dé卋堺 提交于 2019-12-13 08:36:42

问题


How to find the Big O for the following recursive function using the recursive method:

T(n)=(n-1)T(n-1)+(n-1)T(n-2)

回答1:


Anyway, I tried to solve this case using the classic recursive relation methodology. It's all about observing if a pattern exists:

Very expensive algorithm (Enemies of computer science are factorial and exponential orders of growth).



来源:https://stackoverflow.com/questions/24362452/big-o-notation-using-the-recursion-method

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