简体   繁体   English

在 f(n)=n 阶乘的情况下如何使用主方法或递归问题

[英]How to use master method or recursion problem in case of f(n)=n factorial

How to solve T(n) =2T(n/2)+n.如何求解T(n) =2T(n/2)+n。 using master method or recursion.使用主方法或递归。

The case is straightforward in master theorem.这种情况在主定理中很简单。 As log_2(2) = 1 and n \in O(n!) , the result will be T(n) \in Theta(n!) .由于log_2(2) = 1n \in O(n!) ,结果将为T(n) \in Theta(n!) Hence, T(n) \in O(n!) .因此, T(n) \in O(n!)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM