多项式乘法有可能做到O(n)吗?
版主: verdelite, TheMatrix
-
- 论坛支柱
2024年度优秀版主
TheMatrix 的博客 - 帖子互动: 262
- 帖子: 13207
- 注册时间: 2022年 7月 26日 00:35
#3 Re: 多项式乘法有可能做到O(n)吗?
我记得前段时间出了一个整数乘法的最新算法是O(nlogn),多项式乘法应该也是这样吧:
The current fastest algorithm for integer multiplication is the Harvey-Hoeven algorithm, which was developed in 2019. It has a complexity of O(n log n), which means it can multiply two n-digit numbers in roughly n log n steps. However, this algorithm is very complicated and only works for extremely large numbers.
#6 Re: 多项式乘法有可能做到O(n)吗?
让x = 10就是整数了,hohoTheMatrix 写了: 2023年 12月 17日 08:55 我记得前段时间出了一个整数乘法的最新算法是O(nlogn),多项式乘法应该也是这样吧:
The current fastest algorithm for integer multiplication is the Harvey-Hoeven algorithm, which was developed in 2019. It has a complexity of O(n log n), which means it can multiply two n-digit numbers in roughly n log n steps. However, this algorithm is very complicated and only works for extremely large numbers.
#8 Re: 多项式乘法有可能做到O(n)吗?
我感觉:
不可以
在计算上要完全覆盖各项,本质上就要用某种类似“进制”的方式处理
n lg n应该是最有效的(根据情况,基可以选非2)
用些具体的不很特殊的大n例子应该就可以说明?
比如只是计算13^n, where n=11!+1
不可以
在计算上要完全覆盖各项,本质上就要用某种类似“进制”的方式处理
n lg n应该是最有效的(根据情况,基可以选非2)
用些具体的不很特殊的大n例子应该就可以说明?
比如只是计算13^n, where n=11!+1
#10 Re: 多项式乘法有可能做到O(n)吗?
通俗来说,
其实就是问:在最坏的情况下,有没有O(n)的算法?
极其可能的是:
在最好的情况下,都没有O(n)。
p(n)*q(n)即使考虑特殊情况(=)r(n)甚至只是(对任意大的n)x^n,都没有O(n)算法。
在实际应用中,很可能完全找不到某种实用的n*log(...log(n))算法,即使那种算法在理论上被发现是存在的。
其实就是问:在最坏的情况下,有没有O(n)的算法?
极其可能的是:
在最好的情况下,都没有O(n)。
p(n)*q(n)即使考虑特殊情况(=)r(n)甚至只是(对任意大的n)x^n,都没有O(n)算法。
在实际应用中,很可能完全找不到某种实用的n*log(...log(n))算法,即使那种算法在理论上被发现是存在的。