This commit is contained in:
krahets
2023-08-30 15:04:30 +08:00
parent 8843a93605
commit ca49da47f0
2 changed files with 2 additions and 28 deletions

View File

@@ -2548,7 +2548,7 @@ $$
对数阶常出现于基于分治策略的算法中,体现了“一分为多”和“化繁为简”的算法思想。它增长缓慢,是仅次于常数阶的理想的时间复杂度。
!!! tip
!!! tip "$O(\log n)$ 的底数是多少?"
准确来说,“一分为 $m$”对应的时间复杂度是 $O(\log_m n)$ 。而通过对数换底公式,我们可以得到具有不同底数的、相等的时间复杂度: