2026-04-03 02:34:38.1775183678
Disadvantage of Cook-Toom algorithm
66 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in ALGORITHMS
- Least Absolute Deviation (LAD) Line Fitting / Regression
- Do these special substring sets form a matroid?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Correct way to prove Big O statement
- Product of sums of all subsets mod $k$?
- (logn)^(logn) = n^(log10+logn). WHY?
- Clarificaiton on barycentric coordinates
- Minimum number of moves to make all elements of the sequence zero.
- Translation of the work of Gauss where the fast Fourier transform algorithm first appeared
- sources about SVD complexity
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Since this question originated from another one of your questions, I assume that you are talking about usage of Toom-Cook algorithm in generic convolution instead of integer multiplication.
As summarized by the Wikipedia article Toom-Cook multiplication, the algorithm consists of the following steps:
For generic convolution, the recomposition step is not needed so there are only 4 steps. Now, the problem with Toom-Cook algorithm is with step 2 and step 4, which involves the pseudo-Vandermonde matrix. The article uses Toom-3 as example, for which the evaluation matrix looks like this $$ \begin{pmatrix} 1 & 0 & 0 \\ 1 & 1 & 1 \\ 1 & -1 & 1 \\ 1 & -2 & 4 \\ 0 & 0 & 1 \\ \end{pmatrix} $$ This comes from evaluating the polynomial $p(x)=m_0 + m_1x + m_2x^2$ at five different values $p(0)$, $p(1)$, $p(-1)$, $p(-2)$, $p(\infty)$. The interpolation uses the following matrix inversion
$$ \begin{pmatrix} 1 & 0 & 0 & 0 & 0\\ 1 & 1 & 1 & 1 & 1\\ 1 & -1 & 1 & -1 & 1\\ 1 & -2 & 4 & -8 & 16\\ 0 & 0 & 0 & 0 & 1 \\ \end{pmatrix}^{-1}=\begin{pmatrix} 1 & 0 & 0 & 0 & 0\\ {1\over2} & {1\over3} & -1 & {1\over6} & -2\\ -1 & {1\over2} & {1\over2} & 0 & -1\\ -{1\over2} & {1\over6} & {1\over2} & {-1\over6} & 2\\ 0 & 0 & 0 & 0 & 1 \\ \end{pmatrix} $$
Now, supposedly Toom-3's advantage is that in reduce 9 multiplications to 5. Indeed, there are only five multiplications in step 3. But what is not mentioned is the multiplications that crop up in step 2 and 4. In step 2 though, one can be careful to choose to evaluate at $x=2^k$ for any integer $k$, so that the multiplications can be carried out using bit-shifts. But in step 4, multiplication (or division) with non-powers of 2 is unavoidable. A naive multiplication with the inverted matrix will require at least 4 multiplications (for the ones involving $1/3$ and $1/6$). Following Bodrato's sequence as suggested by the article will require only 1 extra multiplication instead of 4.
The inverted matrix for Toom-3 already looks complicated enough. The matrix for higher-order Toom-Cook will look even worse. In Toom-$k$, the theoretical reduction for multiplication count is $2k-1$ reduced to $k$, but in practice it will require more than $k$ multiplications even if you have an optimal interpolation sequence like Bodrato's.
Another downside is the loss of accuracy. As you use larger $k$, the the size of bit-shifts will also increase. This is because you need to evaluate at larger points $p(\pm2^{j})$ where $j<k-1$, and also because the degree of the polynomial becomes larger. With the increasing bit-shift amount, the intermediate numbers involved lose precision, so the final result is also less accurate.