algorithm - 对于某个常数 c,阶乘(floor(log(n)))是大 O(n ^ c)吗?

标签 algorithm big-o time-complexity logarithm

谁能解释一下阶乘(floor(log(n)))是否是某个常量 c 的大 O(n^c)?以及,如何证明以上答案?

最佳答案

没有。 Asymptotically, we have

floor(log n)! = Ω(((log n)/3)^log n)
              = Ω(e^(log((log n) / 3)) * log n)
              = Ω(n^(log log n - log 3))

指数 log log n - log 3 显然不在 O(1) 中。

关于algorithm - 对于某个常数 c,阶乘(floor(log(n)))是大 O(n ^ c)吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35673303/

相关文章:

algorithm - 排列的数据转换

algorithm - 重复:T(n) = (2+1/log n)T(n/2)

java - 各种搜索算法的Big-O运行时间

C# 列表从末尾删除,真的是 O(n) 吗?

algorithm - 带彩色边的图 : shortest paths with at most k color changes?

algorithm - 整数线性规划 (ILP) 的运行时间复杂度是多少?

c++ - 高效的字符串截断算法,顺序删除相等的前缀和后缀

algorithm - 汉诺塔的二元解

algorithm - 如何确定删除给定循环是否会断开图形

c++ - C++程序的时空复杂性