3.Consider two algorithms whose running times T(n) satisfy the following recurrences:
Algorithm A: T(n) = 4T(n/2) + 0(1)
Algorithm B: T(n) = 2T(n/4)+ 0(1)
Then, Algorithm A is asymptotically faster than Algorithm B.
(A)O
(B)X
詳解 (共 1 筆)
未解鎖
1. 題目解析 題目中給出了兩個算法的...