Karatsuba Multiplication
Presentation: https://youtu.be/jtImWo3CmZM
1. Field Context: Multiplication
In the extension field , an element is represented as a polynomial of degree up to with coefficients in the base field :
Multiplying two elements and in involves two steps:
Polynomial Multiplication: Compute .
Reduction: Compute , where is the irreducible polynomial of degree defining the extension.
The Karatsuba algorithm is used to speed up the Polynomial Multiplication step (Step 1).
2. Karatsuba Algorithm for Polynomials
We aim to compute , where and are polynomials of degree . We assume is an even number for simplicity, and let .
Step 1: Splitting (Divide)
The polynomials and are split into two halves, where are polynomials of degree less than
The product expands algebraically as:
The classical method would require four recursive polynomial multiplications of size .
Step 2: Three Recursive Multiplications
Karatsuba reduces this to three recursive polynomial multiplications, where the coefficients of the polynomials are in (or another base field).
(High Part):
(Low Part):
(Middle Part – The Karatsuba Trick):
Step 3: Combination (Conquer)
The middle term is extracted by performing polynomial additions and subtractions over :
The final unreduced product is then constructed:
(Multiplication by or is a simple coefficient shift.)
Step 4: Final Reduction
After obtaining the unreduced product , the result must be reduced modulo the defining polynomial to get the final result :
3. Complexity in Context
For a base field , the Karatsuba algorithm reduces the complexity of polynomial multiplication from base field operations (classical) to base field operations.
Recursive Call Size: The size of the polynomials in the recursive calls is reduced from degree to approximately degree .
Base Operations: The "cost" of addition/subtraction () and the recursive multiplications () is measured in terms of operations within the base field .
The overall time complexity for the polynomial multiplication step remains:
Karatsuba is highly effective in cryptographic contexts (like Elliptic Curve Cryptography) that extensively rely on fast finite field arithmetic in or .
Written by Ryan Kim of Fractalyze
Last updated