[问题] 一题资料结构,关于时间复杂度

楼主: afe812 (薛丁格的猫)   2016-03-04 00:35:52
※ [本文转录自 ask 看板 #1Ms2_IHl ]
作者: afe812 (薛丁格的猫) 看板: ask
标题: [请问] 一题资料结构,关于时间复杂度
时间: Thu Mar 3 20:36:30 2016
在写升学考试的考古题,卡关了
不知道发这里问可不可以,不行或者有更好的地方也可以跟我说> <
http://tinyurl.com/hrron9e
What is the time complexity of T(n) defined below?
If n=2 then T(n)=1 else
If n>2 then T(n)=T(n/2)+logn
作者: hvariables (Speculative Male)   2015-03-03 23:38:00
Prob_Solve板
作者: LPH66 (-6.2598534e+18f)   2016-03-04 01:14:00
大师定理: a = 1, b = 2, log_b a = 0, 合 case 2其解为 T(n) = O(log^2 n)

Links booklink

Contact Us: admin [ a t ] ucptt.com