Algorithmic Toolbox week4 Divide and Conquer --- Polynomial Multiplication

Problem Overview and Native Solution

Algorithmic Toolbox week4 Divide and Conquer --- Polynomial Multiplication_第1张图片
Multiplying Polynomials
Algorithmic Toolbox week4 Divide and Conquer --- Polynomial Multiplication_第2张图片
视频中把2n-2写成了2n-1
Algorithmic Toolbox week4 Divide and Conquer --- Polynomial Multiplication_第3张图片
Multiplying Polynomials

Well in that case, what you you could do is just pad out the smaller polynomial, the lower degree polynomial, to have zeros for its earlier coefficients. (填充0,让我想起来了AES加密的填充,哈哈)

Naive Divide and Conquer Algorithm

Algorithmic Toolbox week4 Divide and Conquer --- Polynomial Multiplication_第4张图片
image.png

Plus, then,in order to take the results and do our addition that's going
to take order n time. So some constant k, times that.

Algorithmic Toolbox week4 Divide and Conquer --- Polynomial Multiplication_第5张图片
image.png
Algorithmic Toolbox week4 Divide and Conquer --- Polynomial Multiplication_第6张图片
image.png
Algorithmic Toolbox week4 Divide and Conquer --- Polynomial Multiplication_第7张图片
image.png
Algorithmic Toolbox week4 Divide and Conquer --- Polynomial Multiplication_第8张图片
image.png

你可能感兴趣的:(Algorithmic Toolbox week4 Divide and Conquer --- Polynomial Multiplication)