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.
T(n) = 4T(n/2) + n
= O(n2)使用主定理。
= O(n2)
上面的比下面的复杂吗?
T(n) = 3T(n/4) + n 2
两者都使用主定理,但我不知道如何检查常数。O(n2)
O(n2)
提示:更简单的问题:哪个具有更高的复杂性?4N 2或 5N 2