Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Master 定理可以应用于 f(n) 为零的递归,例如:T(n)=2T(n/3) + 0? 如果是,将如何解决?考虑到这一点,它会花费恒定的时间T(1)=1吗?
T(n)=2T(n/3) + 0
T(1)=1
a = 2, b =3, c = 0 因为我们在寻找 n c,因为我们有零作为常数,所以这里只能使用 n 0。所以 T(n) 以 n log 3 2为界,大约。n 0.63。