大数除法
除了学校方法之外,还有其他更快的大整数(1000位或更多)除法方法吗?
Is there any faster method for division of large integers(having 1000 digits or more) other than the school method?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
维基百科列出了多种除法算法。请参阅数学运算的计算复杂性,其中列出了教科书长除法 为
O(n^2)
和 牛顿法为M(n)
其中M
是所使用乘法算法的复杂度,可能与O(n log n 2^(
log*
n))
渐近。请注意一种乘法算法的讨论对于“小”输入,最好的渐近算法不一定是最快的:
Wikipedia lists multiple division algorithms. See Computational complexity of mathematical operations which lists Schoolbook long division as
O(n^2)
and Newton's method asM(n)
whereM
is the complexity of the multiplication algorithm used, which could be as good asO(n log n 2^(
log*
n))
asymptotically.Note from the discussion of one of the multiplication algorithms that the best algorithm asymptotically is not necessarily the fastest for "small" inputs: