2017-02-28 9 views
-2

T(N)= 3 * T(N/2)+ N *ログ(n)は、その場合べきマスター定理、再発を解決する、T(N)= 3T(N/2)+ nlogn

適用され、なぜですか?私はケース1とは思うけど、確かではない。

マスター定理:

enter image description here

+1

"ケース?" < - はい、* *の場合?あなたは自由に選択肢を提供できますか? –

+0

https://en.wikipedia.org/wiki/Master_theorem – Jack

答えて

0
T(n) = 3 * T(n/2) + n * log(n) 

a = 3/b = 2/f(n) = n log n 

n^(log_b(a-ep)) = n^(log_2(3-ep)) = n^1.58... 

f(n) = n log n and is in O(n^1.58) as in case (1) 

Therefore, T(n) in Theta(n^1.58...) 
関連する問題