Algoritmi di moltiplicazione veloce
Algoritmi di moltiplicazione veloce
Algoritmi di moltiplicazione veloce
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
L’algoritmo <strong>di</strong> Karatsuba<br />
A. A. Karatsuba ha proposto il primo metodo subquadratico <strong>di</strong><br />
<strong>moltiplicazione</strong>, per i polinomi <strong>di</strong> primo grado.<br />
a(x) = a1x + a0 ; b(x) = b1x + b0<br />
a(x)b(x) = c(x) = c2x 2 + c1x + c0<br />
− − − − − − − − − − − − − − − − −<br />
c(x) = (a1b1)x 2 + (a1b0 + a0b1)x + (a0b0)<br />
4 moltiplicazioni, 1 somma<br />
⇓<br />
c(x) = (a1b1)x 2 + ((a1 + a0)(b1 + b0) − a1b1 − a0b0)x + (a0b0)<br />
3 moltiplicazioni, 4 somme<br />
Alberto Zanoni <strong>Algoritmi</strong> <strong>di</strong> <strong>moltiplicazione</strong> <strong>veloce</strong><br />
Continua